‎2007 Apr 25 8:54 AM
Hi,
Any function Module is there which converts the Qty (If it has fraction ) to the nearest value.
EX: if the Qty value is 2.789, it has to return the value 3.
Thanks in advance
‎2007 Apr 25 8:56 AM
Check <b>ROUND</b> FM
You can do this way too
data: l_1 type i, l_2 type p decimals 2.
l_2 = '1.78'.
l_1 = FLOOR( l_2 ).
l_1 = l_1 + 1.
write: l_1.
or
Use CEIL function to get the result.
Go through this link for more details.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm
Reggards,
Santosh
Message was edited by:
Santosh Kumar Patha
‎2007 Apr 25 8:58 AM
You can use the statement CEIL, it's not a function module actually.
A = Ceil( B ).
regards,
Hans
Please reward all helpful answers !!!!!
‎2007 Apr 25 9:00 AM
Hi Sree,
Check these Function Modules,
ROUND_AMOUNT
ROUND_WITH_PARAMETER
ROUND
ROUND_DATE
Try to use Floor and ceil also,
Regards,
<b>Ramganesan K</b>.
‎2007 Apr 25 9:09 AM
Hi,
For Quantity rounding, you can use the Function module COS6_QUANTITY_ROUND. You need to specify the unit of measure here.
Regards,
Sharmila
‎2007 Apr 25 9:22 AM