‎2007 Aug 29 9:56 AM
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.
‎2007 Aug 29 10:01 AM
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.
‎2007 Aug 29 10:03 AM
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
‎2007 Aug 29 10:03 AM
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
‎2007 Aug 29 10:04 AM
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^
‎2007 Aug 29 10:29 AM
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).
‎2007 Aug 29 10:43 AM
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