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

Authority Check for programs in batch mode.

Former Member
0 Likes
544

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

1 REPLY 1
Read only

Former Member
0 Likes
385

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.