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

Lock delivery

Former Member
0 Likes
1,027

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
Read only

Former Member
0 Likes
844

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
Read only

Former Member
0 Likes
844

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.

Read only

Former Member
0 Likes
845

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?

Read only

0 Likes
844

Hi

can you send me the FM

thanks

Read only

Former Member
0 Likes
844

Hi,

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

Reward if helpful.