on 2025 Apr 16 12:24 PM
Hello SAP Community,
We are having a Node.js CAP application connected to HANA Cloud DB.
There is a view that fetches some information from the table, it is exposed as an OData service as per the standard CAP functionality.
We've noticed that after the CDS npm package version was upgraded to version 8 - view attributes with type "Decimal" are now returned as Strings and formatted as in the screenshot below:
CDS Version 6.8.4:
CDS Version 8.5.0:
Calling the view directly in the database returns correct results( DECIMAL value).
No changes were done to the view, and no transformations are applied to the returned value, only version of the cds package had changed.
Has anybody else encountered similar issues? Perhaps this is a side effect of some changes in cds package/ CAP framework?
Any assistance would be appreciated 🙂
Best regards,
Alex
Request clarification before answering.
Long story, there are some other blog posts about it. Short version: Use Double instead of Decimals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.