2008 Aug 08 2:59 PM
Hello freinds,
I have inserted authority object in z program, how can I test the program whether the user is authorized to carry out the transaction or not???
Hello freinds,
I have inserted authority object in z program, how can I test the program whether the user is authorized to carry out the transaction or not???
2008 Aug 08 3:03 PM
Hi
U need to check the SY-SUBRC:
If it's 0 it means the user has the authorition else he hasn't it.
Max
2008 Aug 08 3:03 PM
Hi Amar,
Please place a brreak-point at the statement "AUTHORITY-CHECK" and execute the program.
If you have authrization then sy-subrc will be set to zero else some different value.
Regards,
Babul.
2008 Aug 08 3:05 PM
In addition, if you want to test this authorization with a different user ID than your own logon ID, you can start function module AUTHORITY_CHECK in SE37.
Thomas
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |