Hi Experts.
I have been working with the MDM API for some time now, but I cant seem to figure out how to set up the search criteria for searching on an Integer field.
In MDM table 'MDMSRM_CATALOG_ITEMS' we have a field FROM_DATE defined as an integer. When retrieving the field is of type MDM_GDT_INTEGERVALUE.
I use this code:
APPEND INITIAL LINE TO mt_query ASSIGNING <qry>.
<qry>-parameter_code = 'MDMSRM_PLANT'.
<qry>-operator = 'EQ'.
<qry>-dimension_type = mdmif_search_dim_field.
<qry>-constraint_type = mdmif_search_constr_num.
GET REFERENCE OF lv_num_int INTO <qry>-value_low.
CALL METHOD mr_connection->mr_api->mo_core_service->query
EXPORTING
iv_object_type_code = mv_table "'MDMSRM_CATALOG_ITEMS'
it_query = mt_query
iv_search_operator = mdmif_search_operator_and
IMPORTING
et_result_set = mt_result_set.
This results in a ST22 dump: ASSIGN_TYPE_CONFLICT because it tries to assign the Integer value to a Double:ASSIGN <query>-value_low->* TO <gdt_doub>.
I have tried to replace the dimension_type and constraint_type with no luck.
Can you please help?
Thanks in advance.
Best Regards
Per