Hello,
I repost the following question from Former Member
I am on a project that requires the release of a PM order
I am using the BAPI_ALM_ORDER_MAINTAIN to perform this task with success, as follows:
Copy Code
- ls_bapi_method-objecttype ='HEADER'.
- ls_bapi_method-method ='RELEASE'.
- ls_bapi_method-objectkey =ls_bapi_header-orderid.
- APPEND ls_bapi_method TO lt_bapi_method.
There is however an error when I try to release a PM order that has components with no stock availability.
It issues the following error:
- C2 009 - Release rejected
If I try to release the order via IW32, it issues an warning, but I am able to bypass it, as you can see in the following picture:

If i click on "Release Order" it will be released without further problems.
The application needs to allow to also release the the order even if it has components without stock With the BAPI.
How can I replicate via BAPI this button "Release Order".
Thank you,
Tony Ankri
Add comment