BRF Workflow - SRM Shopping Cart Approval at item level

Raja raja_mahamani at yahoo.com
Sat Apr 2 20:38:24 EDT 2011


Hello Experts ,
We are using SRM 7.01 and SP Level3 . 
We are in the process of implementing Shopping Cart Approval at item level using Business Rule Framework using Process Controlled Schema evaluation .  I have used the BADI implementation /SAPSRM/BD_WF_RESP_RESOLVER  and methods /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID  and /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_AREA_TO_ITEM_MAP to create area GUID and map it to the item.
Problems I am facing :Scenario 1 :   For example  SC got two items  ; item 1  requires two level of approval and item 2 requires 3 level of approval .  Item 1 is approved by both the levels  and item 2 needs 3rd level approval.
What is happening here is , line item 1 is also in the waiting approval status, technically item should go to "Approved" ,but the SC is waiting for item 2 to be approved by 3 rd level . Then the SC status is changed to "Approved". 
Scenario 2 :   For example  SC got two items  ; item 1  requires two level of approval and item 2 requires 3 level of approval .  Item 1 is approved by both the levels  and item 2 rejected by 3 rd level . Even in this case ,the rejected item needs decision  from the SC creator , then only the other item is going for approval.
Basically only one instance of  workflow (WS40000014) is called at for the entore shopping cart and the approval workitem is created at the n-step approval sub-workflow (WS40000015 and WS40000016). In our situation there should be either multiple instancesof WS400000154/WS40000015 should be called so that every item will be considered as a separate approval.  
I read from SDN that Process Schema's  evaluation is at  header level only by default . We have done coding in the  item area map method /BADI  and Rule Context to to go for different approval process at item level. 
Any ideas and  suggestions welcome . I appreciate your time and effort in advance.

Note : I am willing to share my code if anybody wants to have a look at to provide suggestion.

Thanks,Raja Mahamani248 910 0604
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110402/c78a32b8/attachment.htm


More information about the SAP-WUG mailing list