2006 Feb 13 5:12 PM
Hi,
i'm trying to add a funtionality in the exit func. EXIT_SAPLV01F_002 for WM batch determination and the tcode that trigger this functionality is LT03.
could some one suggest me on the approach on how to do this.I'm looking for the program where this exit gets triggered, where actually to place the code etc.
Thanks,
Kranthi.
2006 Feb 13 5:41 PM
max, Thanks for your prompt response.
i placed a break point on
x_bdcom-bdcall = x.
CALL CUSTOMER-FUNCTION '002'( which actually triggers the enhancement)
in the program SAPLV01F tcode LT03.
now i need to move the values like this
i neep to fetch kunnr, kunag and spart from tables LIKP and LIPS using delivery = i_komkh-vbeln,delivery item = i_komkh-posnr and i need to assign as follows
i_komkh-kunwe = likp-kunnr
i_komkh-kndnr = likp-kunag
i_komph-sparp = lips-spart,
could you please guide me.
Thanks,
Kranthi.
2006 Feb 13 5:20 PM
Hi
This exit is used un FM VB_BATCH_DETERMINATION, so you should check where this fm is used.
Anaway you should try to run your transaction and check if that exit is called (you can use a BREAK-POINT to do it). After you should check in which situation you exit has to be triggered.
Max
2006 Feb 13 5:41 PM
max, Thanks for your prompt response.
i placed a break point on
x_bdcom-bdcall = x.
CALL CUSTOMER-FUNCTION '002'( which actually triggers the enhancement)
in the program SAPLV01F tcode LT03.
now i need to move the values like this
i neep to fetch kunnr, kunag and spart from tables LIKP and LIPS using delivery = i_komkh-vbeln,delivery item = i_komkh-posnr and i need to assign as follows
i_komkh-kunwe = likp-kunnr
i_komkh-kndnr = likp-kunag
i_komph-sparp = lips-spart,
could you please guide me.
Thanks,
Kranthi.
2006 Feb 13 6:01 PM
Hi
You need to do a select on tables LIKP and LIPS:
Here you make sure transaction LT03 is running
CHECK SY-TCODE = 'LT03' or ..... "Other transaction?
here you make sure your documen is a delivery:
CHECK C_BDCOM-VBTYP = 'J'.
SELECT SINGLE * FROM LIKP WHERE VBELN = I_KOMKH-VBELN.
SELECT SINGLE * FROM LIPS WHERE VBELN = I_KOMKH-VBELN
AND POSNR = I_KOMKH-POSNR.
Remember this user exit is used by many transactions, so yuo make sure to run your code only for your case.
Max
2006 Feb 13 7:09 PM
Thanks, however,i'm looking on how to make an enhancement project for eg. which enhancement do i need to add in SMOD, how-to ,if possible please let me know the step by step procedure etc.
Thanks,
Kranthi.
2006 Feb 13 7:21 PM
Hi,
1) SMOD is the transaction were SAP provides the Enhancements/Exits for Customers.
2) CMOD is the transaction where you create your projects and add the enhancements from SMOD.
3) Once you have identified the Exit for T-code say LT03 , try finding corresponding enhancement in SMOD.
Then add that Enhancement in your project in CMOD.
4) Once you add the enhancement in your project , you choose which component to add (Function module).
5) Then Double click the include in the FM/Exit to write your code.
I hope this is what you are looking for
Thanks
Amit
2006 Feb 13 8:20 PM
last question, i have trouble finding the exact enhancement though i know the tcode and the FM, i'm not able to find the actual enhancement though i search in almost every enhancement for LT03 in app. pack LVS.
I'm unable to find the enhancement in which exit_saplv01f_002 is used..
can someone help me out.
Thanks,
Kranthi.
Message was edited by: kranthi kumar
2006 Feb 13 10:05 PM
Max
i found the enhancement from the FM exit by searching in SMOD ( F4 ) and then selecting all selections button and giving the FM name and i showed me the enhancement.
Thanks for your help and i will close the thread for now and i will get back if i come across any problems.
Thanks,
Kranthi.