Thursday, May 8, 2014
Condition in Workflow is used if only one of two possible alternatives can be processed during the workflow during run time and  if the workflow system can make a decision based on the contents of the workflow container without user interaction.

Assumption is that we have already workflow defined and now trying to add condition a workflow.

Adding Condition Step type


  • Right Click on the branch to create the step.
  • Select the condition step.
  • Choose the expression by DC on “Click here to create new condition”->One popup will get displayed where we need to provide the expression by DC on workflow container element present inn right pael of popup. Provide the constant value or you can provide the dynamic value by DC on the workflow container element. Also give the operators to form the expression.

  • Click on Enter (Tick mark) so that the formed expression will get placed in the Condition. 
  •  Now provide the Outcomes in Outcomes tab. And If the condition evaluates to be true then the True branch will get executed else False branch.
  •  Now cut the block which we created in Container step and place it in True branch.

  • Now test the same workflow with value as 293 for the sales order. In this case the false branch will get executed since the condition evaluated to be False. 
  • We can also check in SWIA and see the log.

  • Now test the Workflow by providing the value 292 in SALES_ORDER container element and click on Test button.The true branch will get executed.



1 comment:

  1. In work flow i want to write delete data when i will get error on particular
    transaction

    ReplyDelete

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.