Application Development 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: 

Problem in output display

0 Kudos

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

former_member191735
Active Contributor
0 Kudos

Try using type String.

5 REPLIES 5

Former Member
0 Kudos

Hi,

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

Mireia

Former Member
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

Define like this:

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

amount = '12345678901234567.897874'.

write: amount.

Regards,

Naimesh Patel

0 Kudos

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

former_member191735
Active Contributor
0 Kudos

Try using type String.