SAP Knowledge Base Article - Public

3442551 - Change/Update Customer API

Symptom

  1. An error "Resource not found for segment 'A_BusinessPartnerAddressType'" via the API /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress(BusinessPartner='xxxxx',AddressID='xxxx')
  2. The old address was not updated with the payload.

Environment

SAP S/4HANA Cloud

Cause

1. An error "Resource not found for segment 'A_BusinessPartnerAddressType'" via the API /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress(BusinessPartner='xxxxx',AddressID='xxxx')

>>>> The rootcause is that there is no addressID xxxx in your addresses for the BP xxxxx in your system.

2. The old address was not updated with your payload.

>>> The rootcause is that you are using the POST API /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress, it is used to created a new address but not to update the existed address. You should use the PATCH method to update the existed address via the PATCH API/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress(BusinessPartner='xxxxx',AddressID='xxxx')

Resolution

1. check the addressID and use the correct addressID

2. use PATCH not POST method to update the existed address

Keywords

Resource not found for segment, A_BusinessPartnerAddressType, addressID, PATCH , KBA , LO-MD-BP , Business Partners , How To

Product

SAP S/4HANA Cloud Public Edition 2402