2012 Oct 18 11:31 AM
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.
2012 Oct 18 11:38 AM
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
2012 Oct 18 11:38 AM
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
2012 Oct 18 11:47 AM
the report is running with a job and the dequeue all does not have effect.
2012 Oct 18 1:29 PM
Have you found out the lock?
Try to do a test online in order to get the lock
Max
2012 Oct 18 4:36 PM
when i try it online... i do not have the block, only when i do it in background ...
2012 Oct 18 4:55 PM
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