cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with display of decimal places

Former Member
0 Kudos

Hi,

In our custom built components we are facing a strange issue with the display decimals where the data type of an element is "QUAN - Quantity field, points to a unit field with format UNIT".

If the element has a value of 3000.000 KG the value is displayed as 3000. Where as for an element which has a value 3000.123 KG the same is displayed as it is with the decimals. We tried to resolve the issue by using Text editor or Input field as read only but in vain. The display property in the context are set to default.

If we change the element data type reference to "Dec - Counter or amount field with Comma and Sign" then all the values are displayed with the decimal places even if decimals are zero.

As a result we are facing alignment issues for the various quantity related elements displayed on the screen. To change the underlying data type of the element is a not a solution for us as the data type quan is required for conversion from one unit to another unit.

Can someone please advise how we could resolve this issue. We are on NW 7.0 + EHP4 + NW 7.01 SP4, kernel patch level 55 for 7.01

Regards

Rohit Chowdhary

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It's not a pretty solution, but depending on how you are displaying the data, couldn't you assign the value from your QUANT field to a DEC field so that the decimals always show?

Assuming you aren't doing any calculations with the value after, it could work.

Former Member
0 Kudos

Jameel, Thanks for the answer but this is a not a solution for us. We have around 40-50 webdynpro components and with mutliple views referring to this data element / domain combination. More so the context are bound to database tables / structures .

I hope to get a reply from Thomas on possible solution for this. I am not sure if I can open an support ticket for this issue.

Rohit Chowdhary