When you try to add a tax number to an exisiting account by using the web service ManageCustomerIn, you receive the error message 'Update not possible; specified data for CUSTOMER-TAX_NUMBER with key COUNTRY_CODE = `XX` AND TAX_TYPE_CODE-CONTENT = 'Z' does not exist' (XX represents the Tax Country Code and Z represents the Tax Number Type Code).
SAP Hybris Cloud for Customer
Reproducing the Issue
You are sending an XML request similar to the following XML request, e.g. via SOAP UI.
Example erroneous XML request:
<Customer actionCode = "02">
<TaxNumber ActionCode = "02">
ABCDEF stands for the internal account number of the customer you want to update.
After the call has been triggered you receive a XML response as follows.
Example erroneous XML response:
<n0:CustomerBundleMaintenanceConfirmation_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:HSN:/1SAI/TAEDC0F6D9DDBB2D862497A:804">
<Note>Update not possible; specified data for CUSTOMER-TAX_NUMBER with key COUNTRY_CODE = `XX` AND TAX_TYPE_CODE-CONTENT = `Z` does not exist</Note>
Because you used ActionCode = "02" in your XML request for the element <TaxNumber ActionCode = "02">, the system throws the error message. This ActionCode is only used for updating existing data. However, when you check the account master data, so far no tax number is maintained.
Instead of using ActionCode = "02", use either ActionCode "01" or "04". "01" for the functionality to create an entry and "04" to save an entry ("04" is a combination of "01" create and "02" update functionalities).
ManageCustomerIn, Account, Tax Number , KBA , LOD-CRM-ACC , Account , Problem