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

Locking issue

zaid94
Explorer
0 Likes
4,024

Hello Expert,

I am using this FM 'ENQUEUE_EVVBLKE' to lock the delivery, and it is working fine (Delivery locked) but still i can open the respective sales order in change mode. please suggest .

is there any other FM to lock delivery and SO at the same time.

thanks in advance.

8 REPLIES 8
Read only

Sandra_Rossi
Active Contributor
3,678

Probably not. Use the lock display (SM12) or enqueue trace (ST05) to know the enqueue objects used by sales order in change mode.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
3,678

Hello zaid94

The EVVBLKE lock object, locks only LIKP table, i.e. deliveries. It doesn't lock any sales order tables. VL02N locks corresponding sales order(s) with the EVVBAKE enqueue object.

Best regards

Dominik Tylczynski

Read only

0 Likes
3,678

Hello Dominik Tylczynski,

Thanks for your quick response.

is there any FM to lock both delivery and so.

Thanks!

Read only

0 Likes
3,678

zaid94 Not that I know of. Why don't you use ENQUEUE_EVVBLKE and ENQUEUE_EVVBAKE together?

Read only

zaid94
Explorer
0 Likes
3,678

I am locking the delivery not the sales order but even after locking the delivery I am able to change the sales order.

Read only

MohdRKhan
Active Contributor
0 Likes
3,678

Give the acress for display mode in sales order. If locks is there Theen it will not work for sales order.

Regards
Rashid Khan
Read only

MohdRKhan
Active Contributor
0 Likes
3,678

Give the acress for display mode in sales order. If locks is there Theen it will not work for sales order.

Regards
Rashid Khan
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,678

Run VL02n and in another SM12 screen on your user, you should notice that you have locked two records related to LIKP and VBAK.

  • If you want to replicate this behavior, you must also lock the delivery-related sales order record explicitly in your code.
  • So call DEQUEUE_EVVBLKE or SHP_ENQUEUE_EVVBLKE (LIKP) and ENQUEUE_EVVBAKE or SD_SALES_DOCUMENT_ENQUEUE (VBAK).

Feel free to do a 'where used' search on these FMs to find a single wrapper (but, IMHO, it is not worth it)