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: 

Lock delivery

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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?

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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?

0 Kudos

Hi

can you send me the FM

thanks

Former Member
0 Kudos

Hi,

You have to enqueu that particular delivery number.After updating you can deque it.

Reward if helpful.