Skip to Content
0
Former Member
Feb 26, 2011 at 05:27 PM

Decimal Field Display Format

61 Views

Hi All,

I need to display a total value i.e. decimal field with $ as prefix and using decimal notation. i.e. if the total value is 10000 then i should display as $10,000.00. If i use display pattern as $9999.99, this pattern does not work if the amount exceeds 9999.99.

I kept the below code to achieve this in code initialization.

g_netwr is total value

l_netwr(20) type c.

l_netwr = g_netwr.

concatenate $ l_netwr into l_netwr.

How can i add Decimal notation i.e ',' . I tried for fms to convert a char into p type. Please let me know how to do this.

Thanks,

Kumar