on 2022 Oct 11 2:28 PM
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.
Request clarification before answering.
Hi,
You can use A_Product entity to create via create_deep_entity redefinition. Please use the navigation property to_Description as you need to provide a description in a specific language:
{
"Product": "string",
"ProductType": "stri",
"BaseUnit": "str",
"IndustrySector": "s",
"to_Description": {
"results": [
{
"Product": "string",
"Language": "st",
"ProductDescription": "string"
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anurag,
the question/issue probably isn't specific to CAL or the fully-activated appliance.
Can you please also tag your question with SAP Gateway and oData so that reaches the right forums ?
Thanks,
Joerg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.