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
718

Hi Guys,

1) Whats all about Authority checks?

2) Will this check be used in ABAP Custom Reports? If its so then how?

Warm Regards,

Mohandoss P.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
681

Hi Mohan,

1. AUTHORITY CHECK is used to determine whether an user has authorization to perform particular task.

This will be determined on various fields. This will configured in SAP through customization and roles.

2. You can use this custom report when standard SAP authorization is not sufficient.

3. You have to use the statement AUTHORITY CHECK, along with the authorization object.

Hope this helps you, revert in case any more information needed.

Thanks,

Arun

Hi Mohan,

1. AUTHORITY CHECK is used to determine whether an user has authorization to perform particular task.

This will be determined on various fields. This will configured in SAP through customization and roles.

2. You can use this custom report when standard SAP authorization is not sufficient.

3. You have to use the statement AUTHORITY CHECK, along with the authorization object.

Hope this helps you, revert in case any more information needed.

Thanks,

Arun

3 REPLIES 3
Read only

Former Member
0 Likes
681

Hi,

Authority Check

Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.

A programmer wants to make an authorization check before bookings for business customers can be changed.

To do this, the programmer should create an authorization fields ( ACTVT and CUSTTYPE ) and assign for each field defined the value to be checked ( 02, B ). Authorization fields are created under Tools--->ABAP Workbench>Development->Other tools>Authorization objects->Fields (transaction SU20).

Programmers should also create an authorization object (here S_TRVL_BKS ) and assign the authorization object to an object class.

Authorization fields are created under Tools-->ABAP Workbench>Development>Other tools?Authorization objects-->Objects (transaction SU21). Authorization objects can also be created in the Object Navigator (transaction SE80).

You program the authorization check using the ABAP statement AUTHORITY-CHECK .

AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'

ID 'ACTVT' FIELD '02'

ID 'CUSTTYPE' FIELD 'B'.

IF SY-SUBRC 0.

MESSAGE E...

ENDIF.

The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.

for more details follow this link.

http://help.sap.com/saphelp_46c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm

Regards,

Raj.

Read only

Former Member
0 Likes
682

Hi Mohan,

1. AUTHORITY CHECK is used to determine whether an user has authorization to perform particular task.

This will be determined on various fields. This will configured in SAP through customization and roles.

2. You can use this custom report when standard SAP authorization is not sufficient.

3. You have to use the statement AUTHORITY CHECK, along with the authorization object.

Hope this helps you, revert in case any more information needed.

Thanks,

Arun

Read only

Former Member
0 Likes
681

Dear Raja,

Thanks for your extended support.

POints granted.

Warm Regards,

Mohandoss P.