SAP Knowledge Base Article - Public

2934267 - Dump when assigning a value to an extension field of type DecimalValue

Symptom

You observe a dump with either the below error:

  • Overflow in the operation
  • Overflow converting from X

redacted dump analysis.png

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

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

Reproducing the Issue

Attempt to save a value to a field of type Decimal value that exceeds their length.

Cause

Fields of Type 'Decimal Value' by default are restricted to 7 digits with a limit of 2 decimal places within that.

Resolution

  1. An annotation will need to placed on the creation of the PDI extension field of type DecimalValue to allow a value greater than the default decimal value restriction.
  2. This annotation cannot be added to the field once it has been deployed - not even through a patch. A new field will need to be created with the annotation.
  3. In the below example, it can be see that the element num_flag is restricted to 7 digits with 2 decimal places by default where CalAmount has annotation added that allows 16 digits with 6 of those as decimal place digits.

Code.png

Keywords

Overflow in the operation, Extension Field, dump, SDK, PDI , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem

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 2005