cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member210252
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member210252
Contributor
0 Kudos

Hi Krishna,

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

error.jpg

Regards,

Rafi

former_member210252
Contributor
0 Kudos

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

kammaje_cis
Active Contributor
0 Kudos

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

kammaje_cis
Active Contributor
0 Kudos

What have you tried so far?

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