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: 

About User-exits

Former Member
0 Kudos

Hi ,

I would like to know why SAP has provided separate functional modules in the form of user-exits, why can not we directly modify standard code given by SAP.

Regards,

Prasad

7 REPLIES 7

Former Member
0 Kudos

Part of the reason is for upgrade:

When upgrade, standard program may be replaced by new version.

While user-exit will not be replaced.

Message was edited by: samuel han

Former Member
0 Kudos

HI Prasad,

There are two main reasons for using exits:

<b>1.</b> They do no chnge the standard code but still allow you to change the functionality to suit your needs. SAP has provided some standard exits which we can modify to add our own functionality to them.

The code and screen we thus create are <b>encapsulated as separate objects.</b>

<b>2.</b> Since they do not affect the std. code and are as per the std. <b>SAP naming conventions</b>, they do <b>affect future s/w upgrades</b>. Hence you do not have to save them and reenter add-ons attached to exits.

You can only use exits if they are planned and provided by SAP. In case you need to change the functionality in SAP code but you do not find an exit to match your requirements, you have to request SAP to provide the same.

Hope this makes the things clear to you.

Regards,

Pragya

Message was edited by: Pragya

Former Member
0 Kudos

Hi Prasad,

If we directly modify standard code according

to our requirements, then how can others use

the same standard code?

Their requirements may be different.

For this reason, we have something known as 'User Exits'.

We can add our additional functionality in the User Exit.

To know more about User Exits, look at these good links-

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sapgenie.com/abap/code/abap26.htm

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

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

http://www.easymarketplace.de/userexit.php

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sappoint.com/abap/userexit.pdfUser-Exit

Reward points if you find the answer useful.

Regards,

Tanuja.

Wil_Wilstroth
Active Participant
0 Kudos

Hi Satya,

In order to answer your question, first you must understand that SAP modules is written in such a way it is integrating with other modules. Not only that, it has at least 10 thousand of fm building up just one module.

Therefore, to modify SAP codes will be huge effort and must be very careful. These standard codes to us may seem pretty simple that it work only one module but in actual fact this code is execute cross application.

In order to cater for customer changes in SAP system, user exit are provided to facilitate the ease of modifying the standard programs. Though it is said modifying but it just merely a point to not mix custom coding and standard coding together.

User exit is there in each module but you should learn how to use which is the most appropriate to implement. some may require a further more creativity to use it. Although user exit is there to help ABAPer to make modification to standard programs but not all is suitable.

However, nowadays customization are more towards using BADI. You should also learn on using BADI in case user exit is not suitable to solve your client request.

This is just one part of my explanation and i hope it helps. Lastly, you can still modify standard SAP programs but it is not advisable due to future maintenance and upgrades. Notably, if you still want to modify it please check the OSS notes as there might be a solution explaining to you how you should proceed with the changes. But the OSS notes will be case by case basis.

Pray that you get more experience in user exit.

Regards,

William Wilstroth

William Wilstroth

former_member480923
Active Contributor
0 Kudos

Hi,

Thats standards!! Well the reason for that is that, once you open a custom program and make it a z-version or make it your own then SAP won't take the liability to handle the piece of code when it comes to support and OSS notes cases, more over when you are upgrading the code changes have to done from your end, again SAP can't help you.

Hope That Helps

Anirban

Former Member
0 Kudos

hi Prasad,

u should not modify the standard sap code provided by sap,if u want to upgrade your system based upon changing conditions and additional advantages then u will get the mismatch n u r unable to upgrade in the proper way

so sap provided these useexits to change the functionality in the standard programs without distrubing the standard code

Based upon everyone's seperate requirement, one can use these userexits

may be helpful for u

Regards,

Naveen

0 Kudos

hi,

i have this problem, can anyone suggest me, is there any user exit or anything relevant for the solution.

When we attempt to remove the Rejection flag (for any Reason) The system is changing Dates in sales order like Delivery date , Shipping date, GR date to current date this needs to be stopped and client wants to retain old set of dates when rejection flag is removed

please send me mail to my id bhrdwj_aaa@yahoo.com

waiting eagerly for this solution.

bharadwaj.