What is the difference between a user exit and a customer exit? Which transactions do you use, and how do you implement each one?
Say your answer out loud first.
Practise another way
A user exit is an empty FORM routine, such as USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ, that sits inside an SAP include. So I edit an SAP object, and it counts as a modification.
A customer exit is a function module exit SAP defines in SMOD and calls with CALL CUSTOMER-FUNCTION; I implement it in a CMOD project, write my code in the Z include and activate the project.
Customer exits can also be screen and menu exits. Both are legacy; new hooks are BAdIs.
User exit (form exit)
- Empty subroutines that SAP ships inside its own includes, mostly in Sales and Distribution. Sales order processing has includes such as MV45AFZZ with routines like
USEREXIT_MOVE_FIELD_TO_VBAK,USEREXIT_MOVE_FIELD_TO_VBAPandUSEREXIT_SAVE_DOCUMENT_PREPARE; availability check has its own inFV45VFZZandRV03VFZZ. - You write code directly into that SAP include. Technically that is a change to an SAP object, so the system records it as a modification. SAP's 2025 clean core ATC guidance even adds a parameter Only Business Modifications so that these technical modifications of certain SD user exits are filtered out.
- No activation step: the code runs as soon as the include is active.
Customer exit (SMOD/CMOD)
- SAP defines an enhancement (8 characters, for example
V45A0002) in SMOD. It contains components: function module exits, screen exits (subscreen areas) and menu exits. - SAP's program calls a function exit with
CALL CUSTOMER-FUNCTION '002', which callsEXIT_SAPMV45A_002. Its interface is fixed by SAP; the body only contains anINCLUDE ZX...that you create. - In CMOD you create a project, assign the enhancement (one enhancement can belong to only one project), create the Z include, write the code, then activate the project.
* Include ZXVVAU..., inside EXIT_SAPMV45A_002 (customer namespace)
IF e_kunnr IS INITIAL.
e_kunnr = zcl_so_defaults=>sold_to_for_user( sy-uname ).
ENDIF.
- If the exit is not active, the keyword documentation says the
CALL CUSTOMER-FUNCTIONstatement is ignored completely andsy-subrckeeps its old value. So SAP code that checkssy-subrcmust set it first.
How they differ
| User exit | Customer exit | |
|---|---|---|
| Form | FORM in SAP include | function module, screen, menu |
| Tools | SE38/SE80, SPRO doc | SMOD, CMOD |
| Activation | none | CMOD project |
| Object owner | SAP include (modification) | your Z include |
Today. The keyword documentation marks CALL CUSTOMER-FUNCTION as obsolete and says the Enhancement Framework replaces function module exits with CALL BADI.
SAP stopped creating new customer exits after NetWeaver 7.0. In ABAP Cloud neither technique exists; in private cloud they are classic techniques you keep only where no BAdI exists.
Explains the physical difference (FORM in SAP include versus function exit in a CMOD project), names SMOD/CMOD and project activation, and knows both are legacy.
Uses the two terms as synonyms, or says a user exit is created in CMOD.
Mixing the two up because many prep sites call customer exits 'user exits'. Interviewers check the physical difference: a FORM in an SAP include versus a function module exit activated in a CMOD project.
- Why does a user exit count as a modification while a customer exit does not?
- What happens if the CMOD project is not active in production?
- Which three kinds of customer exit components are there?
- What would you use instead in a new S/4HANA extension?
1 candidate write-up, 2 official pages, 4 prep guides and 2 technical references. Confidence: high. Checked 1 Dec 2026.
- Candidate write-up Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Technical reference Backs the answer.
- Technical reference Backs the answer.
- Official page Backs the answer.