BADI Guide
BADI Guide
Enhancement - BADI
Page 1
Introduction To
Prerequisite
Basic knowledge of User exits.
Introduction
Concept of BADI
Page 2
BADI is an object oriented version of user exit. Unlike in user exit where
we write our code in function module, in BADI we enter the code in the
methods which are triggered at predefined points by standard SAP program.
Page 3
This BADI is used to process the demands from DP to SNP in APO.
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.
Page 4
a) Create: We can create the new BADI implementation.
Implementation name could be of maximum 20 characters.
3) Interfaces tab :
Page 5
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.
Page 6
To implement BADI definition /SAPAPO/SDP_RELDATA, use
implementation name as ZSDP_RELDATA3.
Pop-up will appear asking for the definition name, enter the name
/SAPAPO/SDP_RELDATA as shown in above screen shot.
Page 7
Enter the description for the implementation and activate it. To activate
and deactivate the implementation use the buttons highlighted in the
screen shot.
Page 8
Our required method is change_reldata. To write the code in to the
method double click on it.
Here as we can see parameters are starting with IV, IT and CT. The
meaning of this is as follows:
Page 9
How BADI Works?
When we say BADI is being called, actually methods are being called which
contain our code.
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.
Page 10
The code was been written in this method to get the desired data split.
Page 11