2006 Aug 02 11:00 AM
Hi All,
I have a requirement which involved in restricting the user to execute the program using SA38.Please suggest me.
I went to SU20 but could not find the right way how to do?
Thanks in advance
2006 Aug 02 11:07 AM
1) check authority object for field for whcich u want to check authority is present or not
for this use transaction su20 /su21
2)if it is not u create object by using su21.
3)after that in programm use fm AUTHORITY-CHECK OBJECT .
ex---AUTHORITY-CHECK OBJECT 'V_LIKP_VST'
ID 'VSTEL' FIELD t_sel-vstel
ID 'ACTVT' FIELD '01'
ID 'ACTVT' FIELD '02'
ID 'ACTVT' FIELD '03'
ID 'ACTVT' FIELD '04'
ID 'ACTVT' FIELD '18'
ID 'ACTVT' FIELD '24'
ID 'ACTVT' FIELD '25'
ID 'ACTVT' FIELD '85'.
IF sy-subrc <> 0.
t_authority-vstel = t_sel-vstel.
APPEND t_authority.
CLEAR t_authority.
2006 Aug 02 11:08 AM
In INITIALIZATION.
Check for System variable SY-TCODE eq 'SA38'.
If sy-subrc NE 0.
*Error msg
Endif.
2006 Aug 02 11:11 AM
s_tcode object only assing the required transaction.
example Z*, SA38, etc.
Regards
Raja
2006 Aug 02 11:32 AM
Hello Naveen,
Did u look at attaching an authorisation object in the atribute of the program itself. This will stop him from executing the program from SE38.