SAP Knowledge Base Article - Public

3213096 - Custom CDS Views: Expression type ATOMIC_VIA_PATH not allowed in function GET_NUMERIC_VALUE, parameter 1

Symptom

You are using Associated Data Source elements with the combination of function GET_NUMERIC_VALUE or CURR_TO_DECFLOAT_AMOUNT in calculated fields.

Checking custom CDS view throws error:

Expression type ATOMIC_VIA_PATH not allowed in function GET_NUMERIC_VALUE, parameter 1

Environment

SAP S/4HANA Cloud

Cause

Due to some technical restrictions, it is currently not allowed to use the Associated Data Source elements with the combination of  GET_NUMERIC_VALUE or CURR_TO_DECFLOAT_AMOUNT in calculated fields.

Resolution

Workaround for now: 

1. For the associated data source in your case, create another custom CDS view and use that data source as primary Data Source

2. Add the calculations there and publish the view

3. Use this View as associated data source and use the fields directly

 

A fix for this technical issue will be delivered in future releases.

Keywords

Calculation  , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud 2202