10-08-2008 5:57 AM
how to check authorization objects,what are the steps to follow,i am completely new to these pls help me
10-08-2008 6:31 AM
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
10-08-2008 6:17 AM
hi,
you can use SU20,SU21,SUIM transactions to check authorization objects.
10-08-2008 6:31 AM
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
10-08-2008 8:11 AM
Hi sekhar,
please go through the below link , Authorization objects are explained in good manner:
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