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: 

regarding field likp-anzpk updation

Former Member
0 Kudos

hi experts,

in my requirement i have to update the field (likp-anzpk) in vl02n transaction with total no packages based on the total line

items weight , but i found in some of the threads , that the field will be updated automatically when the packaging functionality

is once activated ,

i asked my client abt it ,they said that they r not activated packaging functionality.

is there any other way to update this field , i tried writing code in badi LE_SHP_DELIVERY_PROC and in method

IF_EX_LE_SHP_DELIVERY_PROC~SAVE_DOCUMENT_PREPARE , but it is useless

pls suggest me on this if there is any other way.\

thanks.

7 REPLIES 7

Former Member
0 Kudos

why do you think its useless 😛 dont say that SAP will feel bad providing something useless. wont they?

ok so, have you check the user exit USEREXIT_MOVE_FIELD_TO_LIKP in include MV50AFZ1

0 Kudos

hi soumya,

i didnt find the exit userexit_move_field_to_likp for vl02n transaction in the program sapmv50a,

but i found this user exit EXIT_SAPLV50Q_001( Delivery Monitor: User Exit for Filling Display Fields),

is that useful for my req, one more thing that in table likp the field likp-anzpk was empty

my cleint was asking that based on the weigt of lineitems in delivery the field has to be updated ,

how can i do that.

0 Kudos

what do you mean by its not there? did you find the include mv50afz1 inside sapmv50a

what the second form(subroutine) in this include?

more over, which version of SAP are you in?

0 Kudos

hi soumya,

sorry, i didnt mean that ,i want to say that i didnt find it in smod t-code,

i have checked by putting the break-point in that user exit , taht was not triggered

any help.

thanks

0 Kudos

mv50afz1 is one of the old-style SD exits, if I remember correctly. These exit routines are always active, not turned on by transaction CMOD (Customer modifications; SMOD or SAP modifications is the wrong transaction/wrong enhancements t-code). Any code in these old exits is always triggered. Insert some code, perhaps a simple compute like LV_VBELN = LIKP-VBLEN. Set your breakpoint and execute.

0 Kudos

hi break point,

my clients actual requirement was , he creates stock transfer advice (STA) against the PO using the transaction

VL10B , the moment STA was created ,he was asking for the field likp-anzpk has to be updated when he go to

display mode to VL02N, when he double clicks on the generated STA no from VL10B.

i have tried in the method BEFORE SAVE AND PUBLISH DOCUMENT,it was executing when the user pressed SAVE

button in VL02N ,

can any body pls suggest which method i have to use to update the field likp-anzpk immediately when the STA was created

from VL10B before the display of the sta in vl02n.

let me know that any USER-EXIT or BADI exists to fullfill this req

regards\

maheshlap

Former Member
0 Kudos

Hi,

Have you tried methods in the Badi definition : LE_SHP_DELIVERY_PROC.

1. SAVE_AND_PUBLISH_DOCUMENT Save Own Data/Publish Delivery

2 CHANGE_DELIVERY_HEADER Change of Own Data When Changing Header Data

and some other methods and Badi's are also available.

Please find the exact BADI and Method by initiating a break point in class[SE24] CL_EXITHANDLER method GET_INSTANCE

and test VL02n.