0% found this document useful (0 votes)
32 views4 pages

Enhancements

enh

Uploaded by

Jaya Sankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

Enhancements

enh

Uploaded by

Jaya Sankar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Enhancements: - it is a technique of adding extra functionalities to the existing one, when we

are not able use existing one in sap then we are going to use enhancements.
Enhancement consist of 3 types they are

1. Exits
2. Badis
3. Enhancement frame work

1. Exits: - These exits are function modules called by SAP, with fixed input and output parameters,
and only containing an INCLUDE ZX... ABAP statement that the client may create. The exit belongs to
exactly one Enhancement (an 8 characters code).

There 2 types of exits


1. User Exit (SMOD)(access key required)
2. Customer Exit (CMOD)
1. Menu Exit
2. Screen Exit
3. Function Module Exit

1. User Exits: - These are implemented in the form of subroutines and hence are also known as FORM
EXITs. The user exits are generally collected in includes and attached to the standard program by the
SAP. User exits are a type of system enhancement that was originally developed for the R/3 SD (Sales
and distribution) module. User-exits are empty subroutines that SAP Developers have provided for you.
You can fill them with your own source code. Technically this is a modification. All User exits start with
the word USEREXIT_... The tcode for user exit is SMOD.

2. Customer Exit: - SAP creates customer exits for specific programs, screens, and menus within
standard applications. These exits do not contain any functionality. Instead, the customer exits act as
hooks. You can hang your own add-on functionality onto these hooks. Customer exits are nothing but a
include in customer name space will be provided in the function module which starts with CALL
CUSTOMER. You can fill them with your own source code. Technically this is an enhancement. User exits
generally refer to SD module while customer exits refer to all modules like MM, SD, PP, FICO etc.
The tcode for Customer exit is CMOD.
Advantage of Customer Exits: - They do not affect standard SAP source code, - They do not affect
software updates
There are 3 types of Customer Exits
1. Menu Exit
2. Screen Exit
3. Function Module Exit

1. Menu Exit: - Menu exits allow you to add your own functionality to menus. Menu exits are
implemented by SAP and are reserved menu entries in the GUI interface. The developer can add his/her
own text and logic for the menu.
Function codes for menu exits all start with "+".
2. Screen Exit: - Allow customer to add fields to a screen via a sub screen in an SAP program. The sub
screen is called within the standard screen's flow logic

Internal
3. Function Module Exit: - Function module exits are exits developed by SAP. The exit is implemented as
a call to a function module. The code for the function module is written by the developer. You are not
writing the code directly in the function module, but in the include that is implemented in the function
module.
Format: CALL CUSTOMER-FUNCTION '910'
The naming standard of function modules for function module exits is:
EXIT_<program name>_<3 digit suffix>

2. 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.
SE18 is the T-code for BADI definition, SE19 is the T-code for BADI implementation.
Advantages of BADI: The main advantage of using BADI’s is
We can create multiple implementations for a single BADI definition.
Whereas with the exits, we can create a single implementation.i.e a single project for a enhancement.
We cannot create another project (implementation) for enhancement which is already used. That is why
we go for BADI.
Types of BADI: There are 3 types of Badi’s
Single implementation BADI.
Multiple implementation BADI.
Filter BADI.

1. Single implementation BADI: - A BADI which has only one implementation (single class) is called
single implementation BADI.
2. 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.
3. 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.

Properties of BADI
If WITH IN SAP checkbox is selected then this BADI is only used by sap.
If multiple use checkbox is selected then it is a multiple implementation BADI.
If multiple use checkbox is not selected then it is a single implementation BADI.
If filter dependent checkbox is selected then it is filter dependent BADI. We need to specify the filter
type such as land1, bukrs, werks.for the filter BADI.

Internal
3. Enhancement frame work: - Modify standard code using implicit and explicit SAP
Enhancements points.

There are 2 types of Enhancements


1. Implicit Enhancements
2. Explicit Enhancements

1. Implicit Enhancements:- These Enhancement options are automatically available at certain pre-
defined places. Some of the implicit options are:
• At the end of all the programs (Includes, Reports, Function pool, Module pool, etc.), after the last
statement
• At the beginning and end of all FORM subroutines
• At the end of all Function Modules
To view all the implicit options available in a source code, choose ‘Edit -> Enhancement Operations ->
Show Implicit Enhancement Options’ from the editor

2. Explicit Enhancements:- There are two types of Explicit Enhancement options available. One which
can be provided at a specific place - called Enhancement Point, and another which can be used to
replace a set of statements – called Enhancement Section.

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.

Internal
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.

Internal

You might also like