2007 Mar 08 8:11 AM
hi,
1)what is the use of cmod? i read from post but still do not know why need to have cmod in addition to smod.
2)why in cmod, enhancement assignment radio button, will list out the smod enhancement? cmod use for regroup sap enhancement?
thanks
2007 Mar 08 8:14 AM
Hi,
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_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION ❤️ digit suffix>
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"
Thanks,
Shankar
2007 Mar 08 8:17 AM
Hi,
CMOD is for the the creation of the roject related to the requirement of enhance ment
SMOD is the thing where the actual enhancements is available which are provided by the SAP.
hope you will understand.
2007 Mar 08 8:48 AM
hi,
can i say cmod is to group all the relevant enhancement together for easy reference? if yes, what is the criteria to group the enhancement.
thanks
2007 Mar 08 8:51 AM
Hi,
SMOD is just to see all the enhancements in the sap system.
CMOD is the customer projects where enhancements are implemented. If you want to implement any enhancements then you will create a project and assign the enhancement and do the coding in exits.
To customize an existing SAP application we have been provided the user exits by SAP. These exits are packaged under enhancements. You choose an enhancement according to your requirements e.g. enhancement MM06E005 is used for adding custom field in me21/me21n. SAP has limited no of enhancements for any transactions, you have to choose only from them to cater your requiement you cant create them.
After selecting your enhancements you have to inherit them in your project in CMOD. Thereafter you do coding and other things like making your subscreens or adding fields to standard tables in respective exits.
To see the effect of your whole project you must activate each componnents of your enhancements.
Hope it helps,
Cheers
VJ
2007 Mar 08 8:53 AM
hi,
you can say that is a group you are creating in cmod by the way we are making the project/implimentation( with respect to the term of BADI). general scenario is we are giving the name like Z<tcode> i.e ZMM01 like that so you can group the cmod for single tcode or you can do it for single package. you can assign many enhancements in a single project.
regards
shiba dutta
2007 Mar 08 8:57 AM
Hi,
go through the below links..
http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
http://www.easymarketplace.de/userexit.php
Regards,
nagaraj