Explore the link Business Object-Workflow-Rule Resolution with simple example
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.
Step-2 Navigate to the workflow and make sure in the Basic data start events section the event to workflow binding has been done.
Step-3 Navigate to the step to send one decision work item to user informing the creation of basic pay.
Open up to explore agent assignment for the underlying decision task.
Step-4 Open up the Rule and understand the category, you could see rule has been created using a function module.
This rule will accept personnel number and will identify the username to send this work item.
TESTING
Step-1 in PA30 update current user say ‘ABAPDEMO1’ as the user for one employee.
Step-2 Create Basic Pay for this employee
Step-3 You will get the work Item in your inbox.
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
Sure Modak. In my coming blogs I will write.
Hi Chaudhury Sourya Prakash Dash
wiich version of SAP, you search de associeated workflow?
i am working in S4 2020 and i cant see WS80000236, Or this workflow is your custom worklow?
Thanks in advance