SAP Knowledge Base Article - Public

2706296 - Error - Quantity unit code XYZ must be equal to item quantity measure unit

Symptom

Quantity unit code XYZ must be equal to item quantity measure unit .

XYZ represents an example Unit Code.

Environment

SAP Hybris Cloud For Customer

SAP Hybris Cloud For Customer Integration with SAP ERP

SAP Hybris Cloud For Customer Integration with SAP S4H

Reproducing the Issue

  1. Login to Cloud for Customer.
  2. Go to Administrator workcenter.
  3. Open General Settings view.
  4. Click on Webservice Message Monitoring view.
  5. Find and select relevant failed inbound CustomerOrderReplicationIn message.
  6. See the error log.

Cause

In the current inbound sales order payload, the schedule line typecode is set as 2 instead of 1.

Check each <Item> in the inbound payload and verify that it contains a valid <ScheduleLine> with <TypeCode>1</TypeCode>

Resolution

Resolution 1:

Please update your middleware (CPI/PI) mapping to the latest standard version.

Resolution 2:

Check the iDoc sent from the on premise system and verify that it has a Corr_Quantity greater than 0

Keywords

Quantity unit code error, ScheduleLine, CustomerOrderReplicationIn , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , LOD-CRM-INT-CRM , Integration of C4C with CRM , Problem

Product

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