2018 Dec 18 6:53 AM
Hi! I'm new to ABAP.
Currently, I'm working on making an ABAP program that shows visual text or whatever when
an user could access to some designated transaction codes.
The concept is like this:
1. I authorize an user
2. The program access to the transaction with that user ID
3-1. If it works normally(can get to transaction), write something(1,success,etc..)
3-2. If it doesn't work(user denied because of limited authoritzation), write something different
4. Roop 1-3
It'd be very helpful if some of you give me algorithm or more specific idea to make this program.
I've heard of other way using BAPI, but have no idea how could use that properly in this case.
The concept is just an apprentice's thought, so if you have better idea to achieve it, any ideas welcome.
2018 Dec 18 4:16 PM
HI Jiwon Hong,
This thread may help you https://archive.sap.com/discussions/thread/152865
HI Jiwon Hong,
This thread may help you https://archive.sap.com/discussions/thread/152865
2018 Dec 18 10:21 AM
2018 Dec 18 4:16 PM
HI Jiwon Hong,
This thread may help you https://archive.sap.com/discussions/thread/152865
2018 Dec 19 4:16 AM
It's not exactly what you asked for, but I happen to have a class which returns the username - Tcode access information (like: Who accessed which Tcode, and when). Might be useful; here you go: https://github.com/keremkoseoglu/ABAP-Library/blob/master/zcl_bc_user_tcode_access.abap
2018 Dec 19 6:45 AM
Hi jiwon
It's a bit pointless in my opinion to show message, as when user have access, they would see the screen already. but if you want to inform user, at INITIALIZATION event, just add MESSAGE 'Hurrah I managed to access' TYPE I.
Access denied message are standard, maybe there is a way to change the message, but again, I don't see the point.
Best Regards
Andre Julius
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |