Symptom
You are trying to create a Customer Contract with a product via webservice ManageCustomerContractIn , but when you input the product's ID in the field, the error message "Item XX: product exists more than once; select from value help" occurs (where XX stands for the line item number).
Environment
SAP Business ByDesign
Reproducing the Issue
Create a Customer Contract via the webservice ManageCustomerContractIn by passing ProductTypeCode value, in the Request XML.
Type Code 1 for Material, ProductTypeCode 2 for Services and ProductTypeCode 5 for Entitlements.
Received Error: "Item Product exists more than once; select from value help"
Cause
The Product ID XYZ (represents the ID) of the Material, Service or Entitlement you are trying to create via the web service is present in the system more than once e.g. as a Material and a Service with the same ID XYZ.
Before Release 2602 the ProductTypeCode was not available in the structure of the webservice ManageCustomerContractIn. The system therefore cannot determine if the item in the payload is of type Material, Service or Entitlement. Therefore, if the Product ID is not unique because a Material and/or Service and/or an Entitlement in the system was created with the same ID, the error occurs.
With Release 2602 the element ProductTypeCode has been enabled in the webservice ManageCustomerContractIn and you can pass the Product Type Code via the Payload using the tag <ProductTypeCode> under the <Item> tag for the respective product.
Resolution
Before Release 2602 this was the expected system behavior since the functionality was available in Sales Order but not in Customer Contracts.
With Release 2602 the element ProductTypeCode has been enabled in the webservice ManageCustomerContractIn and you can pass the Product Type Code via the Payload using the tag <ProductTypeCode> under the <Item> tag for the respective product.
For example if the product is a material:
<Item>
<ProductID>XYZ</ProductID>
<ProductTypeCode>1</ProductTypeCode>
<Quantity>2</Quantity>
<QuantityTypeCode>EA</QuantityTypeCode>
</Item>
Keywords
Customer Contract; SOAP; ODATA; Error; Product; Material; Service; Sales Order, Product Type Code, ProductTypeCode, web service, payload, TypeCode, Type Code, , KBA , AP-CCP-CC , Customer Contract , Problem
SAP Knowledge Base Article - Public