‎2007 Jul 23 10:27 AM
Hi
i update shipement to delivery and when i do it ( IN USER EXIT )
i want to lock the delivery that not 2 pepole can do it in the same time
How can i do it?
Thanks
‎2007 Jul 23 10:30 AM
well deliveries are beeing stored in LIKP (Header data) and LIPS (Position data).
you gotta create a enqueue-function module for both and a dequeue-fm as well.
before SELECT, call your enqueue-fm´s.
when ready cann dequeue.
Why BEFORE reading? well you dont want a dirty ready do you?
‎2007 Jul 23 10:29 AM
If you are using the user exit in the standard transaction, then the delivery will be locked by the standard transaction. Only on Save or Exit will it be unlocked. You need not lock it explicitly.
‎2007 Jul 23 10:30 AM
well deliveries are beeing stored in LIKP (Header data) and LIPS (Position data).
you gotta create a enqueue-function module for both and a dequeue-fm as well.
before SELECT, call your enqueue-fm´s.
when ready cann dequeue.
Why BEFORE reading? well you dont want a dirty ready do you?
‎2007 Jul 23 11:04 AM
‎2007 Jul 23 10:30 AM
Hi,
You have to enqueu that particular delivery number.After updating you can deque it.
Reward if helpful.