Skip to Content
0
May 20, 2019 at 04:54 AM

Patch issue "PATCH requests require components to be updated" when invoking S/4HANA Cloud SDK

710 Views

Hello experts,

I am investigating S/4HANA Cloud SDK to update existing business partner.

@Override
public ODataUpdateResult run() throws ODataException {
ODataUpdateResult updateResult = new DefaultBusinessPartnerService()
.updateBusinessPartner(businessPartner)
.execute();
logger.info("Update Business Partner successfully");
return updateResult;
}

Request payload is

{
"BusinessPartner": "1521",
"LastName": "jerry",
"FirstName": "zhang"
}

I always got error "PATCH requests require components to be updated".

It seems that the code does not know which Business Partner is to be updated.

Could you please give some ideas?