Skip to Content
avatar image
Former Member

Determine the number of the aprovers required to approve in NStep BADI

I am sending the workitem to 5 approvers in the BADI:BBP_WFL_APPROV_BADI.

with approval index 1.

And my requirement is that the workflow should be approved, if any 2 can approve from the 5 approvers.

How do i determine that,Please suggest.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 13, 2010 at 07:21 AM

    Hi Kittu,

    You could make it a two-step approval. IN the first step you send the approval to 5 users. If one approves, the workitem dissappears for all approvers, and step 2 is started in which you send the approval to the remaining 4. If step two is also approved, the workflow is finished and the document is approved.

    Regards,

    Sjoerd.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Sjoerd Santegoets

      I have explored these options already,But they dint work.

      I need to capture the agent in BADI when he is actually approving the WI.

      so that i can avoid him for the next step.

      but the agent is captured in database and FMs only after the BADI is executed.

      The FM BBP_WFL_DIN_APPR_WORKFLOW_GET also returns all the agents that belong to that approval index rather than the person who is actually approving it.

      example: Approval index 1 has user1,user2 and user3.

      when user1 is approving the WI, the database and as well as the FM's have all the 3 users info .

      but i need only user1 to avoid it in the next step..so that in the next step i can send only to user2 and User3.

      I only need to capture the User information who is actually approving it only at the time of approval as this is when the next step of approvers would be determined in the BADI.After he approves the WI will immedeately route to the next step of approvers,so i need to capture it only when approving.

      As of now i am using Sy-uname to capture the actual user approving..Please let me know if this could have any limitations.