Symptom
The following errors are displayed for a Sales Transaction document created via web service in the system.
The quantity type ZABC is not permitted for the Product XYZ
Quantity type ZABC not valid
(Where ZABC represents a Custom Unit of Measure and XYZ represents the Product ID)
Note: The Custom UoM ZABC was created with reference UoM as Liter.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the Customer Invoicing Work Center.
- Go to the Point-of-Sales Transaction View.
- Select the Sales Transaction sub view.
- Search for Sales Transaction EDF. (where EDF represents the Sales Transaction ID)
- Select Check button.
The following errors are displayed in the UI:
The quantity type ZABC is not permitted for the Product XYZ.
Quantity type ZABC not valid.
Cause
When creating a Sales Transaction through web service the Items must be passed to the system with the appropriate Quantity unitCode and Quantity TypeCode.
In case a Custom UoM with reference UoM as Liter is to be used to determine the Quantity unitCode of the Items in a Sales Transaction, then VOLUME must be used as the Quantity TypeCode
For example, the correct information to be passed in the payload should be:
<Quantity unitCode="ZABC">1</Quantity>
<QuantityTypeCode>VOLUME</QuantityTypeCode>
Note: In case the Quantity unitCode requires to be passed as l (standard UoM for Liter) for the Items in the payload, then Quantity TypeCode should also be used as VOLUME.
Resolution
This is the design system behavior.
See Also
Keywords
Sales Transactions, Liter, Custom UoM, Payload, POS, Point-of Sales, Quantity unitCode, Quantity TypeCode , KBA , SRD-CRM-INV , Customer Invoicing , How To
SAP Knowledge Base Article - Public