docs icon indicating copy to clipboard operation
docs copied to clipboard

Clarify the @Semantics.amount.currencyCode and @Semantics.currencyCode capabilities

Open carlonnheim opened this issue 9 months ago • 1 comments

Hi,

The https://cap.cloud.sap/docs/advanced/odata#currencies-and-units-of-measure section documents how to use the @Semantics.amount.currencyCode and @Semantics.currencyCode capabilities to get analytical list reports working with currencies and units of measure.

I suggest to clarify the statement "The CAP Java SDK exposes all properties annotated with ..." so it explicitly states that this is not supported in the Node.js runtime.

Is it on the roadmap to add the same capability to the Node.js runtime? For our project purposes we are now constructing a patch amending @sap/cds/libx/odata/parse/afterburner.js so it will fetch the min and max of the currencyCode and then add handlers in the service to tweak the responses so they follow the same pattern as the Java runtime does. That will solve the problem for us, but it would be great to see this supported in the official Node.js runtime?

Thanks in advance! //Carl

carlonnheim avatar May 14 '25 14:05 carlonnheim

Hi @carlonnheim ,

thanks for opening this issue. We're looking into your feedback and get back to you.

All the best, René

renejeglinsky avatar May 15 '25 19:05 renejeglinsky

HI @carlonnheim,

this is now also supported by the node runtime since cds version 9.3.0. Docs to be updated soon.

Best, Johannes

johannes-vogel avatar Oct 28 '25 08:10 johannes-vogel