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: 

Company Code Authorization

Former Member
0 Kudos

Hi,

I want to check the company codes for which the authorized in my program. How can I get it ?

please help.

1 REPLY 1

Former Member
0 Kudos

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.