Skip to Content

Trigger SRM Workflow Approval Process from custom code of fiori app.

Hi Experts,

We have developed a custom Shopping Cart My Inbox. When Shopping Cart is opened

in Fiori and 'Approve/Reject' button is clicked then Approval should take place for N-Level

Defined in the Standard Workflow WS40000014.

Please share ideas if any.

Regards,

Rafi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jun 13, 2017 at 04:24 AM

    What have you tried so far?

    Implement the BADI /IWWRK/BADI_WF_BEFORE_UPD_IB, and write your custom logic to approve Shopping Cart.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 13, 2017 at 01:16 PM

    Hi Krishna,

    Thanks for your reply.

    I have Implemented the BADI /IWWRK/BADI_WF_BEFORE_UPD_IB in this I am using FM BBP_PROCDOC_STATUS_CHANGE, but due to this

    status of document is changed to APPROVED but internally in the document there is error at LEVEL-1 Approval under Approval Process Overview tab. Please see screen shot below for reference.

    Error says ZRR_SC_FUND1 did not determine approvers. Also you can see current status as : ERROR(rounded in red).

    What we need is as below

    1. When clicked on Approved in Fiori App - First Level Approval has to finish and status should change to Approved for First Level Approvel with

    Approved person name.

    2. Second Level Approval will remains unchanged as we are doing only first level approval from Fiori App.

    How to handle Levels of approval in the custom code. Please suggest which classes of SRM has to be used.

    Regards,

    Rafi

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 13, 2017 at 01:50 PM

    Hi Krishna,

    Error Screen Shot Attached here. Please take a look and kindly suggest.

    error.jpg

    Regards,

    Rafi

    Add comment
    10|10000 characters needed characters exceeded