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

problem with quantity field in script

Former Member
0 Likes
604

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

regards

shankar

5 REPLIES 5
Read only

Former Member
0 Likes
558

check this:

Number of Decimal Places

A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.

Syntax

&symbol(.N)&

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
558

Hi Shankar,

Round the values before passing only to the sap script.

It is recommanded that you should not write much processing in reporting tools.

Reward if useful.

Read only

Former Member
0 Likes
558

Hi,

Try giving zero decimals option..

&EKPO-MENGE&(.0) -> 1,235

Thanks

Naren

Read only

Former Member
0 Likes
558

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

Read only

0 Likes
558

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