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

data type for printing decimal values

Former Member
0 Likes
859

hi experts,

what is the data type to print decimal values.

i need to take a value like 23.500 means which data type i can specify during creating a structure.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
829

Hi,

You can use kval. for printing decimal values.

Reward if helpful

Regards

Azad.

hi experts,

what is the data type to print decimal values.

i need to take a value like 23.500 means which data type i can specify during creating a structure.

5 REPLIES 5
Read only

amit_khare
Active Contributor
0 Likes
829

Declare type P or Type DEC.

Read only

Former Member
0 Likes
829

declare it as TYPE P DECIMALS 3

<b>DATA : V_DEC TYPE P DECIMALS 3.</b>

Read only

Former Member
0 Likes
830

Hi,

You can use kval. for printing decimal values.

Reward if helpful

Regards

Azad.

Read only

varma_narayana
Active Contributor
0 Likes
829

Hi..

Eg:

data: Var1 type p decimals 3 value '123.456'.

write:/ var1.

Note: In DDIC the Data type is DEC

<b>

Reward if Helpful.</b>

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
829

Hi,

You can use FLTP or DEC.

Regards,

Sesh