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: 

Quantity rounding off

Former Member
0 Kudos

HI All,

I want to print output in smartforms with the following format.

Quantity is given e.g. like 2.00

and i want its in integer format.

so can i use function module to round the quantity,if any please let me know.

thanks in advance,

Supriya.

6 REPLIES 6

Former Member
0 Kudos

Hi Supriya,

Please check this link

CATSXC_ROUND_QUANTITY

Best regards,

raam

Former Member
0 Kudos

Hi,

Use the FM 'ROUND'...

This will suit your requirement...Pass the correct types to the FM

Reward if useful

Regards

Shiva

Former Member
0 Kudos

simply use FM - ROUND

give sign as 'X' . This will work for quantity of any length

Former Member
0 Kudos

Hi,

We have mathematical functions like CEIL(Variable) or FLOOR(Variable). Try this.

For example:

CEIL( quantity ).

FLOOR( quantity ).

Former Member
0 Kudos

Hi,

Declare the quantity field as type p decimals 0.

Hope this helps you.

<removed_by_moderator>

Thansk & Regards,

Y.R.Prem Kumar

Edited by: Julius Bussche on Jul 10, 2008 11:59 AM

Former Member
0 Kudos

Hi

Go through the link given below :

Hope it will solve your problem.

With Regards

Nikunj shah