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: 

Enhancement Spot

Former Member
0 Kudos

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

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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