cancel
Showing results for 
Search instead for 
Did you mean: 

Get company code from an user

Former Member
0 Kudos

Hello, I am working in SRM 5.0 and I need to get company code from an user that belong to a corresponding node in the organizational structure.

I need to use Position or user name to get company code in the organization structure in SRM

Thanks in advance

Rosa Rodríguez

Accepted Solutions (1)

Accepted Solutions (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

In FM BBP_READ_ATTRIBUTES, you can provide user name (IV_USER) with attribute id (IT_ATTR_LIST) - BUK in case of company code.

Kind regards,

Ricardo

Former Member
0 Kudos

Hello Ricardo, thanks for your response. And if I don´t have this parameter in the organizational structure? I need to know company code from a vendor in SUS, but when I check BUK parameter is empty.

Is there some way to fill this field automatically?

Thanks in advance

Rosa Rodríguez

Answers (1)

Answers (1)

former_member183819
Active Contributor
0 Kudos

Hi Rosa

FM BBP_READ_ATTRIBUTES

I/P - USER NAME

ORG ID - 5xxxxx

single attribute - BUK

O/P - COMPANY CODE YOU will get it

Muthu