SAP Knowledge Base Article - Public

3497096 - Error in Odata API: API_INFORECORD_PROCESS_SRV in SAP S/4HANA Cloud Public Edition

Symptom

• An error occurs when attempting to modify the purchasing information record via the Odata API: API_INFORECORD_PROCESS_SRV.
• The error message received is "/IWBEP/CM_MGW_RT/022", with the value "Please check key fields of URI and payload".
• The issue arises when trying to set the "IsMarkedForDeletion" field to true.

Environment

SAP S/4HANA Cloud Public Edition 2402

Reproducing the Issue

1. Attempt to modify the purchasing information record via the Odata API: API_INFORECORD_PROCESS_SRV.
2. Set the "IsMarkedForDeletion" field to true with payload below:

{
    "IsMarkedForDeletion": ture
}

Resolution

With this release 2408, only the fields to be updated can be passed in the payload as below:

{
    "IsMarkedForDeletion": false
}

In the meantime, the workaround for this scenario is to pass the key fields in the payload along with the fields that need to be updated.

i.e for the scenario shared, the payload and the URL should be like below

 URL:

/sap/opu/odata/sap/API_INFORECORD_PROCESS_SRV/A_PurgInfoRecdOrgPlantData(PurchasingInfoRecord='530000xxxx',PurchasingInfoRecordCategory='0',PurchasingOrganization='1000',Plant='1000')

Payload:

{
    "PurchasingInfoRecord": "530000xxxx",
    "PurchasingInfoRecordCategory": "0",
    "PurchasingOrganization":"1000",
    "Plant":"1000",
    "IsMarkedForDeletion": ture

}

See Also

For reference, please see the related case at SAP Support Case.

Keywords

Odata API, API_INFORECORD_PROCESS_SRV, SAP S/4HANA Cloud Public Edition, Purchasing Information Record, IsMarkedForDeletion, Error, /IWBEP/CM_MGW_RT/022, Service Entry Sheet, Service Procurement , KBA , MM-PUR-VM-REC , Info Record , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions