Application Development and Automation 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: 
Read only

Re:user-exits

Former Member
0 Likes
415

Hi all,

Can anyone give the good realtime exmpale of user-exit ,the business requirement behind that and the codind. I will give u full points.

Regards,

Sasi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

IF you take User exit

There are some exits provided by SAP to modify or enhance or add to the existing functionality .

If you take the Sales Order processing

There are some Includes To Add the custom logic and checks .

Example: MV45AFZZ(Include program).

This include we can see many routines, we will use them according to the requirement.

You can also get some documentation on the routines.

Apart from the Routines and Includes

There are some exits like Screen exits, Function exit, menu exits.

we can find them from SMOD transaction.

And to Implement them we will use CMOD transaction .

Here we create the project and add the enhancements and implement the Function exits.

Hi all,

Can anyone give the good realtime exmpale of user-exit ,the business requirement behind that and the codind. I will give u full points.

Regards,

Sasi

2 REPLIES 2
Read only

Former Member
0 Likes
394

IF you take User exit

There are some exits provided by SAP to modify or enhance or add to the existing functionality .

If you take the Sales Order processing

There are some Includes To Add the custom logic and checks .

Example: MV45AFZZ(Include program).

This include we can see many routines, we will use them according to the requirement.

You can also get some documentation on the routines.

Apart from the Routines and Includes

There are some exits like Screen exits, Function exit, menu exits.

we can find them from SMOD transaction.

And to Implement them we will use CMOD transaction .

Here we create the project and add the enhancements and implement the Function exits.

Read only

former_member125931
Active Participant
0 Likes
393

HI,

User exits:

1. Introduction

2. How to find user exits

3. Using Project management of SAP Enhancements

1. Introduction

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 i 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 craete a salesorder. Note that Sold-to-party now automatically is "2155"

All of the product names here are trademarks of their respective companies.

check below link for few more examples

www.allsaplinks.com