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.

Former Member
0 Likes
486

hi,

i have a doubts in smart form.I want to print the decimal value(0.00)..

i defined..

data it_val type p

i am not getting decimal value , its printing 200 not 200.00

if i want to print with decimal which data type i have to define.pls suggest me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
472

Hi Thanuskodi,

You need to declare it as

data: it_val type p(4) decimals 2.

It will allocate 2 digits for decimal values.

<b>Reward points for helpful answers.</b>

Best REgards,

Ram.

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
472

Hi

Use Character Fields in Smartform to Print any Decimal Values.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
472

Hi

specify

data it_val type p decimals 2.

Read only

Former Member
0 Likes
473

Hi Thanuskodi,

You need to declare it as

data: it_val type p(4) decimals 2.

It will allocate 2 digits for decimal values.

<b>Reward points for helpful answers.</b>

Best REgards,

Ram.

Read only

0 Likes
472

hi all,

I have to define in global definition, there ican't define it_val type p decimals 2 value 0 like that..

there i can define it_val type p only..

i defined this way its not displaying decimal value it printing 200 not 200.00.