cancel
Showing results for 
Search instead for 
Did you mean: 

Catalog error : Index of values is missing for characteristic PLANTu0092

Former Member
0 Kudos

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 I’m getting an error’ Index of values is missing for characteristic PLANT’.

Plant has multiple value.

I’ve 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. I’ll definitely reward points to any useful answer.

-Joe

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Disha for your time. But in the link that you mentioned, the question of that person still remain unanswered. you can see that towards ends of the thread.

-thanks

Joe