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

Authorization Object

Former Member
0 Likes
2,124

Hi Experts,

In my report It wa mentioned the nd user who run this program must have Company code display authorization for the company code being selected and they told to use <b>F_BKPF_BUK</b> authorization object.

when i went to pattern and give the authority object it gave the below code in the editor.

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD '__________'

ID 'ACTVT' FIELD '__________'.

what should i do for the above requirement.

6 REPLIES 6
Read only

Former Member
0 Likes
1,418

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'XXXXX' FIELD p_bukrs.

double click on your authorization object , and it will take u to another transaction,

replace the value of XXXXX above with that of the authorization field in that tcode, normally it will be RCOMP , p_bukrs is the value of the company code on selection screen

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'RCOMP' FIELD p_bukrs.

Read only

Former Member
0 Likes
1,418

Hi,

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD '__________'

ID 'ACTVT' FIELD '__________'.

For the BUKRS field pass the company code and ACTVT field pass the value /3'

Thanks..

Preetham S

Read only

Former Member
0 Likes
1,418

List of activities for authority object.

01 Create or Generate

02 Change

03 Display

06 Delete

07 Activate, generate

08 Display change documents

22 Enter, Include, Assign

43 Release

77 Pre-enter

Your syntax will be

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD 'Company code'

ID 'ACTVT' FIELD '03'.

if sy-subrc ne 0.

perform the required validation..

endif.

relevant transaction - SU21

Read only

Former Member
0 Likes
1,418

hi

good

go throug this link,hope this ll help you to solve your problem

http://help.sap.com/saphelp_nw2004s/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
1,418

You can assign a table to authorization group Z000. (Use transaction SM30 for table TDDAT) A user that wants to access this table must have authorization object S_TABU_DIS in his or her profile with the value Z000 in the field DICBERCLS (authorization group for ABAP Dictionary objects).

Read only

Former Member
0 Likes
1,418

Hi,

The code will be like

AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

ID 'BUKRS' FIELD v_bukrs

ID 'ACTVT' FIELD '03'.

if sy-subrc <> 0.

message e000(zabc). "You are not authorized for the execution of transaction

endif.

NB:pass the company code value to v_bukrs.

Those users whose user profile has been assigned with the particular authorization object only will pass the validation.This is done by Basis people