Vous êtes sur la page 1sur 12

Finding the Package for Tcode

Go to SE93 Provide Tcode XD01.

Click on display Double click on program name In menu click on Go to and attribute then you get the package.

Finding the BADI


Go to SE18 Select BADI Definition and click on F4 help

Click on information system

Provide Package name as VS (this you get in SE93 by providing tcode ). Click on Enter Then you will find list of badis as follows.

Select proper BADI definition and click on display And you can see the associated BADI interface

Go to SE80 Provide package name as VS

Dril down tas follows and create enhancement spot

Provide details as follows

Save it to local object

Click on create Badi Provide Badi name as ZCUSTOMER_ADD_DATA Drill down Badi definition and double click on interface tab and provide interface name that you found in BADI (SE18)

Save and Activate.

BADI Implementation:
Go to SE19

Click on create implementation

Save to local object And provide details as follows

Save to local object

Double click on implementation class

Double click on appropriate method and provide logic. A popup will appear as follows

Click on yes

Save and go BACK And ACTIVATE the enhancement implementation.

Testing the Enhancement


Now you can test your enhancement by running the Transaction. And observe the changes to the transaction Functionality/Appearance effected by your code..

Second way of implementing BADI:


Go to SE80 Select your enhancement spot from where ever it is saved.

Right click on BADI Definition and click on Create Badi Implementation

The popup look like following

Here you can find other BADI implementations that are saved in same enhancement spot, these enhancements may belongs to same BADI definition or may be belongs to different BADI definitions. However the BADI supports multiple implementations you can even create second or more implementation to the same badi. Note: In our case the appearing BADI is nothing but the first implementation to the CUSTOMER_ADD_DATA badi definition. Now click on create symbol to create new implementation. Provide details as below

Click to Save .

Select our implementation and click on ok. Provide the impl class name and ond click on OK

Drill down the BADI and double click on implementation

Now Double click and Provide code for the method as per client requirement. Double click on appropriate method and provide logic. A popup will appear as follows

Click on yes

Save and go BACK And ACTIVATE the enhancement implementation.

Testing the Enhancement


Now you can test your enhancement by running the Transaction. And observe the changes to the transaction Functionality/Appearance effected by your code..

Vous aimerez peut-être aussi