Skip to Content
0

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

Jun 12, 2017 at 05:23 PM

111

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Krishna Kishor Kammaje
Jun 13, 2017 at 04:24 AM
0

What have you tried so far?

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

Share
10 |10000 characters needed characters left characters exceeded
Rafi Mohammed Jun 13, 2017 at 01:16 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Rafi, These questions are better asked by an SRM ABAP expert. At this point, everything seems right from the Fiori point of view.

0
Rafi Mohammed Jun 13, 2017 at 01:50 PM
0

Hi Krishna,

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

error.jpg

Regards,

Rafi


error.jpg (39.5 kB)
Share
10 |10000 characters needed characters left characters exceeded