2008 Feb 22 3:40 AM
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.
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.
2008 Feb 22 3:55 AM
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.
2008 Feb 22 4:11 AM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |