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

Former Member
0 Likes
1,853

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,017

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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,017

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

Read only

Former Member
0 Likes
1,017

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

Read only

Former Member
0 Likes
1,018

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.

Read only

Former Member
0 Likes
1,017

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