How to Business addin function in Standars transactiion
code. how it is steps
Answers were Sorted based on User's Feedback
Answer / sateesh
BAdi:We can use BADi for add the extra(custom)
functionality to the standard functionalities with out
modifying the standard code .
BADi develops using Object-Oriented concept .
Tcodes: SE18 Badi Definition
SE19 Badi Implementation.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / pavan
As explained above BADI's are the enhanced versions of User-
Exits. Please refer the below steps to find BADI's for
standard trasactions.
Goto SE24.
Give Object Type cl_exithandler and f8.
Double click GET_INSTANCE menthod. In this method apply
brake point for
CALL METHOD cl_exithandler=>get_class_name_by_interface
Then give respective TCode and execute then Debugger will
be getting activated.
Then is changing parameter we can find the all the BADI's
for the given TCode.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sivaramakrishna.s.v
Example1 on BADI
BUSINESS REQUIREMENT
 Raise an error message whenever the vender
belongs to german country and region is not specified.
STEP 1: Find the list of the BADIS for TCODE XKO2.
 GO TO SE24
 Give the class name as CL_EXIT HANDLER (this
class triggered for all transactions )
 Click on display
 Double click on the method GET_INSTANCE (in this
method exit_name parameter return all the available badis)
 Put a break point
 Execute the TCODE XKO2
 Give the vender no as 1
 Click on Select all icon to check the check boxes
 Press enter
 Give the country as DE and click on save
 The debugger will start and note down the list of
the BADIS
For first screen
VENDER_FIELDSTATUS
GOS_SRV_SELECT
For second screen
After save button u can find below badi
ADDRESS_CHECK
ADDR_TXJCD_CHECK
BADI_LAYER
ADDRESS_UPDATE
VENDER_ADD_DATA
 Go to se18select badi name radio button
 Give the BADI NAME click on display
 Select interface tab And check all the methods
 Find the suitable/roughly decide BADI name and
method by reading the description and checking the
signature. Here for our requirement check_all_data is the
method.
 Then create badi implementation as below
Step 2 : Creating implementation for the BADI
 Go to SE19
 Select classical badi radio button and give the
badi name vender_add_data in the second selection screen.
Now click on create implementation button below.
 Give the implementation name as
zvender_add_data ,click on continue.
 Give imple text.
 Now dbclick on the method check_all_data. Now
click on create button in displayed scree. give the
enhancement impl name as zvendor_add_data and text. Click
on continue
 Give package name and select given implementation
zvendor_add_data in the displayed screen and click on
continue.
 Now the method will be opend and write the code
break_point. Activate.
 Back and avtivate.

Step 3 : TESTING weather BADI is correct or not
 Now run the transaction XKO2
 Our BADI will be triggered with a break point
 So, this is the BADI and method which we can use
for this business requirement.
 Finally write the below code
METHOD IF_EX_VENDER_ADD_DATA~CHECK_ALL_DATA.
IF I_LFA1=LAND1=`DE’AND I_LFA1-REGIO=` ‘.
Massage ‘Region is mandatory for GERMAN VENDORS’ TYPE ‘E’.
ENDMETHOD.
 SAVE AND ACTIVATE THE METHOD.
 Click on back
 Activate the implementation
Step 4: UNIT TESTING
• Now test the transaction XKO2 by giving vender
country as ‘DE’ and without specifying the region.
• The Error message is displayed.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chowdary
Badi's are advanced concepts of user exits,
when we have written Badi for the standard transaction,
flow will be like this
standar code
"
"
badi
"
"
correct me if i was wrong
Is This Answer Correct ? | 1 Yes | 4 No |
Different types of locks?
Cds views
I have 2 inputs in Module pool prgm, if i click on the input i need to get drop down list..How to get it..
What are the types of indexes in abap?
at which situation we create the secondary index?
17) How will you validate selection screen elements?
Difference between select and select single statement
how many subscreens we can create in a main screen?
What are the contents in technical specifications?
what is 'F4' functionality?
how to restict the data display in smart form like if i want to display directly in secondary window.
What is the difference between table and template?