01-05-2012 6:19 AM
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.
01-05-2012 6:44 AM
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
01-05-2012 7:03 AM
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.
01-05-2012 7:26 AM
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?
01-05-2012 8:00 AM
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
01-05-2012 9:13 PM
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.
01-09-2012 3:19 AM
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
01-05-2012 6:46 AM
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.