You are on page 1of 7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

ABAPWorkflowForBeginners:Working
withContainerOperationandLoop(Until)
StepsPART2

Communications

Actions

Version4

createdbyvidyasagarpanchaxarimathon15Jul201406:17,lastmodifiedbyvidyasagarpanchaxarimathon24Jul201413:06

Share

Tweet

Like

Introduction:ThisdocumentwillhelponetounderstandtheuseofContainerOperation
andLoop(Until)stepinWorkflowBuilder.
Note:1)BeforereadingthisdocumentreadersmuststudyPart1ofthisdocument
i.e.'ABAPWorkflowForBeginners:WorkingwithContainerOperation
andLoop(Until)StepsPART1'fromworkflowsection.
2)Thisdocumentwillhelpustolearnhowtoexecuteandanalyseaworkflow.
3)ThebuildingoftheworkflowwithContainerOperationandLoop(Until)
StepsarediscussedinPart1ofthethisdocument.
Steps:
1)InPart1ofthisdocumentwehaveseenhowtobuildaworkflowwith
ContainerOperationandLoop(Until)Steps.

2)AftercompletelyBuildingaworkflowwecanstartourexecutionprocess.
a)Wehavetopressexecutebutton(F8)toruntheworkflow.

http://scn.sap.com/docs/DOC56621

1/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

3)Nowwecanseeascreenasshownbelow.

4)Thisscreenconsistsoffollowingtabs.
InputDataTab.
a)Herewehavetofilltheimportinginputparameters.
b)_wf_initiator,_wf_priorityand_wi_group_idaredefaultparameters.
c)lv_counteristheparametercreatedbyusforkeepingtheloopcount
(ThisisdiscussedinPart1document>
'ABAPWorkflowForBeginners:WorkingwithContainerOperationandLoop(Until)
StepsPART1')
d)Wecanchangethevalueofthe'lv_counter'parametertoourdesiredvalue.

http://scn.sap.com/docs/DOC56621

2/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

5)NowwehavetopressonExecute(F8)tostartworkflowprocessing.

Wewillgetfollowingstatusmessage.

6)Nowaswehavestartedtheexecutionofourworkflowwehaveto
followstepstoanalysetheexecutionofitasshownbelow.

a)GraphicalWorkflowLog:
i)Thiswilldisplayagraphicalrepresentationoftheprocessflowofourworkflow.
ii)Thegreenpathwillshowthestepbystepexecutionofworkflow.
iii)Herewecanseethatfirsttheloopstepwillbeexecuted.
iv)Andthenthecontaineroperationstepwillbeexecuted,heredecrement
ofvalueof'lv_counter'elementby1isperformedoneveryloopexecution.
v)Thennextsteptoexecutewillbe'sendmail'activity.
vi)After'sendmailstep',theloopwillcontinuetoexecuteuntil'lv_counter'element's
valuewillbe'0'.
vii)Oncethe'lv_counter''svalueis'0',theloopendsandworkflowcompletes.

http://scn.sap.com/docs/DOC56621

3/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

b)WorkflowChroniclelog:
i)ThislogConsistsoftreeview(technicalDetails)ofthestepsexecutedinaworkflow.
ii)Hereinbelowfigurewecanseethatfiveloopshaveexecuted.
iii)Thisisbecauseour'lv_counter'valueis'5'andloopstepwillloop
untilthe'lv_counter'valueis'0'(ThisisdiscussedinthePart1document).
iv)Withexecutionofeachloopthe'lv_counter'Valuewillbedecremented
by1(Thatiswhyloopwillendafter5executions).

v)Intechnicaldetails(Treestructure)wehave6tabs.
1)Detailstab:HasdetailslikeworkflowtaskID,Wokitemstatus,date,timeetc.

2)StepHistorytab:Thisisstepbysteperrordetails.
http://scn.sap.com/docs/DOC56621

4/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

Therearenoerrorsinourworkflowexecution,thatiswhy'ExecutionAction'isin
greenstatus.

3)Deadlinestab:Thisstepshowsthedeadlinedetailsforthesteps
used(examplemailstep).
Wehavenotsetanydeadlinessothistabhasnoentries.

4)TaskDescriptiontab:Thisstepshowsthedescriptionofthetasksthatare
usedinourworkflow.
Forexample:SendMailstepbodycontent.

5)Containertab:Thistabconsistsofthecontainerelementswiththeirruntimevalues.
Forexample:'lv_counter'valuewillbe'0'aftercompletionofthe
workflowexecutionasshownbelow.

6)Messagetab:Thistabdisplayworkitemwisemessagedetails.
http://scn.sap.com/docs/DOC56621

5/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

c)SAPbusinessworkplace:Sapbusinessworkplace(TcodeSBWP)isa
place,wherewecanviewthemailstriggeredby
workflowasshownbelowwithrecipientspecifiedas
ourSAPloginID.
i)Aswecansee'5'unreadmailsaredisplayedinthe'Inbox'.
ii)Thisisbecause,the'sendmailstep'iscreatedinsidethebranch
of'loopuntilstep'andthe'loopuntilstep'willbeexecutedfor5times.
iii)Andthemailrecipientis'WF_INITIATOR',thatiswhythemailissenttoour
'Inbox'.

iv)Afteropeningmailwecanseefollowingdetails.
1)Subject,bodyofthemailandrecipientdetailswillbedisplayed.

7)Thisendsthedetailedexplanationoftheexecutionofworkflow(Creationisexplainedin
Part1).
Conclusion:Nowweknowhowtoexecuteaworkflowusingsteptypes:
loop(until),ContaineroperationandSendMail.

http://scn.sap.com/docs/DOC56621

6/7

19/10/2015

ABAPWorkflowForBeginners:WorkingwithConta...|SCN

Creation:Tolearnhowtocreatetheworkflow,pleaserefermydocument:
ABAPWorkflowForBeginners:WorkingwithContainerOperationandLoop(Until)
StepsPART1.

689Views
Products:sap_business_workflowTopics:abapTags:sap,workflow,beginner,sap_developer_network,sap_education,
container,wf,sap_workflow,sbwp,workflow_basics

AverageUserRating
(0ratings)

Share

Tweet

1 Like

0Comments
Therearenocommentsonthisdocument.

SiteIndex
Privacy

ContactUs
TermsofUse

http://scn.sap.com/docs/DOC56621

SAPHelpPortal
LegalDisclosure

Copyright

FollowSCN

7/7

You might also like