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

#COE KKS01 Business Partner (A2X) API response doesn't return person field

hbayram
Participant
0 Kudos
612

Hello,

We use Business Partner (A2X API to get BP master data from third-party CRM. CRM POST the BPs via OData requests.

Our problem is when CRM post a BP with category 1 (Person- "BusinessPartnerCategory": "1"), it should give the person field("Person": "") in the POST response. But it returns this field value as empty.

Third-party CRM must have this value as response because when they want to update the same BP, person field is key field as you can see in figure 1 below.

Address ID is key too and I can get "AddressID": "1561", field value as response as in figure 2.

Surprisingly, when I use GET function for same BP the field is maintained in GET response. But I need to take this value in POST response. When I asked this to SAP via incident They told me "requested functionality is currently not available". If it doesn't exist, how can I get this value with the GET function?

Is there anyone have this problem before or any solution advice will be helpful? Thank you.

Figure 1:

Figure2:

Accepted Solutions (1)

Accepted Solutions (1)

Jerry_Lowery
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hasan,

If I understood your first issue, you would expect to see Person populated from the Post return but you see it empty?

Technically, I believe this field should be Person Number, correct?

PersonNumberstring
nullable: true
maxLength: 10
title: Person Number

It is difficult to tell from your screen shot as it does not show the entire response.

As a work around, I suppose, if you get a successful post, the next call in your flow (you don't mention which middleware you are using) you will need to do a GET from the Business Partner returned in the POST response so you can gather the necessary data you need to send back to the CRM.

I am not clear about your 2nd issue - The AddressId is one of the input parameters to the PATCH call, so you should already know it correct? Looking at the PATCH response schema, AddressId is not part of the response schema. In fact, it only returns 204 on success and no other info, unless there is an error then the response contains the error info.

Please let us know if we did not fully understand your issue.

Please be aware also if you would like to request the functionality to be further enhanced you can submit a request through the Influence Portal (https://influence.sap.com/public/ci/help/UserDocumentation_CustomerInfluenceforSAPS4HANACloud.pdf).

You can also consider the SOAP Business Partner API, which is used by many customer to import users from CRM. (https://api.sap.com/api/BUSINESSPARTNERSUITEBULKREPLIC/overview)

Thank you

Jerry

Answers (0)