Skip to Content
0

Decimals Issue in FIORI List Report

Feb 20 at 05:45 PM

23

avatar image

Hello,

I have created a FIORI list report using the ODATA service generated by HANA CDS views. The amount field displays three decimals though the back end field is packed(15,2). I believe this has to do with the way CDS Entity exposures are created via SADL framework.

The framework sets the amount field as Edm.Decimal with precision and scale(16,3). since this is SADL generated entity type I'm unable to change the precision and scale.

Please advise on how we can display amount field in the same format as in backend.

Thank You,

Kabir

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Kabir Siddarth Feb 21 at 04:23 AM
0

I was able to fix this problem by setting the property of the amount field in the MPC_EXT class DEFINE method using the set_precision method.

Share
10 |10000 characters needed characters left characters exceeded