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 goods movement Create (User Locking Error)

Former Member
0 Kudos

HI all ,

Please help me in the issue . I am doing Goods movement through BAPI(BAPI_GOODSMOVEMENT_CREATE) and i am scheduling this job in background . I am gettigng an Error of Plant data of Material locked by the user(myself) and for the next iteration its not proceeded . Please help me how to get rid of the error .

Thanks in advance,

1 ACCEPTED SOLUTION

former_member536879
Active Contributor
0 Kudos

Hi Eric,

Is the value get updated in the table? After the Goods movement BAPI Just do wait up to 5 seconds and do the bapi commit.

Other wise if it is possible just debug .

With Regards,

Sumodh.P

10 REPLIES 10

former_member194669
Active Contributor
0 Kudos

I think may be in goods movement transaction some user exit is taking more time to complete while save. Please give a wait command after the bapi and check

and also for testing purpose check whether any lock entries for that material before calling bapi

0 Kudos

I am not using any userexits in the goods movement in the BAPI

0 Kudos

What i am meant is some userexit used in transactions while saving will get triggered in bapi also.

Please give wait command and check

0 Kudos

I am using wait for 3 seconds but still its showing user lock issue please help.

0 Kudos

Hi,

Use following statements after calling the BAPI.

call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait = 'X'.

Regards

Vinod

former_member536879
Active Contributor
0 Kudos

Hi Eric,

Is the value get updated in the table? After the Goods movement BAPI Just do wait up to 5 seconds and do the bapi commit.

Other wise if it is possible just debug .

With Regards,

Sumodh.P

0 Kudos

Please anyone suggest me on the same when i am scheduling the program in background the material and plant data is getting locked and for the next iteration i am not able get the next goods movement posted because of locked material and plant data

0 Kudos

Have you tried, BAPI_TRANSACTION_COMMIT with WAIT = 'X' parameter after each call of goods movement create bapi?

Regards

Vinod

0 Kudos

Yeah did it but its the same result

0 Kudos


Dear Eric,

Can you please share me the solution applied,I'm also facing the same problem from

a week and not able to solve.

Thanks in Advance

sridhar