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

find authorization obj

Former Member
0 Likes
592

hi,

i want to check what objects are used in tcode su01 in abap code. i go to tcode se38 n then enter program name SAPMSUU0 for su01. when i click on display button, i get abap code like this

REPORT SAPMSUU0 .

  • Berechtigungsprüfung 'S_TCODE' für Transaktionen <>

  • 'SU01' oder 'SU01_NAV'

IF SY-TCODE <> 'SU01' AND SY-TCODE <> 'SU01_NAV'. " note 566144

CLEAR: SY-MSGID, SY-MSGTY, SY-MSGNO,

SY-MSGV1, SY-MSGV2, SY-MSGV3, SY-MSGV4.

CALL FUNCTION 'AUTHORITY_CHECK_TCODE'

EXPORTING

TCODE = 'SU01'

EXCEPTIONS

OK = 0

NOT_OK = 1

OTHERS = 2.

IF SY-SUBRC <> 0.

IF SY-MSGID IS INITIAL OR SY-MSGTY IS INITIAL.

MESSAGE E172(00) WITH 'SU01'. " Keine Berechtigung für Transaktion

ELSE.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDIF.

ENDIF.

CALL FUNCTION 'SUSR_USER_MAINT_WITH_DIALOG'

EXCEPTIONS

ERROR_WRITING_TO_DB = 1

OTHERS = 2.

so in this code where i can find object names. please help.

With Regards

Jimmy.

2 REPLIES 2
Read only

Former Member
0 Likes
512

If you are looking for objects that are checked for any transaction in the abap code then you have to search for authority-check statement.

I use the program RPR_ABAP_SOURCE_SCAN in sa38 as it could be handy while checking the authority-check statement in a package. You have to enter authority-check in the Find string & the program(report) name or package name.

Read only

0 Likes
512

hi Jai, thanks for reply.

but still i didnt get it. like earlier wen i do this procedure that time i get some "include" lines with one include line as authority check as commented. when i double click on that include line then i get another screen with all the objects for su01 there like s_user_aut, s_user_pro, s_user_grp etc.. but now i dont kno wat happn i didnt got that screen.