Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

1.

BADI (Business Add-in)

 BADI is another way of implementing enhancements to the standard programs without


modifying the original code.
 BADI's are implemented using oo programming technique Technically a BADI is
nothing but an interface.
 Each BADI consists of the method without implementation called as BADI definition.
 We need to create classes to write the abap code by implementing the methods called as
BADI implementation.

2. Two different view of BADI

 Definition View
 Implementation View
Definition View : -
 In the definition view, an application programmer predefined exit points in a source that
allow specific industry sectors, partners and customers to attach additional functionality
to standard SAP source code without having to modify the original object.
 To find out the BADI definition
 Transaction code : SE18.
 BADI definition are Interface .
Implementation View :-
 The users of Business Add-Ins can Enhance(customize) the logic they need or use a
standard logic if one is available.
 To implement BADI
 Transaction code : SE19.
 BADI implementation are Class.

3. Types of BADI:

 Within SAP
 Multiple Use BADI.
 Filter Depend BADI.
 Custom BADI (Not used/Rarely used)
4. What is Single implementation BADI?

A BADI which has only one implementation (single class) is called single implementation
BADI.

5. What is Multiple implementation BADI?


A BADI which has multiple implementations is called multiple implementation BADI. By
default all the implementations will be executed.We cannot control the sequence of execution of
multiple implementations.

6. What is Filter BADI?

It is type of BADI which has a filter value so that only those implementations which satisfy the
filter value are executed. The remaining implementations are not executed this type of BADI is
called a filter BADI.

7.Properties of BADI?

 Within SAP
 Multiple use
 Filter-depend

8. Enhancement point

SAP has some standard functionality defined for a report , but it may be required that
you'll need to add your own code. In this case the code that you'll add will be executed along
with the standard code.

9. Enhancement section.

SAP has its standard functionality defines but it may not suit your requirement, in that
case you may need to add your code and you'll need that code to be executed only. By this
method the existing code is automatically commented and a copy of the same code is available to
edit.
After executing the report only your code will be executed and the standard code will be
bypassed.

10. What is Enhancement Spot?

The enhancement spots are used to manage explicit enhancement options. That means
you can add your code in standard ABAP code without need of access key, which implies that
the standard code is not disturbed. Enhancement spots specify the places where we can add our
code in standard SAP.

11. Difference between Customer Exit and BADI?


Customer Exit BADI

Transaction Codes Transaction Codes

Definition : SMOD Definition : SE18

Implementation : CMOD Implementation : SE19

Procedural Approach to work with Object Oriented Approach to work with


Enhancements Enhancements.

Is a Two-level infrastructure ( SAP and Allow for a multi-level system landscape (


customer solutions ). SAP , partner and customer solutions , as well
as country versions , industry solutions and the
like )

Note : Business Add-Ins can be created at each


level within such a system

Can only be implemented once and Multiple enhancements are possible. In


enhancements that can be used actively by any addition, Business Add-Ins can be defined
number of customers. according to filter values. This allows you to
control add-in implementation and make it
dependent on specific criteria.

12. What are the ways to find badi?

1. Using standard class CL_EXITHANDLER.


2. Using SE84 T-code.

13. What are the steps to Develop BADI in SAP?

Enter BADI name


Click on CREATE SE18
To define a BADI use Sap Menu -> Tools -> ABAP Workbench -> Utilities -> Business Ad-Ins
>
Defining BADIs - Attributes
- Enter short text
- BADI class is automatically created
- When a BADI is created, BADI class gets automatically created with the suffix 'CL_EX_'
after the first character of the BADI name.
- Package: Specifies the Package in which this BADI resides.
- Multiple uses: With this option you can have multiple implementations for the same
BADI

14. What is a class name for BADI in SAP?


An adapter class with 'CL_EX_' inserted between the first and second characters of the
BAdi name.

15. What is a Interface name for BADI in SAP?


An interface with 'IF_EX_' inserted between the first and second characters of the BAdi name.

16. What is CL_EXITHANDLER in BADI?


CL_EXITHANDLER is a class using which ,we can find the BADI's

17. What is Get_Instance in BADI?


Get_instance is a method in which BADI's are finding.

18. What is Kernel BADI in SAP?


We can define multiple BADI definitions under a single Enhancement Spot and also we
can define multiple BADI implementations under a single Enhancement implementation.

19. What is the GET BADI statement?


This statement generates a new BAdI object and sets the BAdI reference to the object in a
BAdI reference variable

badi . This statement has a static and a dynamic variant.

In the case of the static variant, addition TYPE is not declared. The static type of the reference
variable badi must be a BAdI . This determines which BAdI will be used.

20. What is a Fallback Class?


The Fallback option is used if no BAdI implementation with suitable filter conditions and
no standard implementation are found.

You might also like