Skip to Content
avatar image
Former Member

ADMINISTRATOR_APPROVAL parameter in n-step approval badi

Hi,

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?

thanks,

Krupa

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 26, 2007 at 07:12 AM

    Hi

    <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>

    doubt

    approving-agents-of-an-item-in-sc

    nstep-badi-workflow

    shopping-cart-not-emitted-to-the-right-manager-cau

    http://help.sap.com/saphelp_srm50/helpdata/en/58/c14e3c59bfe747e10000000a11402f/frameset.htm

    nstep-workflow-for-gr-approval

    how-to-code-approvaladministrators-in-nstep-wf

    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".

    invoice-workflow-dialog-work-item-created

    Hope this will help. Do let me know.

    Regards

    - 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

  • 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