Documente Academic
Documente Profesional
Documente Cultură
Function-Exits
Menu-Exits
Screen-Exits
function *----------------------------------*
exit_sapmf02k_001.
* include zxf05u01. *
*----------------------------------*
include zxf05u01.
This INCLUDE program is
where you will write the
customer-specific code.
endfunction.
call customer-function
“001”...
1. Locate Function-Exit(s)
2. Go to Function Module
3. Create INCLUDE Program
4. Code in INCLUDE Program
5. Activate Function-Exit
In program “SAPMF02K”,
there is only one function-exit
at line 83 of “MF02KFEX”.
*------------------------------
1 Write your code in
* INCLUDE ZXF05U01 this INCLUDE
2 program.
*------------------------------
if sy-uname = ‟ DANTHON‟.
endif.
6
PROJECT 1 PROJECT 2
(can be activated/deactivated) (can be activated/deactivated)
Enhancement Enhancement
2
X Enhancement
3
1
X Function
Exit
Function Screen Function
Exit Exit Exit
CMOD
SMOD
Function-Exits
Menu-Exits
Screen-Exits
1. Locate Function-Exit(s)
2. Go to Function Module
3. Create INCLUDE Program
4. Code in INCLUDE Program
5. Activate Function-Exit
• To accommodate user requirements not available / too specific to be included in the SAP
standard Program
– Release upgrades do not affect enhancement calls from within the standard software
nor do they affect the validity of call interfaces
• In User Exits, an application programmer predefines exit points in a source that allow specific
industry sectors, partners, and customers to attach additional software to standard SAP
• The users of Business Add-Ins can customize the logic they need or use a standard logic if
one is available. They can be inserted into the SAP System to accommodate user
– Two parts - Definition and its Implementation - definition can either be SAP provided or
user may also create it
– allows multiple levels of software development (by SAP, partners, and customers, and
as country versions, industry solutions, and the like)
• Look for BAdi in IMG and in component hierarchy (using transaction SE18)
• Create own implementation of the add-in (complete coding for Methods) and activate
– Define an interface for the enhancement in the SAP menu under Tools-> ABAP
Workbench -> Utilities -> Business Add-Ins -> Definition (transaction SE18)
– Customers can then select the add-in and implement it according to their needs
• ABAP Workbench ->Utilities -> Business Add-Ins -> Implementation (transaction SE19)
• Find the suitable Business Add-Ins present in system (Use IMG or Component hierarchy)
• Implementations are discrete transport objects and lie within the namespace of the person
or organization implementing them
Before implementing filter objects to a BADI. We need to deactivate all the implementation for
that BADI..
32 © 2010 StraVis IT Solutions Pvt Ltd.
Contd..
Click on the F4 on the FILTER TYPE field name and enter some search criteria to find a
relevant data element.
• Now to ensure that the interface parameters have been adjusted by the system click on the
interface tab and then double click on any method to see the list of parameters.
• The system will display all the implementation if it has more than one implementation.
• You will notice that now the implementation is capable of adding filters for the user names. You
can click on the INSERT ROW button to add any new filters.
• And as you can see from the screen shot below the new parameter list is automatically available in
the implementation part.
• Now lets use this filter type and make changes to the program.
• Return to the initial screen of the implementation and define a filter value by clicking on the
INSERT ROW button under the filter section. The filter value acts like a condition. Only if, during
the runtime the filter value matches the method will get executed. Once done click on save and
activate the implementation.