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

DOUBT IN BAPI

Former Member
0 Likes
480

iSales document 0000064570 was not changed

|Object requested is currently locked by user

The sales document is not yet complete: Edit data

call function 'BAPI_SALESORDER_CHANGE'

exporting

salesdocument = i_vbeln

order_header_in = order_header_in

order_header_inx = order_header_inx

tables

return = ret1.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = ret2.

4 REPLIES 4
Read only

Former Member
0 Likes
450

See if anybody has opened the same sales order in any other session(VA02 or the same bapi ).

REgards,

ravi

Read only

Former Member
0 Likes
450

Hello Manthira,

This error indicates that the Sales order 64570 is open for change by some other user. U can check in SM04 trx to c who has locked the sales order.

Read only

Former Member
0 Likes
450

Why not use BAPI_LIKP_PROCESS_MSG_DIRECT?

Star Shankar

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
450

Hi,

Make sure that you didn't opened the VA02 in another session.

Check here for sample code.

http://sap4.com/wiki/index.php?title=BAPI_SALESORDER_CHANGE