SAP Knowledge Base Article - Public

1909534 - Error: “Enter the unit of measure for the specified quantity”

Symptom

While performing an activity in the UI, you receive the below error although you did not manually make changes to a quantity:

"Enter the unit of measure for the specified quantity."

Environment

  • SAP Business ByDesign
  • SAP Cloud for Customer
  • SAP Cloud Application Studio

Reproducing the Issue

Prerequisites:

  • You have created a Custom Business Object or Extension Business Object.
  • You have implemented a custom script which modifies a Quantity attribute.

Cause

In the Cloud Application Studio, you have made changes to a Quantity field / extension field but while filling the attribute, you are filling only the content part and not the unit code part (Unit of Measure). This script then causes the extensibility layer to raise the error.

Resolution

Please adjust the custom logic and include the Unit of Measure (UoM) value in the script also.

Keywords

SDK, PDI, absl, UoM, unit of measure, script , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions