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: 

Truncating decimal places in smartfroms

Former Member
0 Kudos

Hi

My requiremnent is that I have a quantity value printed in a smartform. The value comes as 100.000 but i only want 100 to come.

How can this be done in a smartform

1 ACCEPTED SOLUTION

Former Member
0 Kudos

check

<b>&variable(.0)&</b>

it works in sap script.

6 REPLIES 6

Former Member
0 Kudos

In the program itself declare a variable of type i and move the p values into it.. Or u can do the same in smartforms!!

Former Member
0 Kudos

check

<b>&variable(.0)&</b>

it works in sap script.

0 Kudos

hi KISHNAN

(.0) is not working inside the table loop for displaying the item weight's

is it dependant on font?

any solutions?

regards

kishore

0 Kudos

loop ?.. where r u using it....

how u use loop command in sap script to print.????

i think it is not working in programm it is simple command used in form.

0 Kudos

Hi

It's in the smartform.

regards

kishore

0 Kudos

A program symbol of one of the data types DEC, QUAN and FLTP can

contain decimal place data. This option overrides the Dictionary

definition for the number of decimal places to format this symbol