Application Development 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: 

Authorization objects

Former Member
0 Kudos

how to check authorization objects,what are the steps to follow,i am completely new to these pls help me

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Authorization objects are used to provide authorization to some particular people for a particular transaction or may be to a number of values of a particular field.

let me explain with an example....

Suppose you require that for the field company code(BUKRS) you need to display only those values in the hit list that the user is authorised to when he hits F4.

Following is the code for the same....

LOOP AT RECORD_TAB.

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD RECORD_TAB-STRING+3(4).

IF sy-subrc ne 0.

DELETE RECORD_TAB.

ENDIF.

ENDLOOP.

This can be achieved with the help of authorization objects.

These objects are provided by the BASIS people.

U can refer the following thread as well

Regards,

Manish

3 REPLIES 3

GauthamV
Active Contributor
0 Kudos

hi,

you can use SU20,SU21,SUIM transactions to check authorization objects.

Former Member
0 Kudos

Hi,

Authorization objects are used to provide authorization to some particular people for a particular transaction or may be to a number of values of a particular field.

let me explain with an example....

Suppose you require that for the field company code(BUKRS) you need to display only those values in the hit list that the user is authorised to when he hits F4.

Following is the code for the same....

LOOP AT RECORD_TAB.

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD RECORD_TAB-STRING+3(4).

IF sy-subrc ne 0.

DELETE RECORD_TAB.

ENDIF.

ENDLOOP.

This can be achieved with the help of authorization objects.

These objects are provided by the BASIS people.

U can refer the following thread as well

Regards,

Manish

Former Member
0 Kudos

Hi sekhar,

please go through the below link , Authorization objects are explained in good manner:

and

http://help.sap.com/saphelp_erp2004/helpdata/en/80/1a689ae07211d2acb80000e829fbfe/frameset.htm

here you can see the Overview: Authorization Objects.

Hope this will help you.

Regards

Saurabh