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 Exits..

Former Member
0 Likes
334

Hi SDN,

What are the standard ways to write & implement user exit.

What code one should avoid in user exit?

Can we write Data base commit, Error messages table update etc. in user exit?

Regards,

Rahul

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
314

Hi

yes you can write messages inside user exits..but lagre commitns and updates are avoidable.

exits are for generally samll validations.

just check this

you will get every thing

http://www.csee.umbc.edu/help/oracle8/server.815/a42525/ch11.htm#toc126

reward if helpful

vivekanand

2 REPLIES 2
Read only

Former Member
0 Likes
315

Hi

yes you can write messages inside user exits..but lagre commitns and updates are avoidable.

exits are for generally samll validations.

just check this

you will get every thing

http://www.csee.umbc.edu/help/oracle8/server.815/a42525/ch11.htm#toc126

reward if helpful

vivekanand

Read only

Former Member
0 Likes
314

Hi Rahul,

There is no standard way to write User Exits, coz if there was a standard way SAP would have done that themselves and it would not have been called User Exits.

User Exits are meant to provide you with additional functionality, which SAP doesn't provide. So User Exits are most commonly used for:

- Enhancement to the existing functionality.

- Populating Custom tables

- Adding Field Values to Screen Exits

- Sometimes for extra checks and validation that you need.

Bottom Line : It allows you the flexibility to customize the standard functionality to meet your specific business needs.

You should avoid following codes in the user exits :

-Changes to the Internal Tables ,structures and variables being used by the

standard program. If need be you can create a copy of the variables you need

and do your processing.

- Database commits should be avoided(You can write it but its not advised)

- Error Messages can be done, but be careful as to where you place it.

- As long as it is Custom tables you can update them through User Exits, but

not standard tables(you are not supposed to do that anywhere except SM30

or BDC).

Reward if helpful.

Best Regards,

Imran