Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
syawariyatapesh
Explorer
Hello Readers,

My requirement was to show Amount with Currency Code in List report (e.g. 25 USD), So I have followed this approach. I hope, its helpful for others too.

I assume that you are aware of basics of SAP oData services.

While creating your oData service, Make changes in data model as mentioned below

  1. Define the semantics “currency-code” in the property where you will pass currency code (for me it is “CurrencyCode”).



 

  2. Assign the currency property in “unit property name” of Amount property. (I have assigned it into “Amount”).


 


Generate runtime artifacts and redefine the GET_ENTITYSET method.

You can notice “unit” and “semantics” in metadata.


 

Annotations -


 

Final Output -


 

We saw "How easily we can show Amount with currency code in List Report".
In the similar way we can show unit-of-measure too.

Happy learning 🙂

 

Thanks,

Tapesh Syawariya
Labels in this area