BADI and It's Implementation in SAP
BADI and It's Implementation in SAP
BADI and It's Implementation in SAP
BADI
AND ITS
IMPLEMENTATION
IN SAP
Introduction To
INDEX
Prerequisites
Basic knowledge of User exits.
Scope of this document:
This BOK is mainly focusing on the BADI definition and how to implement
the BADI definition. The things I am putting here are exclusively based on
my understandings about BADIs.
Introduction
Concept of BADI
To incorporate the required functionalities in the standard SAP code exit
points are defined in this code (Standard SAP code). This achieves the
intention of the programmer to add his changes in the standard SAP code
without changing the actual code. This is called as “Definition view”.
4 2
5
3
1) The highlighted text shows the BADI definition. To implement the BADI
its definition must have been created. The BADI definition could of
maximum 20 characters.
3) Interfaces tab :
The interface tab shows the names of the various methods that can be
implemented. Each method is having its own functionality.
5) Multiple Use Check Box: If this Check is checked, this ensures that the
BADI definition can be implemented more than once else it can be
implemented only once.
6) Filter-depend and Filter type: This defines the type of data that is valid
as a filter value. We can specify the filter type (7), which must be a
data element of character type with maximum length as 30.
Pop-up will appear asking for the definition name, enter the name
/SAPAPO/SDP_RELDATA as shown in above screen shot.
Enter the description for the implementation and activate it. To activate
and deactivate the implementation use the buttons highlighted in the
screen shot.
Here as we can see parameters are starting with IV, IT and CT. The
meaning of this is as follows:
When we say BADI is being called, actually methods are being called which
contain our code.
Let me take you through an example:
Our aim was to split the data as per the requirement, for that we used the
method CHANGE_RELDATA. The above screen shot shows this method.
The code was been written in this method to get the desired data split.