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 Codes

Former Member
0 Kudos


Hi All,

My requirement is user along with company codes.

In the selection screen the user will give authorization objects like F_BKPF_BUK , F_AVIK_BUK in 3 parameters fields

and company codes in their respective  BUKRS filds of the corresponding authorization object.

And the output should look like the below.

UserID         Username          UserGroup        CoCd1     CoCd2     .....   CoCdn

ID1                Name1                Group1              X                ---            ...        X

ID2                Name2                Group2               ---              X           ....       ---

I am able to display userID Username Usergroup in the output.

But i could not able know how to know which user belong to which company codes.

Please guide me.

Thanks.

3 REPLIES 3

deependra_shekhawat3
Contributor
0 Kudos

Hello munu,

As i understood, You need to add company code in output ,which you are passing at time of authority-check.

Thanks

Deependra

nabheetscn
Active Contributor
0 Kudos

In order to know which user has authorization for which company code you can use

SUSR_USER_DISPLAY_WITH_AUTHS function module for the same

Nabheet

kamesh_g
Contributor
0 Kudos

Get the details of user using FM  'HR_GETEMPLOYEEDATA_FROMUSER'.

Thanks

Kamesh