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 Codes

Former Member
0 Likes
869


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.


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

deependra_shekhawat3
Contributor
0 Likes
807

Hello munu,

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

Thanks

Deependra

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
807

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

Read only

kamesh_g
Contributor
0 Likes
807

Get the details of user using FM  'HR_GETEMPLOYEEDATA_FROMUSER'.

Thanks

Kamesh