Skip to Content
0
Former Member
Oct 11, 2022 at 01:28 PM

Unable to create a Product using Odata API_PRODUCT_SRV A_Product

630 Views Last edit Oct 19, 2022 at 01:36 PM 2 rev

Hi,

Appreciate your inputs in advance. I am unable to create a product on my fully activated SAP Appliance using API_PRODUCT_SRV A_Product POST. I get the following error:

code":"API_PRD_MSG/009","message":{"lang":"en","value":"Create operation not allowed on entity.

Digging a little deeper, I find this in

 /iwbep/if_mgw_appl_srv_runtime~create_entity
* Create operation not allowed in below entities<br>    IF lv_entity_type_name = cl_api_product_mpc=>gc_a_producttype<br>      OR lv_entity_type_name = cl_api_product_mpc=>gc_a_productmlaccounttype<br>      OR lv_entity_type_name = cl_api_product_mpc=>gc_a_productmlpricestype<br>      OR lv_entity_type_name = cl_api_product_mpc=>gc_a_productvaluationcostingty<br>      OR lv_entity_type_name = cl_api_product_mpc=>gc_a_productvaluationaccountty.
      MESSAGE e009(api_prd_msg) INTO DATA(lv_dummy).<br>      lt_return_messages = VALUE #( ( id = 'API_PRD_MSG'<br>                                      number = '009'<br>                                      type = 'E' ) ).<br>      raise_error( lt_return_messages ).
    ENDIF.