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

How to add authorization checks to a program / transaction code

Former Member
0 Likes
1,258

Hi All,

I need to add the following authorization checks to my program (I have created a transaction code for my program) :

S_TCODE - SU01

S_USER_GRP - ACTVT=02

CLASS = *

I have refered the previous threads on this, but I am confused. Please Help.

Thanks,

Vishal.

Edited by: Vishal Saxena on Feb 25, 2009 3:37 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
982

Hi

But which authorization object are u speaking about?

Max

8 REPLIES 8
Read only

Former Member
0 Likes
983

Hi

But which authorization object are u speaking about?

Max

Read only

0 Likes
982

The user has not given me any more details.....

The only details I have is:

Can you please create a transaction code for this program? - DONE Also can you please add the following authorization checks to the program:

S_TCODE - SU01

S_USER_GRP - ACTVT=02

CLASS = *

Read only

0 Likes
982

Hi Vishal,

The i believe you should create a Z authorization object se Tcode SU21.

with the fields : TCODE, ACTVT.

and code accordingly in your program with the new Z object.

Regards,

Prakash Pandey

Read only

0 Likes
982

Hi ,

put this in the codes:

authority-check object 'S_TCODE'

id 'TCD'

field 'SU01'.

if sy-subrc = 0.

" authorisation to modify values

endif.

Regards.

Read only

Former Member
Read only

Former Member
0 Likes
982

Hi,

You can use following Function Module.

AUTHORITY_CHECK

Pls let me know any queries regarding this.

Thanks & Regards

Syed.

Read only

Former Member
0 Likes
982

Hi,

can you please che this link it's having same requirement

it would be helpful

Thanks and regards

Durga.K

Read only

Former Member
0 Likes
982

Hi Vishal

Have a look on the thread

Edited by: sachin sharma on Feb 25, 2009 3:58 PM

Edited by: sachin sharma on Feb 25, 2009 4:03 PM