SAP Knowledge Base Article - Public

3494075 - Error "The quantity type ABC is not permitted for the Product XYZ" is Displayed When Creating a Sales Transaction Through Web Service with a Custom Unit of Measure with Reference UoM as Liter

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

  1. Go to the Customer Invoicing Work Center.
  2. Go to the Point-of-Sales Transaction View.
  3. Select the Sales Transaction sub view.
  4. Search for Sales Transaction EDF. (where EDF represents the Sales Transaction ID)
  5. 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

KBA 3142954 - Point-of-Sale Transactions is Inconsistent with the Error the Quantity type ABC is not permitted for the product

Keywords

Sales Transactions, Liter, Custom UoM, Payload, POS, Point-of Sales, Quantity unitCode, Quantity TypeCode , KBA , SRD-CRM-INV , Customer Invoicing , How To

Product

SAP Business ByDesign all versions