Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with BAPI_PO_CHANGE and MB01

Former Member
0 Likes
599

Hello Everybody,

I´m using BAPI_PO_CHANGE to modify an existing Purchase Order. It works fine. When it finishes, I execute a Bapi_transaction_commit and make a Call Transaction to MB01 but it gives me 'The PO 450000000 is blocked by MYUSER'.

Is there any way to unblock the PO?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
561

Hi,

As suggested you use BAPI_PO_RELEASE and then LEAVE TO TRANSACTION 'MB01'. I think you are getting the error because when you call transaction the current processing block is preserved since when you fifnish the call the processing resumes from where the call was inititated.

Hope this helps.

Best Regards,

Navin Fernandes.

Hello Everybody,

I´m using BAPI_PO_CHANGE to modify an existing Purchase Order. It works fine. When it finishes, I execute a Bapi_transaction_commit and make a Call Transaction to MB01 but it gives me 'The PO 450000000 is blocked by MYUSER'.

Is there any way to unblock the PO?

Thanks!

3 REPLIES 3
Read only

christine_evans
Active Contributor
0 Likes
561

You can use BAPI_PO_RELEASE. However, the changes that result in a PO getting blocked and needing to be released eg increasing the value of the PO will be defined in your config and should be there for a purpose, so perhaps you should find out first whether just releasing the PO straightaway in your program is appropriate.

Read only

Former Member
0 Likes
562

Hi,

As suggested you use BAPI_PO_RELEASE and then LEAVE TO TRANSACTION 'MB01'. I think you are getting the error because when you call transaction the current processing block is preserved since when you fifnish the call the processing resumes from where the call was inititated.

Hope this helps.

Best Regards,

Navin Fernandes.

Read only

Former Member
0 Likes
561

Hi,

Call BAPI_TRANSACTION_COMMIT with parameter WAIT = 'X'.

Regards

Vinod