new badi
TRANSCRIPT
-
8/3/2019 New BADI
1/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
-
8/3/2019 New BADI
2/12
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.
-
8/3/2019 New BADI
3/12
Select proper BADI definition and click on display
And you can see the associated BADI interface
Go to SE80
Provide package name as VS
-
8/3/2019 New BADI
4/12
Dril down tas follows and create enhancement spot
Provide details as follows
Save it to local object
-
8/3/2019 New BADI
5/12
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
-
8/3/2019 New BADI
6/12
Click on create implementation
Save to local object
And provide details as follows
Save to local object
Double click on implementation class
-
8/3/2019 New BADI
7/12
Double click on appropriate method and provide logic.
A popup will appear as follows
Click on yes
-
8/3/2019 New BADI
8/12
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
-
8/3/2019 New BADI
9/12
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
-
8/3/2019 New BADI
10/12
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
-
8/3/2019 New BADI
11/12
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
-
8/3/2019 New BADI
12/12
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..