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

Quantity rounding off

Former Member
0 Likes
2,657

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
Read only

Former Member
0 Likes
952

Hi Supriya,

Please check this link

CATSXC_ROUND_QUANTITY

Best regards,

raam

Read only

Former Member
0 Likes
952

Hi,

Use the FM 'ROUND'...

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

Reward if useful

Regards

Shiva

Read only

Former Member
0 Likes
952

simply use FM - ROUND

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

Read only

Former Member
0 Likes
952

Hi,

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

For example:

CEIL( quantity ).

FLOOR( quantity ).

Read only

Former Member
0 Likes
952

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

Read only

Former Member
0 Likes
952

Hi

Go through the link given below :

Hope it will solve your problem.

With Regards

Nikunj shah