cancel
Showing results for 
Search instead for 
Did you mean: 

SC approver's per item wise

0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member216093
Contributor
0 Kudos

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