Upload
kamallochansahu
View
215
Download
0
Embed Size (px)
Citation preview
7/30/2019 User and Customer Exit
1/6
What is Customer Exits ?
Customer exits are hooks provided by SAP within many standard programs, screens and menus on
which customers may hang custom functionality to meet business requirements. More on this in a
moment
Types of Customer ExitsThere are three main types of customer exits:
1. Function Module Exits
2. Screen Exits
3. Menu exits
Function Module Exit :It allows customer to add code via a function module at a specific location in an
SAP application program
Syntax: CALL CUSTOMER- FUNCTION 004
Menu Exit: It allows customer to add items to a pulldown menu in a standard SAP program. These itemsmay be used to call add-on programs or custom screens.
Format: +CUS ( additional item in GUI status )
Screen Exit : It allows customer to add fields to a screen in an SAP program via a subscreen. The
subscreen is called within the standard screens flow logic.
Format: CALL CUSTOMER-SUBSCREEN CUSTSCR2
Examples of Customer ExitsExample of a Screen Exit :
In transaction CAT2 Time Sheet Entry, HR wishes to include an interactive acknowledgment that
knowingly submitting incorrect data is grounds for dismissal.
7/30/2019 User and Customer Exit
2/6
Example of a Menu Exit :
In transaction SE38 ABAP Editor, the development team wishes to include a menu link to transaction
SE80 Object Navigator for ease of use.
BEFORE
AFTER
http://cdn.saptraininghub.com/wp-content/uploads/2011/01/25.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/16.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/25.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/16.png7/30/2019 User and Customer Exit
3/6
Example of a Function Module Exit :
The company wants the bank details of the Vendors in the Vendor creation to be mandatory event .So it
must flash a error message that Please Enter the bank details
BEFORE
AFTER
http://cdn.saptraininghub.com/wp-content/uploads/2011/01/43.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/34.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/43.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/34.png7/30/2019 User and Customer Exit
4/6
Locating Customer ExitsIn transaction SMOD and look into the details-
Or in transaction SE81 you can use the appropriate application area
http://cdn.saptraininghub.com/wp-content/uploads/2011/02/6.pnghttp://www.saptraininghub.com/wp-content/uploads/2011/01/52.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/02/6.pnghttp://www.saptraininghub.com/wp-content/uploads/2011/01/52.png7/30/2019 User and Customer Exit
5/6
Create a Customer Exit To create a customer exit you first need to create a project in transaction CMOD
Later you assign the Customer Exit to your project.
What is a USER EXIT?
http://cdn.saptraininghub.com/wp-content/uploads/2011/01/82.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/72.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/82.pnghttp://cdn.saptraininghub.com/wp-content/uploads/2011/01/72.png7/30/2019 User and Customer Exit
6/6
User Exit serve the same purpose as Customer Exits but they are available only for the SD module. The
exit is implemented as a call to a Function Module. The code is written by the developer.
Well know User Exit in SD is MV45AFZZ
USEREXIT_FIELD_MODIFICATION To modify screen attributes
USEREXIT_SAVE_DOCUMENT To perform operations when user hits SaveUSEREXIT_SAVE_DOCUMENT_PREPARE
USEREXIT_MOVE_FIELD_TO_VBAK When user header changes are moved to header work
area.
USEREXIT_MOVE_FIELD_TO_VBAP When user item changes are moved to SAP item work area
inShare
On February 2, 2011 / ABAP / Comments Off
Comments are closed.
http://www.saptraininghub.com/abap/http://www.saptraininghub.com/abap/http://www.saptraininghub.com/abap/