You are on page 1of 3

Enhancement

What is Enhancement?
Enhancement is the coding block provided by the the SAP to customize standard reports or
standard transaction codes according to the business requirements or user requirements. SAP
provides a standard set of transaction codes to be used to process a particular task or particular
operation, But sometimes we need to create a client-specific Customization in SAP because in
standard transaction code may not support that particular process which user want then we
need to enhance the process.

Enhancement is a special kind of programming where we write code for used to enhance
custom SAP screens and standard transaction. We can enhance a specific screen and transaction
code as per business or user requirement. enhancement permits us to modify or add SAP
standard business applications without changing in original or standard transactions.

Types of enhancements in SAP ABAP

1. implicit enhancement in SAP ABAP : – Implicit enhancement is the provided by SAP to


implement enhancement at standard code of SAP. Implicit enhancement used to write our own
code into a coding block, we can write our own code into a standard program or any function
module or any include program.

2. Explicit enhancement in SAP ABAP: – Explicit enhancement provided by the SAP at different
section of the code. When we use enhancement in a custom program without disturbing the
original source code, we called it Explicit enhancement here the program is not SAP standard
program.

To Achieve such kind of functionality we have 3 types of enhancements in SAP ABAP

 USER EXIT.

 CUSTOMER EXT.

 BADI (BUSINESS ADD INS)

USER EXIT

User exit considered for modification not an enhancement because here we are changing the
existing code of standard transaction code. User Exits permit us to add our own functionality or
our own business requirements to SAP standard program without make any changes on
standard program functionality. User exits are implemented in the form of subroutines known
as FORM EXIT. The user exits are normally collected at includes and attached to the standard
program.

Customer Exits in SAP ABAP

Customer Exits are created for specific program or specific purposes, specific screen, and
specific menus for standard applications. Customer exists are created in the form of function
modules. In customer Exits we will update the screen, menu, and field.

Customer Exits is function Exits , here we use the statement Call customer-function. We will add
our custom code inside the function module this is we called function Exits . In these function
modules we have Z includes or we will create the Z includes to customization.

Enhancements and Modification in SAP ABAP

A BADI can be used any number of times where as standard enhancement techniques can be
used only once. For example if we assign an enhancement to one custom project, then that
enhancement cannot be assigned to any other custom projects. To overcome this drawback SAP
has provided a new enhancement technique called BADI.

1) Transaction code for BADI Definition:

SE18

When you create a BAdI definition, a class interface will be automatically created and you can
define your methods in the interface. The implementation of the methods can be done in SE19
transaction.

When a BAdi is created following are automatically generated:

 An interface with ‘IF_EX_’ inserted between the first and second characters of the BAdi
name

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

2) Transaction code to Implement BADI:

SE19

Types of BADI’s:
1) Multi use BADI:

With this option, any number of active implementations can be assigned to the same definition
BADI. By default this option is checked.
If we want the BADI for multiple use
If you have multiple-use BADI definitions, the sequence must not play any role.
The drawback in Multiple use BADI is, it is not possible to know which BADI is active especially in
country specific version.

2) Filter dependent BADI:


Using this option we can define the BADI’s according to the filter values to control the add-in
implementation on specific criteria.
Ex: Specific country value.

You might also like