cancel
Showing results for 
Search instead for 
Did you mean: 

Error in creating BP Customer via API

GiuseppeB
Newcomer
0 Kudos

Dear Experts,

we are trying to create a new customer throught API:

PATCH https://xx-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Customer(Customer='CC0010') 

We have already created the BP general's data (Business Partner(Gen.) 000000) with the API:

POST https://xxx-api.s4hana.cloud.sap/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner 

but we get the following error:

<?xml version="1.0" encoding="utf-8"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <code>/IWBEP/CM_MGW_RT/020</code>
    <message xml:lang="en">Resource not found for segment 'A_CustomerType'</message>
    <innererror>
        <application>
            <component_id>LO-MD-BP</component_id>
            <service_namespace>/SAP/</service_namespace>
            <service_id>API_BUSINESS_PARTNER</service_id>
            <service_version>0001</service_version>
        </application>
        <transactionid>63B568C79CA901E0E0065D41A20679BB</transactionid>
        <timestamp>20240220092427.0382470</timestamp>
        <Error_Resolution>
            <SAP_Transaction>For backend administrators: 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</SAP_Transaction>
            <SAP_Note>See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)</SAP_Note>
        </Error_Resolution>
        <longtext_url>/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID='%2FIWBEP%2FCM_MGW_RT',MSGNO='020',MESSAGE_V1='A_CustomerType',MESSAGE_V2='',MESSAGE_V3='',MESSAGE_V4='')/$value</longtext_url>
        <errordetails>
            <errordetail>
                <ContentID/>
                <code>/IWBEP/CX_MGW_BUSI_EXCEPTION</code>
                <message>Resource not found for segment 'A_CustomerType'</message>
                <longtext_url>/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID='%2FIWBEP%2FCM_MGW_RT',MSGNO='020',MESSAGE_V1='A_CustomerType',MESSAGE_V2='',MESSAGE_V3='',MESSAGE_V4='')/$value</longtext_url>
                <propertyref/>
                <severity>error</severity>
                <target/>
                <transition>false</transition>
            </errordetail>
        </errordetails>
    </innererror>
</error>

Could you kindly tell me how to solve the problem?

Is there a log on S4 Public where I can go to see these errors?

thanks in advance

Giuseppe

Accepted Solutions (0)

Answers (1)

Answers (1)

Vincent_Zhu
Product and Topic Expert
Product and Topic Expert
0 Kudos