Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in output display

Former Member
0 Likes
684

Hi All,

I have requirement to display currency field as 17 characters , a decimal point and 5 decimals(total length = 1715 = 23 ).How can I get this.

Any inputs will be rewarded.

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
663

Try using type String.

5 REPLIES 5
Read only

Former Member
0 Likes
663

Hi,

Use edit mask when you have to display the field. Ex. Write field currency curr.

Mireia

Read only

Former Member
0 Likes
663

Hi Ranjan,

do like this

data: dec(11) type p decimals 5 value '12345678901.12345',
      char(17) type c.

char = dec.
write char.

Regards,

Satish

Read only

naimesh_patel
Active Contributor
0 Likes
663

Define like this:

data: amount(12) type p decimals 5.  " <<

amount = '12345678901234567.897874'.

write: amount.

Regards,

Naimesh Patel

Read only

0 Likes
663

Hi,

I tried using p and it was working with write statment. How can I achieve the same result while writing to a flat file

Read only

former_member191735
Active Contributor
0 Likes
664

Try using type String.