Introduction To SAP Enhancements
Introduction To SAP Enhancements
Introduction To SAP Enhancements
Enhancements concept
The enhancement is a concept of adding your own functionality to SAP's standard business
applications without having to modify the original applications. To modify the standard SAP behavior
as per customer requirements, we can use enhancement framework.
Step 5: Press the button information system and then enter the package name in
the pop-up screen (Repository Info System: Find Exits)
Step 6: Press enter and you will get a list User Exit with description.
so, this is how User Exits cab be found for any T. Code.
Process 2:
Alternatively:
Step 1: Go to T. Code: CO11N (same as above example)
Step 4: After you have got the package name follow the same in Step 3 to Step 6 mentioned in the
Process 1.
User exits in SAP real-time applications, implementing user exit in SAP ABAP
Business Requirement: When ever business user creates a delivery order, the standard SAP
application dose not check for storage location (whether it is space or not ), if it is space it should
raise a error message.
VL01 is the t-code for creating a deliver order, this uses standard SAP program SAPMV50A, the
standard program don`t check for storage location equal to space or not.
As per the requirement we need to find a suitable user exit for this and we need add additional code
to check storage location.
Technical information : Storage location field is LGORT and it is available in LIPS table.
To implement the user exit for this we need to follow the below steps.
Step1: Find the user exit.
Step2: Verify the user exit.
Step1: Implement the user exit.
Click on Find icon, select main program, find 'userexit' and press enter.
You will find number of performs.
click on Save (Ctrl S), debugger will open..now this is the suitable exit.
- Customer exits are not available for all programs and screens found in the SAP System. You can
only use customer exits if they already exist in the SAP System.
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. For this we need to implement FM Exits/Menu Exits to
write the logic for Screen Exits . All screen exits will be subscreens.
3. Menu exits:
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 "+". Format: +CUS (additional item in GUI status)
VA01, is a t-code used for creating sales order, to find customer exit for VA01, go to t-code VA01,
system, status.
A pop up will open, you can find the program name, copy the program name and go to SE38, display
( simply double click to go to program source ).
You will find the list of Function Modules with the word CALL CUSTOMER.
Double click on function module CALL CUSTOMER-FUNCTION '911', you can see a include
'INCLUDE ZXOIKU46', that`s where you can implement your own functionality.
To implement the Customer exit for this we need to follow the below steps.
Step1: Find the function exit.
Step2: Verify the customer exit.
Step1: Create project for customer exit.
Step4: Implement the Customer exit.
Double click on Program name SAPMF02D.Click on Find icon, main program, find CALL
CUSTOMER, enter.
A list of call customer functions will be displayed.
Based on requirement, Check Import/Export Parameters for each Function Module And roughly
select some Customer Function Modules .
As per this requirement, we need KNA1 Table details, So we can use the below Customer Function
Module which has an exporting parameter I_KNA1.
Stop the Debugging and now implement the Functional Module Exit. As this exit is triggered, this is
the suitable Functional Module Exit for our requirement.
Not down the Function Module name, go to SE11, provide table name MODSAP, display, contents
and provide enhancement/member as EXIT_SAPMF02D_001, execute.
You will find the enhancement name for the function exit.
Now go to CMOD and to project ZXD01_EX and click on enhancement assignments and add
enhancement as SAPMF02D, enter and click on components.
You will find Function module name, double click on function exit.
You will find an include inside the function module, double click to create and add your own code.
And add below code.
User exit is implemented in the form of a A customer exit can be implemented as:
Subroutine i.e. PERFORM xxx.Â
PERFORM Function exit
userexit_save_document_prepare. Screen Exit
Menu Exit
Field Exit
In case of a PERFORM, you have You have access only to the importing, exporting, changing
access to almost all the data. So you and tables parameter of the Function Module.
have better control, but more risk of So you have limited access to data.
making the system unstable.
You need Access Key for User Exit. You do not need access key.
Changes are lost in case of an upgrade. Customer exits came later and they overcome the
shortcomings of User Exit.
User Exit will be activated automatically To activate a function exit, you need to create a project in CMOD
when ever you activate the and activate the project.
application(program).