The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications.
User Exits is slot provided by SAP in SAP standard program.
User exits (Function module exits) are exits developed by SAP.
Code for the function module is written by ABAP Developer .
Developer does not write code directly in functional module , but in the INCLUDE that is implemented in the functional module.
4. User Exit
The R/3 enhancement concept allows you to add your own functionality to
SAP’s standard business applications without having to modify the original
applications. SAP creates customer exits for specific programs, screens, and
menus within standard R/3 applications.
User Exits is slot provided by SAP in SAP standard program.
User exits (Function module exits) are exits developed by SAP.
Code for the function module is written by ABAP Developer .
Developer does not write code directly in functional module , but in the
INCLUDE that is implemented in the functional module.
5. Business Scenario – Need to add field in
Menu
Need one field name in “Utilities” named “Object Navigator”
7. Type of User Exit
Function Exit
Menu Exit
Field Exit
Screen Exit
8. Function Exit
Function module exits add functions to R/3 applications. Function module
exits play a role in both menu and screen exits.
When you add a new menu item to a standard pull down menu, you use a
function module exit to define the actions that should take place once your
menu is activated.
9. Function Exit Example
When user is creating Vendor and saving it, system should display a popup saying
that “This Vendor belong to (Country Name)”
11. Menu Exit
Menu exits add items to the pulldown menus in standard SAP applications. You
can use these menu items to call up your own screens or to trigger entire add-
on applications.
SAP creates menu exits by defining special menu items in the Menu Painter.
These special entries have function codes that begin with "+" (a plus sign). You
specify the menu item’s text when activating the item in an add-on project.
12. Menu Exit Example
Need one field name in Utilities named “Object Navigator”
14. Field Exit
Field exits allow you to create your own programming logic for any data
element in the Dictionary. You can use this logic to carry out checks,
conversions, or business-related processing for any screen field.
17. Screen Exit
Screen exits add fields to screens in R/3 applications. SAP creates screen exits
by placing special subscreen areas on a standard R/3 screen and calling a
customer subscreen from the standard screen’s flow logic.
18. Screen Exit Example
Need a additional Tab in Purchase Order item named as “Customer Data” came
with some required information like Id, Age and Name
20. How to find User Exit
Method 1:
1. Execute the transaction for which you need to build user exit
2. Copy PACKAGE name.
3. Go To the transaction SMOD and find User Exit with the help of package name
Method 2:
1. Go To transaction SE93 -> Enter the T. Code for which you want to search User
Exit.
2. Copy PACKAGE name
3. Go To the transaction SMOD and find User Exit with the help of package name.
There are some other methods also to search USER EXIT in SAP
28. Step by Step User Exit Implementation
1. Enter the transaction
VA01
29. Step by Step User Exit Implementation
2. Go to menu System and
select sub item status.
We will get the name of the
program as (SAPMV45A).
30. Step by Step User Exit Implementation
3. Go To SE38 Editor and
type the program name as
SAPM45A.
And select subobjects –
attributes radio button and
press Display.
Note the package name. In
this case, it is VA
31. Step by Step User Exit Implementation
4. Go To - SMOD Transaction (SMOD is used to find the enhancements and user exits.)
Here if we enter the enhancement name it results the list of user exit names.
But we don’t known the Enhancement name so press the Utilities > Find menu option.
Excecute
32. Step by Step User Exit Implementation
5. Select correct User Exit
33. Step by Step User Exit Implementation
6. Functional Module
34. Step by Step User Exit Implementation 7. We go to CMOD
Click on Save and then on
“Enhancement
assignments)
35. Step by Step User Exit Implementation 8. Now enter your
enhancement name, click
on Save and then on
“Components”
36. Step by Step User Exit Implementation 9. Now double click on the
required function exit
37. Step by Step User Exit Implementation 10. Now double click on
INCLUDE and write the code
for USER EXIT