Skip to Content

In real time , Business object events are tagged to Workflows ,so that when certain business condition occurs  events get fired by standard SAP system and which let the  the workflow to trigger.

When ever the workflow starts , it has many steps and each step either contains a background task or dialog task , if the task is background then it will be executed by system automatically , But for dialog ones we do have to specify Agent Assignment.

There are various ways agent assignment happens, It can happen by Expression or Organizational Object assignment or using rules.

So this is how Business object Event -> Workflow->Agent assignment using rule get set up to enable a business process in SAP system.

In this blog I will explain a sample scenario illustrating the above concepts.

Whenever Basic pay of the employee gets created , an work item sent to the employee to accept the change .

Step-1  Go to SWETYPV and identify the Business object(BASICPAY) event CREATED row and identify the Standard workflow tagged to it.

IMG1.png

Step-2 Navigate to the workflow and make sure in the Basic data start events section the event to workflow binding has been done.

IMG2.png

Step-3 Navigate to the step to send one decision work item to user informing the creation of basic pay.

IMG3.png

Open up to explore agent assignment for the underlying decision  task.

IMG4.png

Step-4 Open up the Rule and understand the category, you could see rule has been created using a function module.

IMG5.png

This rule will accept personnel number and will identify the username to send this work item.

IMG6.png

TESTING

Step-1 in PA30 update current user say ‘ABAPDEMO1’ as the user for one employee.

/wp-content/uploads/2014/03/img7_414530.png

Step-2 Create Basic Pay for this employee

IMG8.png

Step-3 You will get the work Item in your inbox.

IMG9.png

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Modak Gupta

    Hi Sourya

    Good example for beginners.

    Can you also please add the following, this really will help the beginners to understand the concept:

    1) Binding between the Start event and the workflow …necessary bindings of object and intiator

    2) Binding between the Step and the Rule

    3) Importance of the check box “Terminate if Rule Resolution Without Result

    4) Difference between Responsible Agents, Possible Agents and Actual Agents in conjunction to Rules (beginners need to know this before blaming the rule for not fetching the agents)

    5) A screen shot of rule simulation and the then the workflow log (Active X Version) …so that it is clear for the beginners that what rule fetches as agents are the receivers of the work item

    Regards,

    Modak

    (0) 

Leave a Reply