‎2007 Jun 21 6:45 AM
Hi iam getting output as 7.3 6.4 in quantity field. i want output as 6 if it is less than 6.5 7 if it is more than 6.5 . i want to change in print program
regards
shankar
‎2007 Jun 21 6:55 AM
Hi
In the print program use the following one of the Maths functions to make that Qty field, and move it to a TYPE I field
<b>abs</b> -Absolute value of the argument arg
<b>sign</b>- Plus/minus sign of the argument arg: -1, if the value of arg is negative; 0 if the value of arg is 0; 1 if the value of arg is positive.
<b>ceil</b> -Smallest integer number that is not smaller than the value of the argument arg.
<b>floor-</b> Largest integer number that is not larger than the value of the argument arg.
<b>trunc</b>- Value of the integer part of the argument arg
<b>frac-</b> Value of the decimal places of the argument arg
Reward points for useful Answers
Regards
Anji
‎2007 Jun 21 6:58 AM
check your prev thread also there i have already replied just check it whether it work or not
then do it like this...
declare a new field with type i in your itab.
loop at itab.
itab-new = abs( itab-old )."itab-old contains the decimal value...
modify itab." or here you can use the write form also. with the itab-new value in layout
endloop.
regards
shiba dutta