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 table

Former Member
0 Likes
1,124

Hi,

In which table are the AUTHORITY-CHECK objects and their asscoaited information (P_GROUP, ACTVT) information stored?

Thanks

Hi,

In which table are the AUTHORITY-CHECK objects and their asscoaited information (P_GROUP, ACTVT) information stored?

Thanks

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,056

Please check tables....

TOBJ

TOBJC

TOBC

TOBCT

Regards,

Rich Heilman

Read only

0 Likes
1,056

Hi Rich,

I want to check the authorizations of users and awnt only some users to have the authorization of executing an ABAP program (ZABC).

Will this code suffice? I included this code after SELECTION-SCREEN statements and before the only SELECT statement.

SELECTION-SCREEN BEGIN OF BLOCK B1.

.............................

SELECTION-SCREEN END OF BLOCK B1.

AUTHORITY-CHECK 'S_DEVELOP'

ID 'P_GROUP' DUMMY

ID 'ACTVT' FIELD '03'.

DATA: ...........

SELECT..............

Thanks

Read only

0 Likes
1,056

Hi Sachin

To achieve the above first you have to create Authorization object using SU21 TCODE.

There u need to give Authorization object, text, class, Authorization fields[Like ACTVT(activity)].

Then in your program at the beggining where process begins write Authorization check syntax as below:

      AUTHORITY-CHECK OBJECT 'OBJECT NAME'
                      ID 'ACTIVITY' FIELD '  '.

in take field with name program

and the activity = (1,2,3 ) all

then ask the basis guy to assign this object to the diffrent users profiles to whom you need to give the authorization.

With that u can see that the user who is having ROLE/AUTHORIZATION will able to run through that report and view, The end users who are not having the same will not be able to view the report.

Revert back for more help

Regards

Naresh

Read only

0 Likes
1,056

Hi sachin,

Your program has selections screen,

put the authority check statement

after start-of-selection in following way.

START-OF-SLECTION.

AUTHORITY-CHECK 'S_DEVELOP'

ID 'P_GROUP' DUMMY

ID 'ACTVT' FIELD '03'.

if sy-subrc ne 0.

message e001 with 'No authorization to run the program'.

endif.

your select staemnt.

provided your authorization group,etc should exists in the syATEM.

Read only

0 Likes
1,056

Please check...

AUTHX,TADIR

Regards,

Ramki.

Read only

0 Likes
1,056

Hi Sachin

If a specific authorization object is created for program ZABC, we can add this in the attributes of the program.

Kind Regards

Eswar

Read only

Former Member
0 Likes
1,056

Hi,

Check the tables TOBJ & AUTHX, TOBJVORDAT, TOBJVORFLG,TACTZ..

Thanks,

Naren

Read only

Former Member
0 Likes
1,056

Hello,

In the table TACTZ.

Thanks,

Krishna