cancel
Showing results for 
Search instead for 
Did you mean: 

How we will distribute mails

Former Member
0 Kudos

Hi,

In PO wokflow requirement some conditions are like this:

Less than 5000 amount should get the mail to 1st manager for Approval.

Between 5000 to 10,000 should get mail for Approval to 2nd manager

More than 10,000 should go mail to 3rd manager.

How we can share all these conditions to 3 managers.

Thanks and have a great day!!!

Soni

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184495
Active Contributor
0 Kudos

Hi Soni,

the strategy of (if amount < 400) whatever...is done through Release Strategy done by the functional guys,

and for your WF, you need to apply logic for an N-Step approval.

Aditya.

0 Kudos

Hi,

I guess you are using the normal ERP system. If yes then you can acheive this by two methods:

1. In customizing of the PO release procedure you can have a characteristic in a class which is of type CEKKO-NETWR which is the net value of the PO. When you are configuring your release procedure then you can specify the amount in this charachteristic and the right release procedure will kick off. You also (optionally) have the option of using the standard workflow for this and you can assign different agents for different release procedures.

For more information about this refer this link:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/75/ee14a355c811d189900000e8322d00/frameset.htm

2. If you are too lazy to do this there is a simple way of doing the entire stuff.

The standard Business Object BUS2012 for PO does not have the attribute of the amount. Create a subtype of this BO and add an attribute of type EKPO-NETWR which is a virtual attribute. Now behind that attribute just write the code:

data: p_netwr type ekpo-netwr

select sum( effwr ) from ekpo into p_netwr where ebeln = object-key-purchaseorder.

move p_netwr to object-netamount.

SWC_SET_ELEMENT CONTAINER 'NetAmount' OBJECT-NETAMOUNT.

In the above code it is assumed that you name the attribute as NetAmount.

Once you do this in your workflow you can have a multiple condition for the netamount and then branch you workflow to the number of conditions you want. For below 5000, Between 5000 - 10000 and more than 10000. In those branches call the release method in the BO and do the agent assignment to the right manager.

Hope this helps,

Sudhi

KKilhavn
Active Contributor
0 Kudos

Perhaps by using the standard N-step approval solution from SAP? I think you have to be using SRM to have this solution available, but I am not sure.

Have you read the documentation for it and determined it does not satisfy your requirements? If so, what are the issues that you need to solve?

And as always: version?