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

User Exit Examples

Former Member
0 Likes
1,733

Hi,

I am trying to look for User Exit examples in my trail Netweaver ABAP 7.01.

can anyone help to see some sample codes and how user exits are called ?

Thanks

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,688

Please check for documents in SCN or Google.

Read only

0 Likes
1,688

I already did, I dont post a question before searching on the forum and on google.

I get some examples online, but I didnt find these examples on my system (Netweaver ABAP Trial), thats why

I am asking here .. I read that user exits are defined as subroutines ..

and I am assuming they will be called from external programs ..

so are they called in this way ? just like calling any external subroutines

perform user-exitName in program userexitProgram .

..I want to see examples on my system.

Read only

0 Likes
1,688

I still didn't understand exactly what you are asking for

for example you can check include program MV50AFZ1

Read only

0 Likes
1,688

thanks for getting back to me,

as I told you , one of my problems is that I have only SAP Netweaver Trial so I dont have the include

your provided (MV50AFZ1) .. I will do more google searches .

Read only

0 Likes
1,688

Go to tx SMOD. Search. Go to tx SE18. Search.

There are BC user exits - you just use the SAP system to search for them! Once you've found them, then search for examples. Please do NOT ask for examples or samples here.

matt

Read only

0 Likes
1,688

Thanks Matt for the help and suggestion,

if you dont mind me asking, is it part of the forum rules not to ask for examples, or you just personally think it is not appropriate to ask what asked ? I understand that it is not appropriate to ask without doing my own search

and you might find my question too easy to ask here..anyhow.

based on what I read before I post this question, there are user exits and customer exits and both are different.

a user exits is defined as a Form (subroutine) and called using PERFORM.

and customer exit is defined as functions module and called using CALL CUSTOMER-FUNCTION

http://www.allinterview.com/showanswers/23629.html

but when I I did a search on the forum ( call user exit) , I got something confused me ,

the first search hit was this:

this question was marked answer even though the syntax seems to be for calling a customer exit and not a user exit.

somewhere else, I found another confusing information, as they showed that use exits is defined as MODULE.

MODULE user_exit_0001 INPUT ...

http://www.sap-img.com/abap/what-is-user-exits.htm

in this link, customer exit is considered a different generation of user exit and maybe this is why it is confusing to distinguish them .

http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1240915_mem1,00.html

I simply thought it will be good if someone can clear this confusing for me by providing me an example.

I am extracting all the source code of the system as html files , and I need to build hyperlinks.

so if there is a call to any use exit , a hyperlink should be there to take me to where this exist is defined.

I thought of asking first about user exits and then make second post for customer exits.

Misbah

Read only

0 Likes
1,688

I found this after a quick search in the SCN blogs, should keep you busy for a while. Your trial will have only few of those, since there is no application logic present.

/people/andrea.olivieri/blog/2009/05/22/how-many-exit-routines-are-active-in-your-sap-erp-system

Thomas

Read only

0 Likes
1,688

The reason not to ask for example and samples is that there are many of these throughout the web. When people request such things, the replies tend to be either links or copy/paste from other sites (or this site, or help.sap.com), none of which add value to SCN.

I do not recognise your distinction of user exit/customer exit etc. Although loosely within SAP they refer to specific type of user exit, the terms are generic enough to be interchangeable. Simply, a user/customer exit is a place to put your own processing. And so encompasses BADIs, enhancments, forms, includes, CMOD exits, routines, substitution and validation, etc. etc.. Some of these types of user exit, I'm afraid, you won't find in the trial version.

regards

matt

Read only

0 Likes
1,688

Thanks Thomas for the link , seems very interesting tool !

unfortunately I couldn't get it to compile or run because there was a missing Table (t001q) in my system !

Thank you Matt for the help too, I will just mark this question as answered and I do more research on this topic.

Misbah