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 - Locking the Material

Adi_Bathineni
Participant
0 Kudos

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

former_member156446
Active Contributor
0 Kudos

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]

Adi_Bathineni
Participant
0 Kudos

Thanks..

I already did that...