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

Multiple User Exits at Same point of the Same ABAP Program

Former Member
0 Likes
1,658

Dear ABAPers,

I, a Basis person, want to know if it's possible to have multiple User Exits at the same point of the same SAP ABAP program; and further if access to those exits can be controlled through authorization for different user groups, i.e. different user groups may access different user exits.

Your professional help is greatly appreciated.

Best regards,

Joshua Zhang

Dear ABAPers,

I, a Basis person, want to know if it's possible to have multiple User Exits at the same point of the same SAP ABAP program; and further if access to those exits can be controlled through authorization for different user groups, i.e. different user groups may access different user exits.

Your professional help is greatly appreciated.

Best regards,

Joshua Zhang

7 REPLIES 7
Read only

naimesh_patel
Active Contributor
0 Likes
1,284

If you have a BADI with multiple implementation and filters (as your authorization group), the answer is Yes. You can create as many implementation as per the Authorization Group as the filter.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,284

Yes , it's possible to have multiple User Exits at the same point of the same SAP ABAP program; and further if access to those exits can be controlled through authorization for different user groups, i.e. different user groups may access different user exits.

Read only

0 Likes
1,284

Thanks a lot for the response. I would appreciate a little bit more details if you can provide or direct me to the right resource to explore.

Read only

0 Likes
1,284

Hi!

User-exits are user-editable function modules, implemented by SAP into certain points of a program.

So it is not very logical to have more user-exits at a given point. But of course there are many user-exits with the same transaction, fr example 1 user-exit at reading the data, an another one before saving, and a third one after saving... Etcetcetc...

However, if you have 1 user exit, which will fit your needs, you can code authority-checks into it, to cover your wish.

Regards

Tamá

Read only

0 Likes
1,284

Hi,

You may follow the link on how to implement a BADI over a user exit. If you create a badi over a user exit, you can create multiple implementations.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99...

Regards

Prasenjit

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,284

Hello Jian

Fm-based user-exits (CMOD/SMOD) usually can be implemented only once. However, using a simple framework approach you can have as many implementations as you need which are triggered differently (e.g. depending on sy-mandt, authorizations, etc.).

For more details please refer to blog:

[Dangerous Liaisons in User-Exits - Revisited|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14673] [original link is broken] [original link is broken] [original link is broken];

Regards

Uwe

Read only

chaiphon
Contributor
0 Likes
1,284

For some BADIs and Enhancement Framework, yes.

For other user exits, it would requires some coding to implement security.

Chaiphon