Working with BADI’s in SAP ABAP
Business addins are the enhancements to standard SAP’s version. They can be inserted to accommodate the business requirements. Here are the steps in working with a custom BADI inside SAP.
Defining BADI
1. Go to SE18 and create the BADI definition. Provide appropriate description and the interface will be automatically created.
2. Double click on the interface and create the required methods inside the methods tab and add required parameters.
3. Activate the BADI Definition.
Implementing BADI
1. Go to SE18, type in the BADI which has already been defined either the one previously created or the one which exists in the system.
2. Click on Menu: Implementation -> Create and provide a implementation name.
3. Double click on the method name and write the required code.
Here is what is usually happening where ever the BADI is called inside the ABAP program.
CL_EXITHANDLE=>GET_INSTANCE ( Exporting exit_name = '<NAME OF BADI>' null_instance_accepted = 'X' Changing instance = oref_badi_instance ) "Call to Methods defined in the badi definition oref_badi_instance->'<any method name>'.
If you like this post, you may as well like these too:
- ABAP Programs: Working with get events REPORT ZSOURCE1504. * Work areas TABLES BOOKINGS. * Reading data GET BOOKINGS. WRITE / BOOKINGS-FLDATE....
- ABAP Programs: Working with tables from the Dictionary REPORT ZSOURCE0501. * Declaration of a work area for a Dictionary tableTABLES CUSTOMERS.* Reading all entries of the database table and displaying each entrySELECT * FROM CUSTOMERS. WRITE: / CUSTOMERS-NAME.ENDSELECT.———————ABAPer,...
- ABAP Program : Working with Temporary Programs Ever had a need to create a temporary program during the run time. Here is a simple program which will allow you to learn that. REPORT ZSOURCE2501. * Internal table...
- ABAP Programs: Working with Field symbols REPORT CHAP2401. * Defining a Field Symbol FIELD-SYMBOLS < FS>. * Variable for later use DATA FIELD VALUE 'X'. * Assigning a field to a Field Symbol ASSIGN FIELD TO...
- ABAP Programs: Working with hide statements REPORT ZSOURCE1704. * work area TABLES CUSTOMERS. * Internal table DATA ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100 WITH HEADER LINE. * Processing data START-OF-SELECTION. SELECT * FROM CUSTOMERS INTO TABLE ALL_CUSTOMERS....
- ABAP Programs: Working with Select-Options REPORT ZSOURCE1602. * Work area TABLES CUSTOMERS. * Defining Select-Options SELECT-OPTIONS S_NAME FOR CUSTOMERS-NAME. SELECT * FROM CUSTOMERS WHERE NAME IN S_NAME. WRITE / CUSTOMERS-NAME. ENDSELECT....
- Working with Payment Cards in SAP Payment Card is used for cash-free payment used in variety of business transactions, from buying goods at local store to procuring goods and services on behalf of company. Payment Cards...
- Working with Printers in SAP how to add a printer 1. Log on to any client with your username and password in the SAP system. 2. Type SPAD in the command box on upper left...
- Working with variants in SAP Some common errors and how to fix the errors related to SAP variants. Did some one create a protected variant? Run Program RSVARENT, this will allow you to cancel the...
- Working with SAP Java Connector (JCo) Client Programming This document contains an assortment of general recommendations, performance tips, debugging tricks and solutions to specific client programming challenges that should be of value to all JCo Developers. Learn about...



















Leave a Reply