Skip to Content
avatar image
Former Member

Workflow - PR Reset BAPI is not working in BADI

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.

Add comment
10|10000 characters needed characters exceeded

  • 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

  • Get RSS Feed

1 Answer

  • Sep 14, 2017 at 08:50 AM


    I think resetting can be done from SPRO release strategy.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.