SAP Knowledge Base Article - Public

3513117 - KUT field Type Number Allows Decimal Entry Despite Selecting "0" in "Decimal Places" While Creation

Symptom

KUT field of type number allows and accepts numbers having decimal entry despite selecting "0" in the decimal places while creating the field

Environment

SAP Cloud For Customer

Reproducing the Issue

1. Login to C4C.

2. Adapt any view and create a new Field.

3. Select type "Number". 

4. Enter "0" in the decimal places field and click save.

5. Now try to add a number with decimal values into this field (eg 3.14).

6. Notice that no error is thrown and the field is saved successfully.

Cause

The "0" entered in decimal places here indicates that the number entered in the field can have any number of decimal places without restriction. however entering values like 1, 2 etc will only allow numbers having that many number of digits after the decimal. The example below explains the same.

decimal places - 0 - 3.14444 and so no

decimal places - 1 - 3.1

decimal places - 2 - 3.14

Resolution

This is an expected system behavior

Keywords

KUT Field, Decimal places 0, type number , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , Problem

Product

SAP Cloud for Customer core applications all versions