SAP Knowledge Base Article - Public

3392200 - Address Details of Business Partner Relationship is Not Getting Created

Symptom

You are trying to create a relationship between existing Customer and Contact records. You observe that the relationship is getting created, but the address details are not created.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

To perform the POST call:

  1. Login to the third-party tool
  2. Perform a POST operation for the API_Business_Partner 

https://myxxxxxx-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerContact 

where xxxxxx represents the tenant URL of the S/4HANA cloud system

Sample Request Payload:
------------------------------------------------------

{

    "BusinessPartnerCompany": "string",

    "BusinessPartnerPerson": "string",

    "to_ContactRelationship": {

        "ContactPersonFunction": "stri",

        "EmailAddress": "string"

    },

    "to_ContactAddress": {

        "results": [{

                "CityName": "string",

                "CompanyPostalCode": "string",

                "Country": "str",

                "HouseNumber": "string",

                "Language": "st",

                "POBox": "",

                "POBoxPostalCode": "",

                "PostalCode": "string",

                "Region": "str",

                "StreetName": "string",

                "TransportZone": "string",

                "to_MobilePhoneNumber": {

                    "results": [{

                            "PhoneNumber": "string",

                            "PhoneNumberExtension": ""

                        }

                    ]

                },

                "to_PhoneNumber": {

                    "results": [{

                            "PhoneNumber": "string",

                            "PhoneNumberExtension": ""

                        }

                    ]

                }

            }

        ]

    }

} 

------------------------------------------

Cause

It is not possible to create, change or delete the Contact Person workplace address via OData service API_BUSINESS_PARTNER.

As described in the SAP Help Portal, entity A_BPContactToAddress (navigation property to_ContactAddress) only supports the Read operation:

 

Contact Person Address

GET call

/A_BusinessPartnerContact(RelationshipNumber='{RelationshipNumber}',BusinessPartnerCompany='{BusinessPartnerCompany}',BusinessPartnerPerson='{BusinessPartnerPerson}',ValidityEndDate=datetime'{ValidityEndDate}')/to_ContactAddress

Resolution

Requested functionality of assigning a Company address to a Contact Person is currently not available in the OData API. We currently do not have an approach to Mass update the customer data using the button Assign Company Address on the Contact person screen. Further, supporting the Create, Change and Delete scenarios in this case using the OData API is a new development request. 

You may choose one of the two channels of either addressing this feature request with your SAP Cloud Representative if this is a critical/urgent issue or, if you would like to propose it to development colleagues through the correct channels - SAP Customer Influence enables customers to submit improvement requests and to openly vote on them. These voting results inform SAP of product enhancements and changes customers are most interested in seeing in future releases. You may refer the KBA for steps to request for New Features for Master Data topics in SAP S/4HANA Cloud.

See Also

SAP Customer Influence

2838330 - How To Request for New Features for Master Data topics in SAP S/4HANA Cloud

Keywords

Assign Company Address, API_BUSINESS_PARTNER, Business Partner, Customer, Contact, Company address, Contact Person, Read, Create, Update, Change, Patch, A_BPContactToAddress, BPContactToAddress, Address, Contact Person Address, BusinessPartnerCompany, BusinessPartnerPerson, ContactAddress, Business Partner Relationship, Relationship , KBA , AP-MD-BP-ADR , Business Partner Addresses , Problem

Product

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