cancel
Showing results for 
Search instead for 
Did you mean: 

Uesr Exit

Former Member
0 Kudos

Hi Sap gurus,

how to find Userexit in CMOD? Can anyone explanation pls

Reagards,

Rao

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

well Searching User Exit in CMOD would be tough , rather i would suggest you to go to SE80 , and give in the object type as VMOD for the Package & you can call all the includes realted to sales .. similarly you type other object related to other modules and you can get the relevant includes ....

Cheers

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Rao,

Go to t.code CMOD.

Enter your project name and select the button "create" then enter short text for your project which is created.

Select "Attributes" radio button and press enter.

Select Enhancement Assignments and enter enhancement ex.V45A0002 then select components then you will corresponding exits which are exisits in that enhancement.

Reward points pls.

Regards,

Govind.

sailaja_vadlamudi
Contributor
0 Kudos

HI,

<b>CMOD</b> 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.

<b>User exits</b> (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>

<b>For Example:</b>

The program for transaction VA01 Create salesorder is SAPMV45A

<b> If you search for CALL CUSTOMER-FUNCTION program SAPMV45A you will find</b> ( 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

<b>How to find user exits</b>

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

<b> Using Project management of SAP Enhancements</b>

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"

Sail

Former Member
0 Kudos

hi

CMOD -> Utilities -> SAP Enhancements -> F8 Execute)

refer to the links below.. can also get useful info

List of all the user exits

http://www.planetsap.com/userexit_main_page.htm

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

=====

User exits for Price Determination

http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm

=====

Userxits allow us to add our own functionality to SAP standard program

without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.

Types of User exits

1. Menu Exits

2.Function exits

3.Table exits

4.Screen exits

5.Keyword exits

6.Field exits.

User exits for Pricing.

1.•USEREXIT_PRICING_PREPARE_TKOMK (module pool SAPLV60A, program RV60AFZZ

2.•USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ)

3.•USEREXIT_FIELD_MODIFICATION

4.•USEREXIT_FIELD_MODIFIC_KZWI

5.•USEREXIT_FIELD_MODIFIC_KOPF

User exits for Sales order

1•USEREXIT_DELETE_DOCUMENT

2•USEREXIT_FIELD_MODIFICATION

3.•USEREXIT_MOVE_FIELD_TO_VBAK

4.•USEREXIT_NUMBER_RANGE

5.•USEREXIT_SAVE_DOCUMENT

User exits for billing

1.•USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)

2.•USEREXIT_ACCOUNT_PREP_KOMPCV

3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)

4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB

5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)

Reward if USeful

Naren

Manoj_Mahajan78
Active Contributor
0 Kudos

RAO,

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.

Else you can refer http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

REWARD IF U FINDS THIS AS USEFUL...

Regds

MM