2008 Jul 15 10:30 AM
Please explain me how this code works.
Anzeigeberechtigung
authority-check object 'S_TABU_DIS'
id 'DICBERCLS' field tddat-cclass
id 'ACTVT' field '03'.
if sy-subrc ne 0.
message e419 raising no_permission.
endif.
Regards
Prajwal K.
2008 Jul 15 10:44 AM
authority-check object 'S_TABU_DIS'
id 'DICBERCLS' field tddat-cclass
id 'ACTVT' field '03'.
if sy-subrc ne 0.
message e419 raising no_permission.
endif.
here S_TABU_DIS is an authorisation object for displaying table.
DICBERCLS - is for passing the Authorization Group for table
ACTVT - it means activity like change , create, display etc. Each activity has a code like:
01 - Create
02 - Change
03 - Display
In ur case activity is 03 means display activity.
So here we are checking whether for the table authorization group
contains in tddat-cclass has a display authority or not. If not then it will raise exception.
Regards,
Joy.
Please explain me how this code works.
Anzeigeberechtigung
authority-check object 'S_TABU_DIS'
id 'DICBERCLS' field tddat-cclass
id 'ACTVT' field '03'.
if sy-subrc ne 0.
message e419 raising no_permission.
endif.
Regards
Prajwal K.
2008 Jul 15 10:34 AM
Hai Prajwal,
I hope the following link will help you to know the full details of Authority Check....
http://help.sap.com/saphelp_nw04s/helpdata/en/52/67129f439b11d1896f0000e8322d00/content.htm
Regards,
Harish
2008 Jul 15 10:40 AM
hi prajwal k,
To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
SU21 transaction code.
[link 1|http://help.sap.com/saphelp_nw70/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm]
[link 2|http://help.sap.com/saphelp_46c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm]
Regards,
sandeep
Edited by: Sandeep patel on Jul 15, 2008 3:11 PM
2008 Jul 15 10:44 AM
authority-check object 'S_TABU_DIS'
id 'DICBERCLS' field tddat-cclass
id 'ACTVT' field '03'.
if sy-subrc ne 0.
message e419 raising no_permission.
endif.
here S_TABU_DIS is an authorisation object for displaying table.
DICBERCLS - is for passing the Authorization Group for table
ACTVT - it means activity like change , create, display etc. Each activity has a code like:
01 - Create
02 - Change
03 - Display
In ur case activity is 03 means display activity.
So here we are checking whether for the table authorization group
contains in tddat-cclass has a display authority or not. If not then it will raise exception.
Regards,
Joy.
2008 Jul 15 10:56 AM
If you place your (mouse) cursor on the ABAP statement "authority-check" and press the F1 key on the key board, it will be explained to you.
This also works for other ABAP statments.
Cheers,
Julius
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |