Skip to content

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

@carlonnheim

Description

@carlonnheim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions