cancel
Showing results for 
Search instead for 
Did you mean: 

Format decimal

Former Member
0 Kudos

Hi,

I have a rfc-function returning a date as a decimal from SAP CRM which I don't want to rewrite.

All I want to do is display it in a table, but with a sensible formatting, right now it, obviously, shows as 20 050 111 instead of 2005 01 11.

I have tried making a simple type "MyDecimal" with the builtin type decimal and a format string according to DecimalFormatter and then changed the simple type of the correspondning attribute in rfc-funktions structure.

What happens is that the table column looses its header text, which I figure means it's picking up my new simple type, but it still formats the decimal after my browsers locale. Is there a way i can make it use the format from MyDecimal?

I have tried looking at even though it's not the same scenario.

Kind Regards

Mattias

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1. Create read-only (if you only displaying it) calculated attribute with your customized simple type "MyDecimal"

2. In generated getter function return original value

3. Bind your table column editor to this attribute

Also could you post format string here? Probably it contains errors.

VS