01-13-2005 9:01 AM
Hi,
I want to check the company codes for which the authorized in my program. How can I get it ?
please help.
01-13-2005 9:17 AM
Hi,
I guess you mean to check if a user is authorized to display a company code in your program?
It depends on which authorization object is used within your system for company codes, but in general you will have to code :
AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
ID 'BUKRS' FIELD <company code to be checked>
ID 'ACTVT' FIELD '03'.
IF SYST-SUBRC = 0.
<authorization ok>
ENDIF.
Regards,
John.