Skip to Content
0
Former Member
Oct 28, 2009 at 02:26 PM

Issue related with using the FM BBP_READ_ATTRIBUTES

114 Views

Hi all,

We are using SRM 5.0, ECC6 and ECS scenario

We have a requirement where we need to add multiple delivery address in the org structure at the user level. The attribute id is ADDR_SHIPT. there will always be a inherited address available, we need to add more addresses to it and set one of the addresses to a default value.

I had used the FM BBP_READ_ATTRIBUTES, the problem I'm facing is that it is overwriting the inherited addresses. I have checked several threads which mentioned we can set the IMP REPLACE_P and append values but this is not happening even If set or un-set the parameter REPLACE_P.

In one of threads I think by Disha, it was mentioned that the values will always get overwritten, so in case there is an existing value and if we need to append 2 more values then we need to populate 3 entries in the FM and execute. I have tried this but I always end up with 1 value.

I guess I might be doing something wrong .

The following is the code snippet I'm using :

it_attr_tab-attr_id = 'ADDR_SHIPT'

it_attr_tab-value_logsys = space

it_attr_tab-value = '11734'

it_attr_tab-dft_flag = 'X' (this is not set for other records)

CALL FUNCTION 'BBP_READ_ATTRIBUTES'

EXPORTING

orgunit_id_p = '50000763'

scenario_p = 'BBP'

start_date_p = sy-datum

end_date_p = '99991231'

replace_p = <have used both X and space>

TABLES

it_attr_p = lt_attr_tab.

I really appreciate any and all information you can give me on this.

Thanks in advance

Kishan