cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori sample report, don't display currency code

YW
Explorer
0 Kudos

Hi Expert

For a sample Fiori report (generated from CDS view), for the amount fields, we only need display the amount, don't need display corresponding currency code. how to implement it?

for example above image, we only need display 1,584.00, don't need display the 'USD'.

thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
Active Contributor

Hi Feng,

I assume in your CDS view (or underlying CDS view), there are annotations like below.

...
@Semantics.amount.currencyCode: 'CurrencyCode'
NetPrice, 
@Semantics.currencyCode
CurrencyCode,
...

If you don't want to display currency along with Net Price, just remove @Semantics.amount.currencyCode annotation.

YW
Explorer
0 Kudos

Hi Mio

thank you for your reply.

you are right. I have annotation '@Semantics.amount.currencyCode' before field 'NetPrice'.

because there is currency code are 'JPY', I want to display the amount that currency is JPY from internal format to external format.

if I remove @Semantics.amount.currencyCode, I think there isn't conversion from internal to external.