SAP-samples / s4hana-ext-order-app

SAP S/4HANA Cloud Product Web Ordering and Reporting extension sample showcases how to consume services from SAP S/4HANA Cloud. Both read and write data from/to SAP S/4HANA Cloud are used in this sample. This repository holds only the 'Web Ordering' app.
http://tiny.cc/s4-ext-order-app
Apache License 2.0
0 stars 5 forks source link

"No customer master record exists for sold-to party XXXXXXXX" #13

Closed Kosmo112358 closed 3 years ago

Kosmo112358 commented 3 years ago

Hi, I'm having an error message when trying to create a customer record from the app. I'm using a partner demo system and would expect that the appropriate data has been maintained. Has anyone else had this issue and resolved it?

Thanks, Mark

------Error message below-----

2021 01 13 19:01:07#+00#ERROR#com.sap.cloud.extensibility.services.SalesOrderService##S0017476859#https-jsse-nio-8041-exec-5#na#gp30lvcw0u#extorderappapplication#web#gp30lvcw0u#na#na#na#na#Exception occured while creating a sales Order and the exception is :: com.sap.cloud.sdk.s4hana.datamodel.odata.helper.ODataVdmErrorResultHandler$ErpODataException: The endpoint responded with HTTP error code 400. No customer master record exists for sold-to party XXXXXXXX Full error message: { "error": { "code": "VP/199", "message": { "lang": "en", "value": "No customer master record exists for sold-to party XXXXXXXX" }, "innererror": { "application": { "component_id": "SD-SLS-SO", "service_namespace": "/SAP/", "service_id": "API_SALES_ORDER_SRV", "service_version": "0001" }, "transactionid": "A6D2614279520210E005FFF430C8AFAB", "timestamp": "20210113190107.8554210", "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_Note": "See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails": [ { "code": "/IWBEP/CX_MGW_BUSI_EXCEPTION", "message": "No customer master record exists for sold-to party XXXXXXXX", "propertyref": "", "severity": "error", "transition": false, "target": "" } ] } } }

grenik commented 3 years ago

Hello Mark,

No customer master record exists for sold-to party XXXXXXXX

Looks like you didn't change the s4cld.onetimebusinesspartner value in the config file before building and deploying your app. The step is described here.

I'm using a partner demo system and would expect that the appropriate data has been maintained.

Our scenario is not a part of a standard setup for any systems, including partner demo systems. It will work out of the box only if you are lucky and someone has already configured the scenario in your system before, but normally you need to go through all the configuration steps in your system.

Best regards, Nikolay

Kosmo112358 commented 3 years ago

Issue resolved.