cancel
Showing results for 
Search instead for 
Did you mean: 

Determine approvers based on lineitem in Shopping Cart Approval Workflow

Former Member
0 Kudos

Hi All,

We have N-step Approval workflow for Approving the Shopping cart implemented.

The issue here is that based on the Product Category for a line item the list of approvals may differ.

How can i handle this scenario ?

Regards,

Radhika.

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Item based approval is delivered in standard.

http://help.sap.com/saphelp_srm50/helpdata/en/a3/a6a34098022a54e10000000a1550b0/frameset.htm

Regards,

Masa

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you... SAP Help was useful... Could do it successfully after referring to it...

Thank you.

Former Member
0 Kudos

Hello Priyanka,

While using N-step item level SC WF, you have to use BBP_WFL_APPROV_BADI for agent determination. This badi gets called everytime when shopper changes SC or approver takes action on it. So after every change done to SC, approvers are determined.

Follow the listed steps:

1) As per your logic, for each item first determine the approvers at each level & assign them approval index. Arrange them in ascending order of their approval index at item level.

2) Now its possible that you have multiple approvers, multiple item at each level. For sending SC for approval, you will have to generate Approval_object_guid for each approver. For this you have to find out a criteria for generating Approval guid.

Eg:

SC has 3 items then, if for any 2 items product category is similar then approvers will be similar at a particular level. Similarly for different Product Category, different approvers are determined. So you can consider 'Product Category' & 'Approval index' as a criteria to club approvers at each level.

3) Use function module ''BBP_WFL_DIN_APP_OBJ_GET' to generate approval guid based on criteria & to update badi parameter 'item_approval_obj'.

4) Update badi parameters 'Approval_table' and 'Item_approval_table'.

5) Once SC is approved by all, set 'no_further_approval_needed' flag.

Please let me know if you need any further help.

Thanks,

Shital

Former Member
0 Kudos

Hi,

Thanks for your inputs. But is there any document available on this?

Also i am confused as to how this workflow will flow.Will it be called multiple times based on no.of line items ? How will the BASi be triggered ?

Radhika.

former_member186746
Active Contributor
0 Kudos

Goto SE18

type in BBP_WFL_APPROV_BADI

click display

then click documentation.

There's a lot explained here plus this document has some hyperlinks to other documentation as well.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Hello Radhika,

To clear your confusion about workflow check blog on 'Dynamic Parallel Processing in Workflow'.

Actually I am unable to post a link here.

Thanks,

Shital Nimje

Edited by: Shital Nimje on Sep 15, 2009 10:01 PM

Former Member
0 Kudos

Hello Radhika,

Check link on 'Dynamic Parallel Processing in Workflow'.

N-step Item level wf uses this concept.

[http://help.sap.com/saphelp_srm70/helpdata/EN/4c/8ae0ee91bc084c87766d618dee849f/frameset.htm]

Thanks,

Shital Nimje

Edited by: Shital Nimje on Sep 15, 2009 10:01 PM