Skip to Content
avatar image
Former Member

Determine approvers based on lineitem in Shopping Cart Approval Workflow

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 25, 2009 at 12:54 PM

    Hi,

    Item based approval is delivered in standard.

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

    Regards,

    Masa

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 25, 2009 at 08:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 19, 2010 at 04:31 PM

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

    Thank you.

    Add comment
    10|10000 characters needed characters exceeded