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

Company Code Authorization

Former Member
0 Likes
450

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
Read only

Former Member
0 Likes
390

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.