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: 

problem with quantity field in script

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Try giving zero decimals option..

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

Thanks

Naren

Former Member
0 Kudos

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

0 Kudos

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