on 09-08-2013 7:19 AM
Hi Experts,
How to derive the SC approver's per item wise?
Example: Lets say suppose SC has 5 items and the approver logic determination based on Product category..(Product category approvers maintained in custom table). Assume that product category 3 & 4 does not have approver's maintained in custom table.So, in that case how to derive the approver per item wise..
Item 1 = Product category1
Item 2 = Product category2
Item 3 = Product category3
Item 4 = Product category4
Item 5 = Product category5
How to write the code for the above example in the BADI of /SAPSRM/BD_WF_RESP_RESOLVER methods
/SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID
/SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_AREA_TO_ITEM_MAP
or else is there any other way?
Thanks,
Krishna.
Hi Krishna,
Adding to what Ravi mentioned, you could also have another custom table where in you can maintain, may be, SRM admin based on the P. org. And if no approvers can be determined from the primary custom tables, the system will check this 2nd table and assign the SRM admin as the approver/s. From here, the worktem/s can be forwarded to the appropriate approvers.
Thanks!
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
Yes, the /SAPSRM/BD_WF_RESP_RESOLVER is the correct method to be used where we can determine the agents (approvers) as per the business logic.
To answer your second question regarding what to do when there is no entry in custom table for approver. There are two options:
1) You don't allow the user to order the SC and show the error details using DOC_CHECK BADI. In that case you are sure that all ordered SC items will have entry in custom table for approvers.
2) You determine the approver based on some other secondary logic like PGRP or PORG where you can have operational buyers linked to PORG or PGRP nodes based on certain role or relationship in pp01 like A491/ B491.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.