cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - PR Reset BAPI is not working in BADI

0 Kudos

Hi Workflow Experts,

We have got a requirement for Purchase requisition workflow to reset the release strategy when someone rejected approval in any of the level. And I have applied my BAPI function module for reset release and along with BAPI commit function module as well in BADI. But after saving PR this reset strategy is not working and impacting the PR. My question is, It is not recommended to use BAPI FM in BADI?. Or should i go for other enhancement. If someone has already experienced this sort of case, please suggest me the include or enhancement details that where I can apply my code. Thanks a lot.

former_member184495
Active Contributor
0 Kudos

Hi,

reseting PR you mean reset the ReleaseCode right? not Release Strategy!!!

Like say 2 approvers. First approver with Release code 'R1' approved. Second Approver with Release code 'R2' rejected.

So you want the PR to go back to Release code 'R1', right?

The BAPI should do it, no need of BADI.

I think for PR the bapi should be BAPI_REQUISITION_RESET_RELEASE. Use it with BAPI_TRANSACTION_COMMIT (if needed).

Hope it helps.

Aditya V

Accepted Solutions (0)

Answers (1)

Answers (1)

anjan_paul
Active Contributor
0 Kudos

Hi,

I think resetting can be done from SPRO release strategy.

Thanks

0 Kudos

Hi Anjan,

Thanks for the response. Yes. But it is required a condition is that if any of the rejection happens in any level, it should automatically start from first level again. Hence we require this BAPI FM to reset approval from initial level by giving release code. Now this changes is not reflecting in PR. My question is, it is not recommended to use BAPI in BADI enhancement. If yes, then I am expecting other enhancement possibilities to apply this code. Thanks.