Application Development 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: 

BAPI_SALESORDER_CHANGE problems with lock

Former Member
0 Kudos
388

Hi,

After using the BAPI_SALESORDER_CHANGE to change the state of the sale order, the bapi works fine, the fields are changed with no problem but

fine one time on the second time it locks the sales order by my user.

Any idea why that's happening?

Thzs in advance to all

Regards

Jaime Cordeiro

4 REPLIES 4

Former Member
0 Kudos
89

try

COMMIT WORK AND WAIT.

after bapi call

also

use the following fm

FM ENQUEUE_READ

0 Kudos
89

Hi,

why the use of the FM ENQUEUE_READ?

tkzs

Former Member
0 Kudos
89

Hi,

The problem here is that you need to come out of the FM 'BAPI_SALESORDER_CHANGE' completely after executing it to change Sales order.

After executing the FM 'BAPI_SALESORDER_CHANGE' to change the sales order, just come back to the initial screen of SE37. This will remove the lock on the sales order and solve your problem.

Reward if helpful.

Regards,

Dilli

Former Member
0 Kudos
89

I've find the problem, the R/3 is connected to the CRM and the one that controls is the CRM ok i've got to change the order in CRM

Thzs to all

Best Regards

Jaime Cordeiro