on 10-28-2009 2:26 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.