‎2006 Dec 08 10:38 AM
Hi All,
I have a requirement in which I am suppose to check if user is an authorized user to run the program.
The two possible ways would be :
1. Authority check based on tcode.
2. Authoirty check based on authorization groups.
Due to some business rules constraints the second option is not possible, now a user may run a program in background the authorization check will fail since now the tcode will be SM36 and user may be authorized to do so.
Any ideas or suggestions would be a great help.
Thanks and Regards,
Dipesh
‎2006 Dec 08 11:30 AM
Hi dipesh,
1. If it is your z program,
then inside the z program itself,
2. we can check the authorisation
for the designation/pre-defined tcode (tcode assigned to that program)
(we have to check authorisation for the pre-defined ztcode,
and not the current tcode)
3. we can do this using the FM
AUTHORITY_CHECK_TCODE
4. Then if the user runs the program,
either using tcode directly,
or sm36 (background)
or anything else,
the z program would do all checks perfectly fine.
regards,
amit m.