Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

ABAP Workflow For Beginners: Working with Container Operation and Loop (Until) Steps-PART2

$
0
0

Introduction:This document will help one to understand the use of Container Operation

                         and Loop (Until) step in Workflow Builder.


Note: 1) Before reading this document readers must study Part 1 of this document

                i. e.' ABAP Workflow For Beginners: Working with Container Operation

                      and Loop (Until) Steps-PART1' from workflow section.


           2) This document will help us to learn how to execute and analyse a workflow.


           3) The building of the workflow with Container Operation and Loop (Until)

                Steps are discussed in Part 1 of the this document.


Steps:

1)  In Part 1 of this document we have seen how to build a workflow with

     Container Operation and Loop (Until) Steps.

final_screen.PNG

2) After completely Building a workflow we can start our execution process.

     a) We have to press execute button(F8) to run the workflow.

Excecute_screen.PNG

3) Now we can see a screen as shown below.

first execute screen.PNG

4) This screen consists of following tabs.

     Input Data Tab.

    a) Here we have to fill the importing input parameters.


    b) _wf_initiator , _wf_priority and _wi_group_id are default parameters.


     c) lv_counter  is the parameter created by us for keeping the loop count

        (This is discussed in Part 1 document->

          'ABAP Workflow For Beginners: Working with Container Operation and Loop (Until) Steps-PART1')


   d) We can change value of the 'lv_counter' parameter to our desired value.

Execute_work_flow_container.PNG

5) Now we have to press on Execute(F8) to start workflow processing.

start_WF.PNG

We will get  following status message.

start_wf_message.PNG


6) Now as we have started the execution of our workflow we have to

     follow steps to analyse the execution of it as shown below.

    Test_work_flow_steps.PNG

      a) Graphical Workflow Log:

            i) This will display a graphical representation of process flow of our workflow.

           ii) The green path will show the step by step execution of workflow.

          iii) Here we can see that first the loop step will be executed.

          iv) And then the container operation step will be executed, here decrement

               of 'lv_counter' element by 1 will be executed.

           v) Then next step to execute will be send mail activity.

          vi) After send mail step, the loop will continue to execute until 'lv_counter' element's

               value will be '0'.

         vii)Once the 'lv_counter''s value is '0', the loop ends and workflow completes.    

Graphical_view.PNG


  b) Workflow Chronicle log:

     i) This log Consists tree view(technical Details) of the steps executed in workflow.

    ii) Here in below figure we can see that five loops have executed.

   iii) This is because our 'lv_counter' value is '5' and loop step will loop

         until the 'lv_counter' value is '0'( This is discussed in Part 1 document).

   iv) With execution of each loop the 'lv_counter' Value will be decremented

        by 1(That is why loop will end after 5 executions).

Chronicle_log.PNG

   v) Below technical details (Tree structure) we have 6 tabs.

   1) Details tab:Has details like workflow task ID,Wok item status,date,time etc.

details_tab.PNG

   2) Step History tab:This step by step error details.

         There are no errors in our workflow execution,that is why green status.

step history tab.PNG

3)Deadlines tab: This step shows the deadline details of the steps

                                used(example mail step).

       We have not set any deadlines so this tab has no entries. 

 

  deadline details.PNG

4) Task Description tab:This step shows the description of the tasks descriptions

                                           that are used in our workflow.

       For example:Send Mail step body content.  


task description tab.PNG

5) Container tab:This tab consists of the container elements with their runtime values.

      For example:'lv_counter' value will be  '0'  after completion of the

                            workflow execution as shown below.

Container tab details.PNG





















Viewing all articles
Browse latest Browse all 8894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>