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

BAPI - Locking the Material

Adi_Bathineni
Participant
0 Likes
635

Hi Guru's,

I'm using the BAPI_GOODSMVT_CREATE to do the Movement types 101.

The problem is updating perfectly, but if i process the number of records at the same time with the same material number, it is giving the error as

"The XXXX Data is locked by the user XXXX". I know this error is coming because the BAPI is still working on updating the material data for the previous movement, at the same time the program is trying to do the movement type.

My question is hoe to check whether the BAPI is updating the Table or not???

Thanks,

Adi.

2 REPLIES 2
Read only

former_member156446
Active Contributor
0 Likes
448

write a select single to check if the bapi updated the table

or in the bapi_transaction_commit use wait = 'X'.

check [this discussion on SAP Fans|http://www.sapfans.com/forums/viewtopic.php?f=13&t=309992]

Read only

Adi_Bathineni
Participant
0 Likes
448

Thanks..

I already did that...