2010 Nov 10 8:28 PM
Hi all,
I thought we lock the record first, then process the function module, then unlock the record. Can someone explain why a program was written this way for posting movement for a production order ?
sy-subrc = 4
while sy-subrc ne 0.
Call FM 'ENQUEUE_ESORDER
endwhile.
Call FM 'DEQUEUE_ESORDER'
Data validation take place
Call FM 'BAPI_GOODSMVT_CREATE
COMMIT WORK
If the record is locked and then unlock immediately, how can it prevent the second user from accessing the same order ?
Any suggestions ?
thanks
Joyce
Joyce
Hi all,
I thought we lock the record first, then process the function module, then unlock the record. Can someone explain why a program was written this way for posting movement for a production order ?
sy-subrc = 4
while sy-subrc ne 0.
Call FM 'ENQUEUE_ESORDER
endwhile.
Call FM 'DEQUEUE_ESORDER'
Data validation take place
Call FM 'BAPI_GOODSMVT_CREATE
COMMIT WORK
If the record is locked and then unlock immediately, how can it prevent the second user from accessing the same order ?
Any suggestions ?
thanks
Joyce
Joyce
2010 Nov 10 8:32 PM
The program is checking that the order has finished all previous updates and is unlocked.
Rob
2010 Nov 10 9:01 PM
2010 Nov 12 2:53 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |