on 07-24-2007 1:48 PM
hi gurs,
can any one send me SD user exits.
thz
SPRO --> IMG --> Sales and Distribution --> System Modifications --> User Exits --> User Exits in Sales (select the documentation node & you will get an ocean of information.)
Regards,
Rajesh Banka
reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishant,
Example of working with User Exit.
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 create a salesorder. Note that Sold-to-party now automatically is "2155"
Regards,
Sarosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
just to add, go to SE38 and give MV45AFZZ and click display. It gives the possible user exits for the sales order.
Thanks
Sadhu Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ak
please send me to tedlapally.nishanth@lntinfotech.com
thz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nishanth,
USER EXITS IN SD
Goto transaction se80 and select your development class as "VMOD".
After that in the include tab you will be able to see all SD user exits.
-
USEREXIT_DELETE_DOCUMENT
USEREXIT_FIELD_MODIFICATION
USEREXIT_MOVE_FIELD_TO_VBAP
USEREXIT_MOVE_FIELD_TO_VBAK
US USEREXIT_NUMBER_RANGE
USEREXIT_SAVE_DOCUMENT
USEREXIT_SAVE_DOCUMENT_PREPARE
USEREXIT_CHECK_XVBAP_FOR_DELET
USEREXIT_CHECK_VBAK
USEREXIT_FILL_VBAP_FROM_HVBAP
-
Hope this will help you out !
Regards,
Syed Nasir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi gurs
can any one send me SD user exits please
thz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to transaction SE81.
Click on SD .
Click "edit" on the menu bar .
Choose select subtree.
Click on "information system" .
Open Environment node, customer exits, and enhancements.
Press F8 to get all the user exits for that module.
In brief: SE81->SD->Select subtree->Information System->Envir->Exit Techniques->Customers exits->enhancements->Execute(F8)
USEREXIT_DELETE_DOCUMENT
USEREXIT_FIELD_MODIFICATION
USEREXIT_MOVE_FIELD_TO_VBAP
USEREXIT_MOVE_FIELD_TO_VBAK
US USEREXIT_NUMBER_RANGE
USEREXIT_SAVE_DOCUMENT
USEREXIT_SAVE_DOCUMENT_PREPARE
USEREXIT_CHECK_XVBAP_FOR_DELET
USEREXIT_CHECK_VBAK
USEREXIT_FILL_VBAP_FROM_HVBAP
Regards
AK
Reward points if helpful
Hi,
Here is the general procedure
If you goto the SAP Application hierachy (SE81)you can go down into individual modules.
Select the area you are interested. (It should turn yellow).
Choose Information System button.
Select Environment>Exit Techniques>Customer Exits>Enhancements.
You should now belooking at a selection screen with the DEV classes filled in from the Application
hierachy.
If you hit Execute you will get the exits for the selected part of the hierachy!
Have a play around with SE81 / Info system it can be very usefull in finding all sorts of interesting
Thanks,
Pankaj
Hi,
Another way is as follows
Locating User Exits
Before you can add functionality to a SAP system, you need to be able to locate the appropriate user exits. SAP has provided around 2000 user exits.
In this document, we will cover a couple of methods to accomplish this task:
Searching from transaction CMOD
Searching from the Application Hierarchy
Making your own customized search
Keep in mind that you must first search for an enhancement. Once you find an enhancement, you can display its components -- the actual user exits. Then you need to include the enhancement containing the required user exit as a component in your own project.
Method #1: Using Transaction CMOD
- Transaction CMOD contains search functionality to help locate enhancements.
- Selecting the "Utilities -> SAP enhancements" menu path in transaction CMOD will take you to an enhancement selection screen (see graphic above).
- You can limit the search for enhancements based on:
Enhancement name
Development class
- After clicking on the Execute pushbutton (or F8) on the selection screen, the system will display a listing of the development classes that contain enhancements (see graphic above).
- From this listing, you can double-click a development class to display its enhancements.
- If you have clicked on the Display components pushbutton on the selection screen (see graphic on previous page), the components of each enhancement will automatically be displayed.
Remark: To use this search method one must either know the part of the enhancement name or the development class. But if one looks at SAPs naming convention for user exits (see note below), the screen numbers/program names/ function codes/etc are contained in the components name and there is no scope for that in selection options.
Also one cannot restrict the search to only one type of exit.
Method #2: Using SAP Application Hierarchy
- Selecting the "Overview -> Applic. hierarchy -> SAP" menu path in the ABAP/4 Development Workbench will take you to a listing of all standard SAP applications and components (see graphic above).
- To locate a user exit for a particular application, follow these steps from the SAP Application Hierarchy:
- Select the appropriate application by single clicking on it.
- Choose the "Edit Sel./desel. subtree" menu path.
- Click on the Repository Infosys. pushbutton.
- This will take you to the ABAP/4 Repository Information System.
- Double click on the Environment branch.
- Double click on the Customer enhancement branch.
- Double-click on the Customer exit branch.
- This will take you to the customer exit (or enhancement) selection screen with the appropriate development class for the application selecting on the Application Hierarchy.
- Click on the Execute pushbutton.
- This will take you to a listing of all enhancements that meet the selection criteria.
From this listing, you can display the components of each enhancement and the documentation. You will be taken automatically to transaction SMOD from the ABAP/4 Repository Information System.
Remark: To use this one must have knowledge about the application hierarchy to which that particular enhancement belongs. Also one has to explode individual enhancements to identify weather the component is contained in that enhancement.
Like previous method, there is no scope for selection option on the components name.
Method #3: Writing a small report program
The details about projects, enhancements and components are contained in two SAP tables:
MODSAP: containing enhancement name, type of exit and component
MODACT: containing project name and enhancements
Thus by writing a report program to retrieve data from these two tables, you can customize your search requirements.
Code for one such sample program is attached in annexure A and the corresponding transaction code to execute this program is YSMD .
Using this you can list all components that match a particular string like the program name or the function code as well as search for only one type of exit.
NOTE: SAPs naming convention for user exits-
Program/Function exits : EXIT_AAAAAAAA_nnn where
AAAAAAAA stands for the program name which contains the exit and
nnn is a SAP assigned number starting from 001
Menu exits : AAAAAAAA+XXX where
AAAAAAAA stands for the program name which contains the exit and
+XXX is the name of the function code contained in the menu item
Screen Exits : AAAAAAAA_nnnn_BBBBBBBB_CCCCCCCC_mmmm where
AAAAAAAA : calling program name
nnnn : calling screen number
BBBBBBBB : area
CCCCCCCC : called program name
mmmm : called screen number
Please reward points if it helps.
Thanks,
Pankaj
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.