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
SAP S/4HANA Cloud
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.
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.
Calculation , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem