Rounding to nearest decimals

Hi all programmers,
I am a FICO functional consultant. I have got an issue that I think and was told that it can be solved by an ABAPer. The issue is described below:
"I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose."
Being a functional person and with no ABAPer's support, I request you guys to please help me from scratch (inclusing which  t.code to use) on solving this issue by changing or creating a programming routine.
<b><REMOVED BY MODERATOR></b>
Thank you,
SONY
Title and Message were edited by:
        Alvaro Tejada Galindo

Hi,
Please try this to create program routine.
DATA: N1 TYPE P DECIMALS 4 VALUE '0.0565',
      N2 TYPE P DECIMALS 2.
MOVE N1 TO N2.
WRITE: N2.
Regards,
Ferry Lianto

Similar Messages

  • Rounding to nearest decimals--VERY URGENT

    Hi all,
    I am encountering a serious production issue. On the FB60 screen when I enter the amounts in the line items and select the the respective tax code, my system calculates the tax amount as $0.06 where as when I calculate on my calculator it is coming up as 0.0565. Because of this my total balance is offsetting by 1 cent ($0.01). I want my SAP system also to round off to $0.0565 instead of $0.06. Is there any way to do this setting. I know I can change the value manually under tax tab. But, there are so many invoices like this and calculating the tax manually and then entering the right decimal value in the tax tab will not serve my purpose. 
    PLease help me with this as it is a very urgent issue.
    I would surely award points for any kind of positive help.
    Thank you,
    SONY

    Hi,
    As far as my knowledge goes SAP bydefault rounds off to 2 digits. If you want any changes in that you will have to take the help of ABAPer and write the routine to change the number of decimal points.
    Regards
    Santosh Hegde

  • Tax (VAT) Amount rounding to nearest rupee.

    Dear Experts,
    When ever we are using and VAT tax code its not rounding the Tax Amount to nearest rupee, when I check the parameters of condition type JIP5 the rounding rule is set to commercial rounding still its not rounding to nearest rupee and as per my understanding its rounding it to nearest 10 paise rather than to nearest rupee.
    So please suggest how to make it rounding to nearest rupee.
    Regards

    hI!
    You cant rounding off for VAT amount for sales and purchases. The difference amount (digits) in sales document or purchase document will be rounded off with condition type matain in pricing procedure. There is no config setting for this rounding off for VAT calculation. If it necessary, you can contact your ABAP developer. Actually you no need to rounding off that VAT figure. You can rounding off the invoice amount to near rupee with condition type in pricing procedure.

  • Rounding to nearest 5 cents

    Hello experts,
    At our client, for XXX currency payments, the amount should be rounded to the nearest 5 cents. For example, 100.02 should be rounded down to 100.00 and 100.03 should be rounded up to 100.05.
    I did the config at OB90, wherein I added the following line:
    COCD XXX 5
    But still, when I create the invoice and run the payment program, the currency is not getting rounded to nearest 5. Does anyone have an idea on what I might be missing down here...
    Please advise!
    N,
    All answers will be duly rewarded.

    From the IMG activity documentation in SPRO for OB90, it looks like this setting will be applicable only to cash discounts.  It says that the amounts you enter into the system (Vendor invoice) should have multiples of 5 after the decimal point (if you specify 5 as the rounding unit) and then the cash discount % calculated will be rounded by the system to 5.
    You will also need to define accounts for cash discount in OBXU.
    Example (from IMG activity documentation)
    For Switzerland, you decide that five centimes is to be the smallest denomination for payment transactions. For Swiss company codes and the Swiss franc, you therefore enter 5 in the "Rounding unit" column. Cash discount amounts are then rounded off to this currency unit. In the case of Swiss franc amounts entered manually, that part of the amount after the decimal point must be divisible by five.

  • WT rounding to nearest $

    I want to be able to add hours to a wage type as well as dollars for the recurring payments. The calculation needs to round up to the nearest dollar.
    I understand That in table T511 I need to put a "+" sign against amount and number both.
    For rounding it to nearest dollar, I need to put "100" as a value in rounding divisor.
    Please let me know if I'm not on correct lines.
    Thanks

    Experts, Any inputs plz....

  • Formula rounding to nearest whole number

    Hello,
    I have created the following formula ( Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads" ) and displayed the results in percentage but it looks to round to the nearest whole number does anyone know why this might happen. Also i am using 2dp in the results i am hoping to get the actual result rounded to 2dp and not the nearest whole number.

    Hi !
    I think that if you add the ROUND function, this will work... :
    ROUND(Metrics."# of Leads Resulting in Won Opportunity"*100 /Metrics."# of Leads", 2)
    Hope this will help, feel free to ask more !
    Max

  • Rounding To Nearest Decimal Place

    Hey Flash Family,
    I am getting the correct output i want but is also giving me
    like 8 numbers after the decimal place...all i want is the numbers
    rounded to the nearest cent meaning only 2 numbers to the right of
    the decimal point....what do i need to add to the current code to
    correct this issue.
    Thanks N Advance

    attach that code to the first frame of your main timeline.
    then anytime you need to change the format of a number like
    _root.how.ROIM.val_tcost use:
    _root.return2DecPlaces(_root.how.ROIM.val_tcost);

  • Rounding to nearest .5

    Hi
    I have a column which holds the byte size of the data row. I would like to round this to the nearest .5
    example
    1.23453 = 1
    1.345 = 1.5
    1.6523 = 1.5
    1.7893 = 2
    Does anyone know how to do this easily without have to cerate an user defined function.
    Cheers
    Gary

    BluShadow wrote:
    Ah, beaten by the young lady with the trombone. ;)
    laughs Flattery will get you everywhere *{;-)                                                                                                                                                                                                                                                                                                   

  • Rounding to nearest Hundred

    Hi,
    I need to round 252476480.00 to its nearest Hundred - 252476500.
    Here is the code which I have
    import java.math.*;
    public class TestBigD {
         public static void main(final String[] args) {
              BigDecimal bd = new BigDecimal("252476480.00");
              BigInteger bi = new BigInteger("0");
              bi = bd.setScale(2, BigDecimal.ROUND_UP).toBigInteger();
              System.out.println(bi);
    Any Suggestions ?
    Regards
    Murali

    Hello
    if you don't need BigDecimal use something like this
    double d = 252476480.00d;
    long toNearestHundred = Math.round(d/100)*100;
    regards
    Franz
    reward points if useful

  • Sales order item quantity not rounded and allowing decimals with UoM EA

    Hi gentlemens,
    I noticed something strange in our SAP ERP system.
    When we enter a material in a new sales order item, we are allowed to enter quantity 1,5 EA (1 and half Each).
    But when I check the config of the UoM EA in table T006, the number of decimals (field DECAN) is 0 and the decimal place for rounding (field ANDEC) is also 0.
    As far as I remember from other other SAP system, there should be an error message when entering the quantity 1,5 EA saying that decimals are not allowed for this unit of measure.
    Can someone help and tell me wich error message or which rounding program should normally be active when entering decimals with uom EA ?
    Thanks and regards,
    BDT

    Hi Mani,
    Thanks for the thread reference. I found the related OSS notes yesterday evening but this was for procurement.
    Here the question I have is more for a sales item.
    The strange case we are facing is:
    In a sales order, we can enter a particular material as a standalone item with a quantity of 1.5 EA without any problem.
    But if we create the same new item as a sub-item of a previous one (filling UEPOS), with qty 1,5 EA, then a rounding is triggered by the system based on the T006 config.
    I am wondering if this is a problem with the SAP standard program or if we did anything wrong in the past in our system?
    Best regards,
    BDT

  • Rounding condtion type decimals

    HI ALL,
    I have a requirement where for eg: Condition type PR00  is with 50.45 it should round off to 50.00
    or if it is 50.95 also inthat case also it should round off to 50.00
    i tried doing rounding rule in conditon type, it is only rounding the decimals
    i dont want any decimals
    Please let me knw if any one has the answer
    Syed

    Hello,
    In transaction V/06 there is a field under header 'Control data1' which can effect how the system rounds off condition values during pricing:
       ->> Rounding rule
           The rule that determines how the system rounds off condition
           values during pricing. The last digit will be rounded.
    Example
    o  In the standard rounding rule '_', values are rounded off according
       to business standards:
       10.454 -> 10.45 DEM
       10.455 -> 10.46 DEM
    o  In rounding rule 'A', values are always rounded up:
       10.459 -> 10.46 DEM
       10.451 -> 10.46 DEM
    o  In rounding rule 'B', values are always rounded down:
       1045.9 -> 1045 LIT
       1045.1 -> 1045 LIT
    Please try using the rounding rule 'B' for your scenario.
    I hope you find this information very helpful and hopefully it will solve your problem.
    Regards,
    Martina McElwain
    SD - Forum Moderator

  • Rounding % to zero decimals

    Hi,
    I have requirement to find the percentage of row(rowvalue/grandtotal). To get this I used pivot table and have taken the values as percentage of row. But in the same the user wants to have zero decimals. Is it possible to round off percentage values in Pivottable?
    Thanks,
    Phani.

    Phani,
    Look at:http://shivabizint.wordpress.com/2008/09/14/changing-the-precession-of-percent-of-columns-in-pivot-table-of-obiee/
    thanks,
    Saichand.v

  • Help with rounding to nearest multiples of n-1 !!

    i need help writing part of a program;
    start with int n, then round ***up*** to the nearest multiple of n-1; then round **this** value up to the nearest multiple of n-2. (the final step is to round up to the nearest multiple of 2)
    eg
    if n=10;
    9 -> 18
    8->24
    7->28
    6->30
    2->34.
    Please help me with this, i'm really not sure where to begin !

    it's a program to do with the approximation of pi;
    so far i have;
    public double pi (int n) {
    double f; (this is the final value of the nearest
    multiple of 2)
    then from here i'm really not sure how to go about
    it..... in other words i haven't gotten very far.Okay. I'm currious as to how this helps in the approximation of PI. Would you mind posting that?
    I'll give you a few hints. The mod operator "%" tells you the distance a number is from the multiple of n immediately bellow a positive number.
    The Math.IEEERemainder function tells you the distance a number is from the nearest multiple of n (whether above or below).
    I'll leave it to you to figure out how to find the nearest multiple ABOVE the number, and how to use that to round the number. It's actually not all that hard.
    - Adam

  • How to  convert 3.16 to 3.20 in tables? Round only the decimals?

    In a recent post mr Trevor wrote a powerful script to round decimals but altering the preceding number:
    23.45 was converted to 23.
    23.78 to 24.
    It is possible to script only the decimals not touching the integer?
    ,03 : 00
    ,06 : 10
    ,14 : 10
    ,18 : 20
    ,71 : 70
    ,77 : 80
    Etc?

    Hi, thank you.
    As numbers are placed on tables, how to apply this script to the whole document?
    It is necessary to make a list?
    Or it may be used with a skeleton like this wrote by Trevor?
    var doc = app.activeDocument;
    app.changeGrepPreferences = app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\d+\,\\d+";
    var myNumberFinds = doc.findGrep(),
          l = myNumberFinds.length;
    while (l--)
            app.changeGrepPreferences.changeTo = Math.round(myNumberFinds[l].contents.replace(/\,/,".")).toString();
            myNumberFinds[l].changeGrep();
     Yes, numbers between ,094-0,99 will afect the integer!
    Thank you.

  • Rounding to nearest half

    Using Crystal 2008 Dev
    Question on rounding,
    I have a formula that displays my running total number, I need to format the 1st decimal.  Basically if I have 2.3 I need that to round up to 2.5, or if I have 2.2 I want this to round down to 2.0.  I have tried many different ways and can't figure out how to do this.
    Any Ideas?
    Thanks,
    Glenn

    Glenn,
    Try using a formula similar to the following;
    numbervar r:= - truncate();
    if r <= .2
    then
    truncate()
    else if r > .2 and r <= .7
    then
    truncate() + .5
    else
    truncate() + 1

Maybe you are looking for

  • Private Key Anomaly

    Hi Gurus, Here is situation, I finding it hard to solve. Any assistnace will be helpful. SSL is a transport level security solution and hence is independent of any application level protocol (where a standard protocol like HHTP, LDAP or non-standard

  • Yep. I have the same problem as all of you! Mini not recognized!

    My Mini was working fine, then it stopped showing up in Windows or iTunes. I have reset it numerous times, put it into disk mode, tried the Windows disk management, etc. The iPod updater will not work of course, since Windows does not even know the M

  • SMTP working IMAP/POP3 not

    Hi, I changed my IP on my 10.5.8 server. I used changeip to do it right and -checkhostname returns the right IP and hostname. I am running DNS, Mail and Web on the server. All services work but mail. Mail starts up and says it is running but POP and

  • How to Get Prebuilt Portlets from OPN

    Hi, I want to get the following or any other prebuilt portlets from OPN, How I can get this and register it to my Webcenter Portal spaces application. https://solutions.oracle.com/scwar/sc/Solution/SCSP-OOWLOBVD.html We are Oracle Gold Partner Thank

  • Motion to FCP - frame size changes a tiny bit??

    I've done about fifty Motion sequences I'm incorporating into an FCP - NTSC DV anamorphic project. The Motion sequences are NTSC DV 'anamorphic' 16-9. I output them as 'uncompressed 8 bit'. I bring them onto the FCP timeline, also 'uncompressed 8 bit