cancel
Showing results for 
Search instead for 
Did you mean: 

Issue related with using the FM BBP_READ_ATTRIBUTES

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

check in the table T77OMATTR - attribute/scenarios.

What is the inheritance type maintained for ADDR_SHIPT. If it is Local values overrite inherited values, values given at user level will overrite inherited ones. Change the inheritance type to Normal Inheritance (additive). Then you shud be able to append values at user level.

R/reddy.

Former Member
0 Kudos

Hi Vangala,

Thank you for your reply. I have checked the Table T77OMATTR, but I don't see any field such as inheritance type. The following are the values which are maintained in the table T77OMATTR for the attribute ADDR_SHIPT :

ATTRIB = ADDR_SHIPT

REFSTRUCT = BBP_ATTR_F1

REFFIELD = ADDR_SHIPT

REFOBJTYPE = SPACE

RANGE = SPACE

MULTIPLE = X

WITHDEF = X

SUPP_CONV = SPACE

NO_MAINT = SPACE

REF_ATTRIB = SPACE

INTTYPE = C

INTLEN = 10

OUTPUTLEN = 10

ATEXT = Delivery Address

Please let me know if there is anything else to be checked or done

Regards

Kishan

Former Member
0 Kudos

Hi

Tx SM30 - T77OMATTR - click on maintain - select attibutes/scenarios - ADDR_SHIPT.

There you can change the inheritance types to the need.

T77OMATTR has got maintenance allowed.

R/Reddy.

Former Member
0 Kudos

Hi ,

As vangala said go to SM30 --> table T77OMATTR

change mode click on Attributes / Scenarios on left side of the screen.

Check the inheritance type maintained. Change the inheritance type to Normal Inheritance (additive).

Thanks

prasad.s

Former Member
0 Kudos

Hi Vangala,

Thanks a lot for your help. It worked.

Kudos to you.

Regards

Kishan

Answers (0)