cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UPDATE Handling Unit using API_HANDLINGUNIT does not work.

tony_raimo2
Explorer
0 Likes
2,142

I'm trying to call the public API to update a Handling Unit in an S/4 2023 on-prem system.  The GET operation works, however, the PATCH operation throws this error.  Has anyone seen this error before?

{
    "error": {
        "code": "HU_RAP/066",
        "message": "Operation UPDATE not supported for LO-HU",
        "@SAP__common.ExceptionCategory": "Provider_Application_Error",
        "innererror": {
            "ErrorDetails": {
                "@SAP__common.Application": {
                    "ComponentId": "LO-HU-API",
                    "ServiceRepository": "SRVD_A2X",
                    "ServiceId": "API_HANDLINGUNIT",
                    "ServiceVersion": "0001"
                },
                "@SAP__common.TransactionId": "8452C63109A70020E0066FDA3E13200B",
                "@SAP__common.Timestamp": "20241114013306.193137",
                "@SAP__common.ErrorResolution": {
                    "Analysis": "Use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details",
                    "Note": "See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"
                }
            }
        }
    }
}
 
Here are some more details about how I'm making the call in PostMan:
URL:  
 
Headers:
x-csrf-token  =  8g_-04avJscfSv8vIpDaWg==
if-match        =  W/"SADL-020241029183518C~20241029183518"
 
Body:
{
    "HandlingUnitWidth": 5,
    "UnitOfMeasureDimension": "CM"
}
 
 
 

Thank you,

Accepted Solutions (0)

Answers (2)

Answers (2)

amue092
Explorer
0 Likes

Hi Tony,

please be aware that the HU API was developed for the public cloud and is only enabled to work in on-prem / private cloud environment when you implement BAdI /SCWM/EX_API_CTRL_USE to suppress this error message. Only then you can use the patch call to update weights and dimensions of an existing HU in the on-prem System.

For more info check SNOTE 3216941.

BR Axel

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes

Yes it does. Yet the error text says "Operation UPDATE not supported for LO-HU". 🤷🏻‍