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

VL02N User-exit

Former Member
0 Likes
1,267

Hi,

I want to know the user exit for VL02N or VL02 for following scenario.

-Stop user from changing "Delivery Qty" for certain condition. Which user-exit should I use?

(I am not sure how to use method CHANGE_DELIVERY_ITEM of BADI LE_SHP_DELIVERY_PROC)

Thanks,

Chirag

Hi,

I want to know the user exit for VL02N or VL02 for following scenario.

-Stop user from changing "Delivery Qty" for certain condition. Which user-exit should I use?

(I am not sure how to use method CHANGE_DELIVERY_ITEM of BADI LE_SHP_DELIVERY_PROC)

Thanks,

Chirag

5 REPLIES 5
Read only

former_member418469
Participant
0 Likes
1,022

hi,

There are many ways to find user exit:

1. Go tcode SMOD ->under SD module search for it.

2. Find the main program of VL02N search for key word 'call customer-function' of the man program put break point and study the documentation.

Read only

Former Member
0 Likes
1,022

Hope you want to disable the field "delivery quantity". In this case you can use the method "CHANGE_FIELD_ATTRIBUTES" of badi "LE_SHP_DELIVERY_PROC". Try below code

data : CT_FIELD_ATTRIBUTES type SHP_SCREEN_ATTRIBUTES_T,
          WA_FIELD_ATRIBUTES type SHP_SCREEN_ATTRIBUTES.

MOVE 'LIPSD-G_LFIMG' to wa_field_attributes-name.
move  '0' to wa_field_attributes-input.
append wa_field_attributes to ct_field_attributes.

Regards

Vinod

Read only

Former Member
0 Likes
1,022

Hi Guys,

Thanks for the replies.

I have another requirement to not to allow user to delete whole Delivery in certain condition and display custom error message.

Is it possible to utilize any method from BADI or I need to use another user exit/BADI?

If any method from BADI, how do I use it?

Thanks,

Chirag

Read only

0 Likes
1,022

Use form routine USEREXIT_SAVE_PREPEARE in user exit MV50AFZ1. Check the value LIKP-UPDKZ ( ='D' ) if the user is deleting the delivery.

Regards

Vinod

Read only

Former Member
0 Likes
1,021

CHECK_ITEM_DELETION will work here.