2009 Dec 04 5:20 PM
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
2009 Dec 04 5:22 PM
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
2009 Dec 04 5:50 PM
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.
2009 Dec 04 6:02 PM
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.
2009 Dec 04 7:12 PM
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á
2009 Dec 04 8:05 PM
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.
Regards
Prasenjit
2009 Dec 04 9:26 PM
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
2009 Dec 04 10:01 PM
For some BADIs and Enhancement Framework, yes.
For other user exits, it would requires some coding to implement security.
Chaiphon
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |