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

Error in BAPI

Former Member
0 Likes
530

Hello,

I am getting error in BAPI.

We are running one upload program which in between calls BAPI for record managment.

BAPI name is BAPI_RECORD_ADDELEMENT.

I found while debugging that above BAPI is returing error as

u201CIS already lockedu201D

Can anybody help me out in understanding what exactly this error means or why it could be coming.

Is it because of data which i am passing in BAPI.

Regards

Vik

4 REPLIES 4
Read only

Former Member
0 Likes
503

Hi,

FInd out which object is locked, and unlock it before calling BAPI.

Cheers.

...Reward if useful

Read only

0 Likes
503

thanks for your answer , but can you tell me how to find which object is locked.

Read only

0 Likes
503

Hi Vikrant,

Go to SM12, and there you can find the lock entries. Check for the entreis related to your program, and unlock them using DEQUEUE FM related that table.

Hope this is helpful to you. If you need further information, revert back.

Reward all the helpful answers.

Regards

Nagaraj T

Read only

0 Likes
503

thanks to you i know this but i think my question is not clear.

Problem is i m using BAPI to save records.

Here i am sending one document number which will be stored by the above mentioned BAPI.

Now BAPI is returing a error message it is locked. i want know what could be a cause of this now one of u mentioned to unlock the entry but how to unlock a document number.

SM12 is not used for this i think.

I will be thankfull if any body can clearify on this.

VIk