2007 Mar 08 8:50 AM
hello guys,
am new to abap programming.i got a requirement to work with user exits.cud anyone pls
let me know how user exits can b achieved with suitable realtime examples at the earliest.Detailed explanation with relevant realtime examples will be rewarded higer points
2007 Mar 08 8:54 AM
Hi,
Check this link
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://sap.niraj.tripod.com/id62.html
Cheers
VJ
2007 Mar 08 8:56 AM
Hi ,
<a href="http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc">This</a> will solve u r Problem ,
Dont forget to assign Points
2007 Mar 08 9:04 AM
Although experience helps a lot in zeroing on the right user exit. But still you can find very many user exits in the applications of your interest by using these methods.
method 1
Goto SE81, click on information system button, select enhancements -> customer exits. Give the package/dev. class in the selection for your application and you can see all the user exits.
You can also find lot of useful stuff in SE81
method 2
Using transaction SMOD, find the appropriate enhancement and see all the user exits for it
method 3
Many transaction main programs will have INCLUDES in them with descriptions of user exits, for example you can find user exits for VA01 in SAPMV45A main program
method 4
Aksing someone who had already been there and done that )
2007 Mar 08 9:07 AM
Hi,
Point in R/3 at which a customer's own program can be called. In contrast to customer exits, user exits allow developers to access program components and data objects in the standard system. Upon upgrading, each user exit must be checked to ensure that it conforms to the standard system. There are User exits that use includes. These are customer enhancements that are called from the program. Secondly, there are User exits that use tables. These are used and managed directly via Customizing.
check this link.
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.planetsap.com/Userexit_List.htm
http://www.allsaplinks.com/user_exit.html
Regards,
Sruthi
2007 Mar 08 9:09 AM
Hi,
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"
Regatds,
Sreevani