Skip to Content
author's profile photo Former Member
Former Member

N-Step Approval BADI Vs. New N-Step Workflow

Hi SRM Gurus,

I would just like your feedback with regards to Shopping Cart N-Step Approval workflow.

I noticed that in the Shopping Cart N-Step Approval BADi, you have to map in the code each possible approver in every case possible which would take more time doing. I found this more tedious.

Instead of using the N-Step BADI, I copied the 2-step workflow and created my own and added a 3rd step to the approval process. What I needed was a dynamic determination of approvers in the first two steps and a fixed approver for the 3rd step. So far it's working fine so I'm just wondering why SAP "promotes" the BADI more instead of defining a new workflow which is, I think, easier and more flexible.

What are your thoughts? Am I missing out on something important?

Regards,

Marvin

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 04:13 AM

    Hi Marvin,

    You are right. In your case N was fixed and it was 3 and hence it was easier to copy the standard 2-step and extend it to 3.

    But in case N is determined at run-time and not fixed - for ex: based on SC data we decide whether it needs 10 steps or 15 steps or 20 steps (I have seen some customers having up to 15 levels), then it is very difficult to develop our own workflow for these cases.

    This is the advantage of N-step workflow. As this N-step BADI workflow is standard we also get support from SAP.

    Rgds,

    Prasanna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Marvin,

      Unfirtuntaely no. We have to create a custom business object copying the standard objec AAGENT or ABSMANAGER and change the logic in method CREATE. This is the only way.

      We cannot use the normal agent assignment like Org/User/Position/Rule/Role etc as the approval preview will not work without adhoc agents.

      Hope this helps.

      Rgds,

      Prasanna

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.