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: 

USER EXIT

Former Member
0 Kudos

Hi All,

This is very urgent and help me.

Can anybody tell me that, When I will decide that which user exit is needed ?

And my query is " I want to delete two standard fields and how I will

add two new fields as per the clients requirement on the standard screen".

Also better anybody can explain by an example with code.

definite I will give you points.

Thanks

1 ACCEPTED SOLUTION

former_member226203
Active Contributor
0 Kudos

Hi,

Goto SE93 and give the Transaction name in which you want to add the new fields and get the package name for the Transaction.

Now goto transaction SMOD and give the package name in the F4 help at the Enhancement field. So now u will get all the exit names for the Package to which your transaction belongs and from these you can choose the Exit you need. To add new fields you need to check for the Screen Exits in the same.

Rwd if helpful.

Thanks.

4 REPLIES 4

Former Member
0 Kudos

Hi,

You can add fields in standerd screen by Screen exit.

Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.

the tcode is cmod...

1.From the main screen of the Project management transaction, proceed as follows:

Select Enhancement components and choose Change.

2.Choose Edit component.

3.Choose the screen exit and double click on it

4.Create your subscreen using the Screen Painter.

5.Design your screen to be added to the standard screen and activate the particular screen and return back to the flow logic .

6.Choose the PAI and PBO to write down the logic.

7.Generate your screen and choose Back (the green arrow) to return to the Project management transaction.

8.Go to the transaction ME22 to view the customer defined screen exit.

9.Enter the purchase order number and press Enter.

10.Go to the menu header --> Details.

11.Purchase number is visible on the standard screen

You can find screen exit for particuler t.code is

1) Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘SAP Applications’. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest – for e.g., Purchasing, Asset Accounting, etc.

2) Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.

and you just go through these links also

http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction

Regards

Kiran Sure

former_member226203
Active Contributor
0 Kudos

Hi,

Goto SE93 and give the Transaction name in which you want to add the new fields and get the package name for the Transaction.

Now goto transaction SMOD and give the package name in the F4 help at the Enhancement field. So now u will get all the exit names for the Package to which your transaction belongs and from these you can choose the Exit you need. To add new fields you need to check for the Screen Exits in the same.

Rwd if helpful.

Thanks.

Former Member
0 Kudos

Hi,,

What is User Exits?

User exits are actually empty subroutines that SAP developers provide for you. You can fill them with your own source code.

The original purpose of user exits was to allow the user to avoid modification adjustment.

How User Exits are defined?

The SAP developer creates a special include in a module pool. These includes contain one or more subroutines routines that satisfy the naming convention userexit_<name>.

The calls for these subroutines have already been implemented in the R/3 program.

Usually global variables are used.

After delivering them, SAP never alters includes created in this manner; if new user exits must be delivered in a new release, they are placed in a new include program

Limitations of User Exits

Cannot be reusable.

Read and change almost any global data from host program.

User-exits can be written only using access-key.

will not be there for next version unless modification assistance tool is used

Disadvantages

Very easy to manipulate erroneously global data

Former Member
0 Kudos

Hi Sandeep,

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 implemented 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 function module exit is implemented as: CALL CUSTOMER.-FUNCTION ❤️ digit suffix>

Example:

The program for transaction VA01 Create sales order is SAPMV45A

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 Utilities->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 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 i 1 project. If the enhancement is all ready 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.

Go to transaction VA01 and create a sales order. Note that Sold-to-party now automatically is "2155".

I hope this will be helpful for you.

Reward points if useful.

Cheers,

Swamy Kunche