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_GOODSMVT_CREATE

Former Member
0 Likes
1,012

Hello Expert, i'm in a loop to make a movement  321 with the BAPI_GOODSMVT_CREATE,

in the internal table i can have material with serial number and material without serial number.

For the material without serial number, i have no issue but i have issue with material with serial number.

I have the message that the plant is blocked by the user or that the material is blocked by the user.

I tried with wait up to 3 seconds, with a dequeue all, but still have the issue.

I guess so that there is a way to call the bapi only once passing all the serial number of the material.

Am i correct?

my code in attachment.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
899

Hi

Have you tried to check the lock in transaction SM12?

If no process is running you can try to delete it by a function module (it depends on the kind of lock)

Max

5 REPLIES 5
Read only

Former Member
0 Likes
900

Hi

Have you tried to check the lock in transaction SM12?

If no process is running you can try to delete it by a function module (it depends on the kind of lock)

Max

Read only

0 Likes
899

the report is running with a job and the dequeue all does not have effect.

Read only

0 Likes
899

Have you found out the lock?

Try to do a test online in order to get the lock

Max

Read only

0 Likes
899

when  i try it online... i do not have the block, only when i do it in background ...

Read only

0 Likes
899

After calling the BAPI, try to call the fm ENQUEUE_READ in order to check which block you've raised

You can change you program in order to write a log for a your test when the program works in background

Max