转 Defining Custom Rules using responsibilities in SAP Workflow

87347969 2013-06-03

Defining Custom Rules using responsibilities in SAP Workflow

By Geethanjali K, Kaavian Systems from link


“In this tutorial, we would discuss about creating custom rules using responsibilities in SAP Workflow. The rules can be created or changed using the standard SAP transaction PFAC. Once the rules are created you can call these rules in any workflow via the rule container”. 

First go to PFAC transaction and enter the rule name like znew_rule. Click on create icon. It will show you the screen like as follows: 

转 Defining Custom Rules using responsibilities in SAP Workflow

Give the name of the rule and choose the rule type as “agent determination responsibilities”. 

转 Defining Custom Rules using responsibilities in SAP Workflow 

Now go to the description page and give the rule description. Choose change text.

转 Defining Custom Rules using responsibilities in SAP Workflow 

Go to the container tab and create a container element 

转 Defining Custom Rules using responsibilities in SAP Workflow 

转 Defining Custom Rules using responsibilities in SAP Workflow 

And choose the ok button. Now you have added a rule container element for ‘netvalue’ (ekpo-netwr) value. 

After that go to the responsibilities tab. Here we can provide the agents for this rule. 

转 Defining Custom Rules using responsibilities in SAP Workflow

Enter the abbreviation and press ENTER.

转 Defining Custom Rules using responsibilities in SAP Workflow 

Now, for example, choose the net value as 0 to 1000 and click on save. 

转 Defining Custom Rules using responsibilities in SAP Workflow

The responsibility defined is in RED color. After saving the responsibility it will show the green color status.

转 Defining Custom Rules using responsibilities in SAP Workflow

Now go back to the ‘Responsibilities’ tab. Choose insert agent assignment (see the screenshot below).
转 Defining Custom Rules using responsibilities in SAP Workflow

转 Defining Custom Rules using responsibilities in SAP Workflow

Choose your desired object type and choose create button. Now agent is assigned for your netvalue between 0-1000.

转 Defining Custom Rules using responsibilities in SAP Workflow 

You can assign several users for different netvalues. Lets assign one more agent when the netvalue is between 1001-2000. 

转 Defining Custom Rules using responsibilities in SAP Workflow

And you have to insert the agent for this net value range. 

转 Defining Custom Rules using responsibilities in SAP Workflow

Try simulation run for this 

转 Defining Custom Rules using responsibilities in SAP Workflow 

转 Defining Custom Rules using responsibilities in SAP Workflow 

Enter the netvalue as 1000 it will show you the agent for this value. 

转 Defining Custom Rules using responsibilities in SAP Workflow 

Now you can use this rule in your workflow. Do not forget to do the binding between workflow container and Rule container for the container element ‘netvalue’.

相关推荐

87347969 / 0评论 2010-09-20
mnm0 / 0评论 2009-10-08