Symptom
Warehouse Order and Task (A2X) API not working to Assign resources and to set Warehouse Order Status in process.
When executing the POST request: /sap/opu/odata4/sap/api_warehouse_order_task_2/srvd_a2x/sap/warehouseorder/0001/
With Body request:
{
"EWMResource": "&"
}
You receive the error message: "User not logged on to resource &" "/SCWM/ODATA_API/018"
Environment
SAP S/4HANA Cloud
Resolution
Please make sure that the user is log on into the resource "&" first, assigning the user to the resource by the API below:
Exemple:
POST <host>/sap/opu/odata4/sap/api_warehouse_resource_2/srvd_a2x/sap/warehouseresource/0001/WarehouseResource(EWMWarehouse='1050',EWMResource='RES1')/SAP__self.LogonToWarehouseResource
For further information check: Log On to Resource
After that, you will be able to assign the Warehouse Order with the Warehouse Order and Task (A2X) API.
Keywords
s/4hana cloud, s/4hana public cloud, EWM, WM, user not logged on to resource, /SCWM/ODATA_API/018, /SCWM/ODATA_API, 018, /SCWM/ODATA_API 018. , KBA , SCM-EWM-API-2CL , Remote APIs (Public Cloud) , Known Error