Error" Index of values is missing for characteristic " in mapping
We are in SRM
I was trying to transfer Master records to catalog using
BAdi : BBP_CCM_CHAR_MAINT but Im getting an error Index of values is missing for characteristic PLANT.
Plant has multiple value.
Ive following code in the method ENHANCE_CTY_DEF
ls_char_definition-char_name = 'PLANT'.
ls_char_definition-char_datatype = 'CHAR'.
ls_char_definition-MULTIVAL_INDICATOR = 'X'.
APPEND ls_char_definition TO et_char_definition.
Following code in the method VALUATE_PRODUCT
v_index = 1.
ls_char_valuation-char_name = 'PLANT'.
LOOP at t_plant into WA_plant.
ls_char_valuation-char_value = WA_PLANT-PLANT_1.
IF WA_plant-PLANT_1 is not initial.
ls_char_valuation-MULTIVAL_INDEX = v_index.
APPEND ls_char_valuation TO et_char_valuation.
v_index = v_index + 1.
Can anyone tell me how to resolve it. Ill definitely reward points to any useful answer.