Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Diifernce between SMOD and CMOD

Former Member
0 Kudos

Hi all.

Diifernce between SMOD and CMOD?

To be reward all helpfull answers.

Regards,

jay

1 ACCEPTED SOLUTION
6 REPLIES 6

Former Member
0 Kudos

Click on 'Search forum'

Enter 'Difference between CMOD and SMOD'

Read.

This one was the first on the list;

Former Member
0 Kudos

Hi jay,

Transaction CMOD n SMOD are 2 parts of the enhancement. Using SMOD you can search for enhancement and there component. Components includes Function Exit, Function Codes, Program,Calling Screen...so basically all exits.

Using SMOD, if you know the enhancement you can check the available User Exits. For eg. you can find out user exits and corresponding zincludes.

If you know the Exit Name for Eg. Function module exit name you can search the correponding Enhacement name here..which is important for activating exits.

CMOD allows you to create Project for your enhacement. In order to activate every exit code you need to create a project for same and activate it...Eventhough if you write a code and do not create a project for same your exit code will not reflect.

It is mandatory to create and project for exit and activate it.

Hope this will give you good idea about CMOD and SMOD.

Thanks,

Reward If Helpful.

Former Member
0 Kudos

Hi jay,

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"

Reward Points if you find helpful,

Thanks,

Puneet Mehta

Former Member
0 Kudos

hi

Two methods of Enhancements are.

SMOD- Sap Enhancement Management.

CMOD-Project Enhancement

SMOD- Find the package name (Ctrl+F).

CMOD-Find the Dataelement with Documentation is used for Database.

Thanks,

S.Suresh

Former Member
0 Kudos

Simply, use cmod to active the function module in SMOD.

So you can step into the code which is writed in the EXIT function module.

Message was edited by:

Chris Xu