SAP Knowledge Base Article - Public

2597161 - Adding a Tax Number to an Exisiting Account Not Possible via Web Service ManageCustomerIn

Symptom

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).

Environment

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:

 <n0:CustomerBundleMaintenanceRequest_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
 <BasicMessageHeader/>
 <Customer actionCode = "02">
  <InternalID>ABCDEF</InternalID>
  <TaxNumber ActionCode = "02">
   <CountryCode>XX</CountryCode>
   <TaxIdentificationNumber>Z</TaxIdentificationNumber>
  </TaxNumber>
 </Customer>
</n0:CustomerBundleMaintenanceRequest_sync_V1>

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">
 <Log>
  <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
  <Item>
   <TypeID>027(/MBF_A2X_CORE/)</TypeID>
   <CategoryCode>BPR.PUR</CategoryCode>
   <SeverityCode>3</SeverityCode>
   <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>
  </Item>
 </Log>
</n0:CustomerBundleMaintenanceConfirmation_sync_V1>

Cause

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.

Resolution

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).

Keywords

ManageCustomerIn, Account, Tax Number , KBA , LOD-CRM-ACC , Account , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions