Skip to Content
Author's profile photo Bharath Padmanabhan

Custom workflow for releasing service entry sheet

Introduction: There is no standard workflow for release of service entry sheet. Given below is a custom workflow for releasing service entry sheet.

Scenario:  Workflow has 3 levels of release. Agents for all three levels of release are known. CREATED event of BUS2091 is used as triggering event of workflow. . After all agents have released, release status of service entry sheet is set to XXX.

Step 1: Go to SWDD (Workflow Builder) Tcode and click on create icon as below. This will create a new workflow.

image

Step 2: Create workflow container element BUS2091 by double clicking ”Double click to create” in workflow container as below. Enable Import, Export checkboxes from Properties tab.

image

image

Step 3: Create workflow container element AGENT1 and assign an initial value to it. AGENT1 will be the first level approver.

image    

 image

 Step 4: Similar to AGENT1 create two more workflow container elements AGENT2, AGENT3 and assign second level, third level approver’s Agent ID as initial value.

Step 5: Click on basic data icon as below.

image

 Step 5: Enter your own abbreviation and description for workflow. For eg. refer below.

image

Step 6: In start events tab enter category as BO, Object type as BUS2091. From F4 help select CREATED as Event of the object.

image

Step 7: Click on the Binding Icon and do the binding as below. Then activate the event by clicking active icon. Both binding and active icon should be in green colour.

image

Step 8: Insert an activity step in workflow. Create a new task and enter inputs in basic data tab. You can specify your own Abbreviation, Name and workitem text. For eg. refer below.

image

Step 9: Do the workflow to task binding as below.

image

Step 10: Assign AGENT1 as agent for activity and make the task as general. Both Agent assignment and Task complete icons should be green in colour as below.

image

Step 11: Go to Conditions tab of activity step and select Complete Execution tab from it as below. 

image 

Step 12: Right click in ”Click here to create a new condition”. Select Personal settings. Choose the radio button Direct text entry(traditional mode) as below.

image

Step 13: Now click ”Click here to create a new condition”. In the condition editor screen click F4 help for Expresssion1. Expand GetDetail and select expression REL_STATUS.  Enter operator as = (Equal to) sign from F4 help.  Enter Expression2 as X as below.

image

Step 14: Similarly insert an activity step for second and thirdlevel approver. Assign container element AGENT2, AGENT3 as agents for the activity steps.

Step 15: In second level approver activity step assign XX for Expression2 in Condition editor and assign XXX in Condition editor for third level approver activity step as below.

image

image

Step 16: Save, check and activate the workflow. Workflow overview appears as below.

image

Step 17: Go to SWE2 Tcode and create an entry for enabling event linkage as below.

image

Step 18: Go to ML81N Tcode and create a service entry sheet and press save button. This will trigger our custom workflow. First level approver will receive a workitem in (SBWP Tcode) Business workplace inbox. He has to release the service entry sheet and click save button. Release status will be set to X and second level approver will receive the workitem. Release status will set to XX and XXX after second and third level releases. 

Thus a custom workflow for releasing service entry sheet is created successfully.

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Vinoth Kumar
      Vinoth Kumar
      Hi Bharath,

      Nice Blog and may i know the use of Complete execution which you have used in this blog.

      Regards,
      Vinoth

      Author's profile photo Manu Kapur
      Manu Kapur

      Hi,

      I have the same requirement with multilevel approval email to be send out and new work item to be generated at each level.

      Can you please help with the additional steps.

      Regards,

      M

      Author's profile photo Former Member
      Former Member

      Hello,

       

      This is a great tutorial for workflow requirements,

      we have same requirement to develop a workflow for service entry sheet and based on the release status mail should be sent to the next approver.

      the only change i have to make is the user doesnt want to check their workplace for the activity (on creation of service entry sheet)  .

      now i need your help.

      i want to build the same workflow as above but the only difference is that instead of activity steps there should be a send mail step .

      i tried using the conditions and so many other things i tried , its not working as good as the above mentioned workflow.

      please help me on how to put condition to send mail without using activity.

       

      regards.

      jay

      Author's profile photo Cyril Sayeh
      Cyril Sayeh

      Hi,

       

      The email can be sent to agents to notify users for new work items in their SBWP using report RSWUWFML2.

       

      Regards.

      Author's profile photo Violeta Koleva
      Violeta Koleva

      Hi,

      BUS2091 does't have method RELEASE1. Method RELEASE is without check Dialog and Wotk item cannot be executed from e-mail.

      How to proceed in this case?

       

      Regards