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

ADMINISTRATOR_APPROVAL parameter in n-step approval badi


I have a question regarding administator_approval export parameter in the item level shopping cart approval badi. when no approvers are found in the shopping cart, then we use 'administrator_approval' parameter in n-step badi. In this badi I have done the following coding

if approval_table[] is initial.

ls_approver-approval_agent = 'USADMIN_01'.

ls_approver-name = 'admin name'.

ls_approver-approval_index = 1.

append ls_approval to administrator_approval.

When I see the approval preview it shows USADMIN as an approver, but after ordering shopping cart, the approval preview shows error. I checked in SWI1 and saw that it goes into endless loop during approval task. Also the approval workitem doesn't appear in ADMIN_01's SRM inbox. I also tried doing no_futher_approval_needed = 'X'. But this is causing shopping cart approved immediately. Can anyone tell me why is this happening?



Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2007 at 07:12 AM


    <u><b>Please provide the System version details -></b></u>

    The BADI to determine the Adminsitrator(if no approvers are found through 1 and 2 step approval workflow ) is BBP_WFL_ADMIN_APPROV.

    <b>Also check SAP OSS Note -></b>

    Note 978709 - Administrator receives no work item for the BADI workflow

    <u>Administrator Approval Determination - coding</u>







    First check whether the approval_table[] is initial.If so,you will have to populate the table approval_administrators so that the SC is sent to the default administrator if the approvers are not found. Also make sure in the field "approval_agent",you are assigning the username as "USXXXXX".


    Hope this will help. Do let me know.


    - Atul

    Add comment
    10|10000 characters needed characters exceeded

    • refer note 978709 which refers to your case.

      and also refer to note 733014 which deals with sample implementation for administrators.

      looks like there is issue with the index and also make sure that you enter correct name for admin according to the above sample implementation

      Message was edited by:

      khan voyalpad usman

  • Posted on Oct 26, 2007 at 08:38 AM

    administrator approval is required only when the N-step badi in your system is not able to find any approvers.

    and so this is the default when the badi does not return any approvers.

    is your badi able to determine the approvers based on the shopping cart value?

    and the parameter no_futher_approval_needed is to be set to X , when the last approver of the approval chain has completed the approval and when no further approvers are to be set by the badi

    Add comment
    10|10000 characters needed characters exceeded