on 04-11-2007 9:46 PM
Error" Index of values is missing for characteristic " in mapping
Hi
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
**"plant data
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.
ENDIF.
ENDLOOP.
Can anyone tell me how to resolve it. Ill definitely reward points to any useful answer.
-Joe
Hi
Have you raised any OSS message with SAP yet ? If no, raise one immediately.
Meanwhile, try this ->
<u>It seems the Following code in the method VALUATE_PRODUCT
has some problem -></u>
**"plant data
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.
ENDIF.
ENDLOOP.
Try changing the code - like this ->
**"plant data
LOOP at t_plant into WA_plant.
v_index = sy-tabix.
ls_char_valuation-char_name = '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.
ENDIF.
ENDLOOP.
Some SAP OSS notes to refer ->
<b>Note 850613 - Maintaining the BBP_CCM_CHAR_MAINT BAdI using Customizing
Note 875039 - BBP_CCM_CHAR_MAINT: Valuating predefined characteristics
Note 724097 - Search of the comp. in case of structured characteristics</b>
Do let me know.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please see the foll post:
https://forums.sdn.sap.com/click.jspa?searchID=2054963&messageID=1556948
BR,
Disha.
Pls reward points for useful asnwers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.