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

Re: problem with quantity field in print program

Former Member
0 Likes
365

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

2 REPLIES 2
Read only

Former Member
0 Likes
333

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

Read only

Former Member
0 Likes
333

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