cancel
Showing results for 
Search instead for 
Did you mean: 

Userexits.

former_member326595
Participant
0 Kudos

HI Gurus,

Can any one tell me what is exact meaning of userexits?

How do we create it, is it tech team work or functional team

Can any one please give me list of userexits with description and application.

Regards

Ajoy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ajoy ..

hope this helps..

User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen 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 functionmodule exits is:

EXIT_<program name><3 digit suffix>

The call to a functionmodule exit is implemented as:

CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

Example:

The program for transaction VA01 Create salesorder is SAPMV45A

If you search for CALL CUSTOMER-FUNCTION i 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.

3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction 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 in 1 project. If the enhancement is already 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 craete a salesorder.

Note that Sold-to-party now automatically is "2155"

regards

swapnil

former_member326595
Participant
0 Kudos

HI,

Thanks...............very helpful.

R u from functional team / technical team...

Dont mind can u share u r email id for more discussions.

Regards

Ajoy

Answers (3)

Answers (3)

former_member184555
Active Contributor
0 Kudos

Hi

In SAP every activity runs according to the program assigned to it. For example, when you create an order using Tcode VA01-the system does so many activities(SD basic functions) and it is specified in the program in which order(one after another) all the activities are to be done. SAP will not allow you to make any changes in the standard program. Instead it has given a chance to add your coding in certain places of the program. At the place the program exits from the standard and enters into the user defined coding.

You can view the user exits provided in the standard...

IMG - Sales & Distribution - System modifications - User exits.

If you click on the DOCUMENTATION icon, against different areas where the exits are used, you can see them with explanation.

eg. Normally the Sales Order number is generated when you save the document. It picks the number from the number range assigned to that document type. If you wish to assign different numbers for orders based on sales organisation or any other criteria you have do it using a userexit.

The functional part in using Userexit is - finding the appropriate userexit to meet out requirement and pass on the information along with the details of the required functionality

Technical consultant will write the coding to achieve the desired functionality.

Thanks,

Ravi

Former Member
0 Kudos

Hi

A user exit instructs the system to access a program during system processing

for example

USEREXIT_PRICING_PREPARE_TKOMK (module pool SAPLV60A, program RV60AFZZ)

This user exit allows you to copy additional fields for pricing in the TKOMK communication structure (header fields), which have not been provided in the standard SAP system. These fields can also be used for pricing in the billing document.

This user exit is described in detail in the "New fields in pricing" section.

Raghu

Former Member
0 Kudos

in spro

under sales and distribution

Node -> System Modifications

U can get a list of all the types of modifications u can use in the system like, userexits, BTEs, Business Addins etc