11-21-2007 2:50 PM
Hi All,
I have a requirement to add some data to delivery using the Function exit :EXIT_SAPLV56L_002 , but that is migrated to Enhancement spot :SMOD_V56LDELI. Could any one help me out how to use this enhancement spot and where to write the code and etc..
I know how to use the function exit using the CMOD.
Please help me how to use the above enhacement spot.
Urgent.
Thanks ,
Raja
11-21-2007 2:54 PM
Follow this steps:
Go to SMOD..
Put V56LDELI.
Select Comonent radiobutton.. Press display
Double click on the Fucniton module name
Double click on the ZXV56U25
System gives you warning message... press enter.. and go ahead..
put your code here .
After adding your code in the exit, activate that.
Go to CMOD.
Put one project name.. press crate
Press enhancement assignment.
put V56LDELI here.. save
On the main screen of CMOD you will fin the button of active. Activate it.
Regards,
Naimesh Patel
11-22-2007 5:34 AM
Go to SE19
Give the Enhancement Spot SMOD_V56LDELI
Find the Interface name ( IF_EX_SMOD_V56LDELI )
and method name ( EXIT_SAPLV56L_002)
Using this information , you can call this Enhancemment spot like below .
data : handle TYPE REF TO IF_EX_SMOD_V56LDELI .
GET BADI handle .
*TRY.
CALL METHOD if_ex_smod_v56ldeli=>exit_saplv56l_002
EXPORTING
i_langu = SY-LANGU
i_partner_role = SPACE
opt_customer_data = 'X'
opt_customizing_data = 'X'
opt_export_data = SPACE
opt_items = 'X'
opt_minimized_delivery_view = SPACE
opt_order_data = SPACE
opt_partners = 'X'
CHANGING
c_vtrlk =
c_vtrlp =
.
CATCH cx_vtr .
*ENDTRY.
Note that I have used this method for calling the customized Enhancement spot.
I don't have the experience of using the same Enhancement Spot . So please try it out this.
If you find any other solutions , please share here. Thanks
01-30-2014 2:49 PM
Hello Chandra babu and SAP Folks,
To resolve this issue i followed these steps:-
1) Create Enhancement Implementation. let's say i name it - ZSDEP01_SMOD_V56LDELI_SDAHB
2) In next screen, provide class name and Badi Definition to create BAdi implementation for existing BAdi Definitions.
3) Create Implementation class. Go to SE19, Give Enhancement Implementation name - ZSDEP01_SMOD_V56LDELI_SDAHB --> Click on display button and follow as direction given by below screen.
Click YES
Interface method is create for given class.
4) You can write code inside this method:
Break-point.
5) Activate it.
6) This method gets activated during TCODE execution - VT01N and VT02N at addition of shipment deliveries + save it.
7) Now you can debug the FM table parameters like C_VTRLK or C_VTRLP to analyze these internal table contents and amend as per your need in order to bring the expected change what you were looking for.
Hope it helps others as well, whosoever comes across this post.
Best regards,
Rahul Agarwal