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.
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)
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 ).
A pop up will open, search for the word CALL CUSTOMER in main program.
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 .
Click on Find icon, select main program, find 'userexit' and press enter.
click on Save (Ctrl S), debugger will open..now this is the suitable exit.
Implement userexit
To implement userexit we need access key from SAP, when we get access key from SAP, write
below code inside from.
If lips-lgort
Technical requirements:
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.
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.
To implement we need to provide enhancement name but we don`t have enhancement name,
we just have customer exit name, now we need to find enhancement name.
Follow the below steps to find enhancement for a customer exit.
All the enhancements for customer exits will be stored in MODSAP table, we can get
enhancement name by using our customer exit.
Get Function module name from customer exit, double click on CALL CUSTOMER FUNCTION
'001'.
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 a include inside the function module, double click to create and add your own code.
Customer Exit
Function exit
Screen Exit
Menu Exit
Field Exit