CMOD is the Project Management of SAP Enhancements (i.e., SMOD Enhancements). SMOD contains the actual enhancements and CMOD is the grouping of those SMOD enhancements.
User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for function module exits is:
EXIT_<3>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3>
For Example:
The program for transaction VA01 Create salesorder is SAPMV45A
1. If you search for CALL CUSTOMER-FUNCTION program SAPMV45A you will find ( Among other user exits):
CALL CUSTOMER-FUNCTION '003'
exporting
xvbak = vbak
xvbuk = vbuk
xkomk = tkomk
importing
lvf_subrc = lvf_subrc
tables
xvbfa = xvbfa
xvbap = xvbap
xvbup = xvbup.
The exit calls function module EXIT_SAPMV45A_003
2. How to find user exits
Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
If you know the Exit name, go to transaction CMOD. Choose menu Utillities->SAP Enhancements.
Enter the exit name and press enter.
You will now come to a screen that shows the function module exits for the exit.
or use this ABAP program to search for user exits :-
Finding the user-exits of a SAP transaction Code
3. Using Project management of SAP Enhancements
You want to create a project to enhance transaction VA01
- Go to transaction CMOD
- Create a project called ZVA01
- Choose the Enhancement assign radio button and press the Change button
In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used for 1 project. If the enhancement is allready in use, and error message will be displayed
- Press Save
- Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002.
- Double Click on the exit.
Now the function module is displayed. Double click on include ZXVVAU04 in the function module
Insert the following code into the include: E_KUNNR = '2155'.
Activate the include program. Go back to CMOD and activate the project.
Goto transaction VA01 and create a salesorder. Note that Sold-to-party now automatically is "2155"
What is the difference between SMOD and CMOD In SAP ABAP
Topics
-
▼
2008
(35)
-
▼
September
(35)
- SAP ABAP What date format should be used in batch ...
- Easy Way To Remember Table In SAP ABAP
- Difference between extract and collect statements ...
- Trace when a variant of a report was created In SA...
- What is use of using HASHED TABLE In SAP ABAP
- How to get the field descriptions of a table In SA...
- Difference between Work Area and Header Line In SA...
- Working on Polymorphism In SAP ABAP
- Working on Polymorphism1 In SAP ABAP
- How to delete an editor lock In SAP ABAP
- What is the difference between SMOD and CMOD In SA...
- ABAP Self Test Q & A In SAP
- SAP ABAP Interview Questions And Answers
- SAP ABAP Interview Questions And Answers1
- SAP ABAP Real Time Interview Questions And Answers
- Interview Questions And Answers for SAP ABAP
- SAP ABAP Interview Questions And Answers(FAQ's)
- ABAP FAQ in SAP
- ABAP Frequently Asked Question in SAP
- ABAP FAQ in SAP Important
- ABAP Frequently Asked Question FAQ in SAP
- Sample Test Questions on ABAP Programming in SAP
- Real Time questions in SAP ABAP
- QUESTION Database in SAP ABAP
- ABAP Objective Questions in SAP
- Learning ABAP or SAP Application
- Interview Question on BAPI, RFC, ABAP Objects, Tab...
- ABAP Interview Questions in SAP
- Faq Miscellaneous in SAP ABAP
- SAP ABAP FAQ (Technical)
- Important ABAP FAQ's in SAP
- ABAP Certification Sample Questions for Abapers in...
- The Other 50 ABAP Interview Faq's in SAP
- ITs about FAQS in SAP ABAP
- Real Time questions in SAP ABAP
-
▼
September
(35)