cancel
Showing results for 
Search instead for 
Did you mean: 

Plants assigne for an user

Former Member
0 Kudos

Hi Experts,

I want to get the plant numbers assigned to an user in PPOSA_BBP , extended attributes, locations tab. Is there any standard FM for this.

thanks

sankar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

What is the detailed requirement and which SRM version are you using ?

The table hold plant value in SRM is <u>BBP_LOCMAP</u>. You can get the Plant assigned to a User by reading the Attributes of the user using Function Module "<u>BBP_READ_ATTRIBUTES</u>".

Plants and Company codes are stored in table <u>BBP_ATTR_VALUE_T</u>.

<b><u>Related links -></u></b>

Do let me know.

Regards

- Atul

Former Member
0 Kudos

Hi,

You can use the FM "BBP_READ_ATTRIBUTES".In the parameter "iv_attr_single",you need to pass the attribute name for the Plant i.e. WRK.

e.g.

data : wa_attr_single type bbp_attr_list,

it_attr type bbpt_attr,

wa_attr type bbps_attr,

it_list type bbpt_attr_values,

wa_list type bbps_attr_values.

move 'WRK' to wa_attr_single-attr_id

call function 'BBP_READ_ATTRIBUTES'

exporting

iv_user = sy-uname

iv_scenario = 'BBP'

iv_attr_single = wa_attr_single

importing

et_attr = it_attr

exceptions

object_id_not_found = 1

no_attributes_requested = 2

attributes_read_error = 3

others = 4.

BR,

Disha.

<b>Pls reward full points for useful answers.</b>