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.

Similar Messages

  • 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);

  • 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.

  • 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 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

  • 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

  • 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

  • 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

  • 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

  • Format variable using bind in a flash format form

    Greetings
    All though seems like a simple question, I seem to be missing something here. I have a form (in flash format) that calculates a value when a form item is selected. The value is actually a dollar value. I output the variable value in a cfformitem but I con't figure out how to diplay it as a dollor value, moreover, a value with trailing zeros when the value is a full dollar.
    For example:
    The amount $1.00 displays as 1 (I add the dolloar sign)
    or $23.80 displays as 23.8
    Code below:
    <cfif 
    IsDefined("Form.Submit")>
    Total Cost:
    <cfoutput>#form.TotalCost#</cfoutput><br />
    </cfif> <cfform  format="flash"><cfformitem 
    type="script">
    var charge = '';
    var p1 = 40.50;
    var p2 = 29.75;
    function cost():Void
    charge = 0;
    // share price
    if (specialneeds.value==true) {
    if (Session1.value==1) {
    charge = (charge + p2);
    if (Session2.value==1) {
    charge = (charge + p2);
    if (Session3.value==1) {
    charge = (charge + p2);
    // double price
    else {
    if (Session1.value==1) {
    charge = (charge + p1);
    if (Session2.value==1) {
    charge = (charge + p1);
    if (Session3.value==1) {
    charge = (charge + p1);
    }</cfformitem> <cfinput type="checkbox" label="Sharing?" name="specialneeds" value="true" checked="No" onClick="cost()" />
     <cfinput type="checkbox" label="Day 1" value="1" name="Session1" onClick="cost()" id="Session1" />
     <cfinput type="checkbox" label="Day 2" value="1" name="Session2" onClick="cost()" id="Session2" />
     <cfinput type="checkbox" label="Day 3" value="1" name="Session3" onClick="cost()" id="Session3" />
     <cfformitem bind="Total Cost: ${charge}" style="color:red;" type="text"></cfformitem>
     <cfinput type="hidden" id="TotalCost" name="TotalCost" bind="{charge}" />
     <cfinput type="submit" id="sumbit" name="submit" Label="Submit" value="Submit" /></cfform>
    Any ideas how I can get around this?
    Thanks for any input.

    Awesome, Thank You BKBK!
    Since I call this function several times, I just had to add:
    integerPart = 0;
    decimalPart = 0;
    decimalPartWithoutPoint = "0";
    At the beginning of the function. Commented code below for future reference.
    <cfif  IsDefined("Form.Submit")>
    Total Cost:<cfoutput>#form.TotalCost#</cfoutput><br />
    </cfif> <cfform  format="flash"><cfformitem 
    type="script">
    var charge = 0;
    var charge2 = 0;
    var integerPart = 0;
    var decimalPart = 0;
    var decimalPartWithoutPoint = "0";
    var p1 = 40.50;
    var p2 = 29.75;
    function cost():Void
    charge = 0;
    integerPart = 0;
    decimalPart = 0;
    decimalPartWithoutPoint = "0";
    // share price
    if (specialneeds.value==true) {
    if (Session1.value==1) {
    charge = (charge + p2);
    if (Session2.value==1) {
    charge = (charge + p2);
    if (Session3.value==1) {
    charge = (charge + p2);
    // double price
    else {
    if (Session1.value==1) {
    charge = (charge + p1);
    if (Session2.value==1) {
    charge = (charge + p1);
    if (Session3.value==1) {
    charge = (charge + p1);
    // Charge amount * 100, round the value to nearest whole number (cents now become dollars) and rounds to nearest cent
    charge=Math.round(charge*100)/100;
    charge2=Math.round(charge*100)/100;
    // get the closest integer that is less than or equl to the charge amount, or the dollar value
    integerPart = Math.floor(charge);
    // get the total number of cents from the transaction
    decimalPart = charge - integerPart;
    // this converts the decimalPart to a string if it is not a zero
    if (decimalPart != 0) decimalPartWithoutPoint = decimalPart.toString().split(".")[1];
    // this takes the interger & decimal values, converts it to a string then adds a "0" to the string
    if (decimalPart == 0 || decimalPartWithoutPoint.length == 1) charge = integerPart.toString() + "." + decimalPartWithoutPoint + "0";
    //var myAlert = mx.controls.Alert.show("Charge2 = " + charge2 + "\nIntegerPart = " + integerPart + "\ndecimalPart = " + decimalPart + "\nCharge = " + charge, "Math Information", mx.controls.Alert.OK, this);
    //myAlert.show;
    }</cfformitem> <cfinput type="checkbox" label="Sharing?" name="specialneeds" value="true" checked="No" onClick="cost()" />
     <cfinput type="checkbox" label="Day 1" value="1" name="Session1" onClick="cost()" id="Session1" />
     <cfinput type="checkbox" label="Day 2" value="1" name="Session2" onClick="cost()" id="Session2" />
     <cfinput type="checkbox" label="Day 3" value="1" name="Session3" onClick="cost()" id="Session3" />
     <cfformitem bind="Total Cost: ${charge}" style="color:red;" type="text"></cfformitem>
     <cfinput type="hidden" id="TotalCost" name="TotalCost" bind="{charge}" />
     <cfinput type="submit" id="sumbit" name="submit" Label="Submit" value="Submit" /></cfform>

  • Rounding off to nearest decimal point

    i have these values
    35.2
    35.3
    35.4
    35.5
    35.7
    35.8
    35.9
    36.0
    i am looking for indexes closet 35.74 in my array. (which is index 4.)
    i used the "round to nearest" function and it gave me 36.
    which is index 7.
    what other ways to get the right index?
    Solved!
    Go to Solution.

    You will always have some difficulties with rounding to a specific number of digits after the decimal point because of the way numbers are represented in binary. When expressed in binary 0.1 is an infinitely repeating expression. Regardless of the display the internal representation of the number always uses the maximum resolution for the data type (8 bytes for DBL).
    So you need to be very careful to define exactly what you  want. If you have an array of values (regardless of the way they are displayed) Then you can find the closest to a Test Value by subtracting Test Value from the array and finding the minimum of the absolute values of the differences.
    Note that in the image below the same values are in Array and Array 2 with the display on Array 2 set for 20 siginficant digits. 
    Lynn

  • Rounding in Incoming Payment

    I have a bit of a problem I hope someone cna help me with
    in Administration > General Settings > Display I set both amounts and Prices to 5
    In Documents settings I set the rounding to be Currency not Document.
    In AP Invoice Entry,  I have the ability to round the total of an Invoice to whole cents (US Dollars)
    My problem comes with the AR Invoice.  First I can not round the total of an Invoice,  and when I try to apply a payment,  the payment leaves a fraction of a cent open on the invoice or puts the remainder on account.
    How do I get and AR invoice to round to whole cents or get the fraction of a cent applied to a rounding account in Incoming Payments?  I see a rounding field in Incoming payments but there is no way to put an amount in the field. In form settings for the Incoming payments,  I am not able to activate the field
    I appreciate any help in advance
    Thanks
    Dana

    Hi,
    You can check Note no. 662600 regarding the Calculation of the Rounding field in A/R and A/P documents on the Service Market Place.
    Also, in the Payments, the under/over payment option can be a solution for the part of the nominal amount left.
    Hope it helps.
    Regards,
    Jitin Chawla

  • Rounding of AP AWT Invoices

    The Automatic Withholding Tax is set to calculate AWT Invoice at the time of Payment. The Client wants the amount to be deducted in Whole Numbers (Rounded to nearest Dollar). E.g. if the Invoice is for $710 and the Tax Rate is 3.5% the tax to be deducted should be $25 (not $24.85).
    Invoice = $710
    WHT = $25
    Payment = $685
    AWT Invoice = $25
    Is there anyway possible to acheive this?
    - R12.1.2
    - Linux x86 64
    Thanks & Regards.

    Hi All,
    Although a functional option is discussed in this thread, here is a technical detail.
    AP_CALC_WITHHOLDING_PKG calculates amount. In it, for instance for this sample following statement is run.
    SELECT ap_utilities_pkg.ap_round_currency(710*3.5/100, 'EUR')
    FROM dual;
    It returns 25.84 because it checks select FC.minimum_accountable_unit, FC.precision
    from fnd_currencies FC
    where FC.currency_code = 'US';
    and rounds it. So to me, if there is n functional solution found, since you cannot change precision only for AWT, it's better customize AP_CALC_WITHHOLDING_PKG to call a custom rounding for AWT.
    Hope this guides.
    Bilal Sarioz

Maybe you are looking for

  • Convert higher bitrate to 128aac ERROR

    If I check the option to convert to 128kbps aac and try to sync my iPhone 4 (4.3.3) the sync will freeze giving me a pletora of errors after a few songs. Then I will have to set the iPhone as a new iPhone in iTunes and re-sync everything once. If I s

  • Can Someone Recommend a Path?

    I thank everyone who might take the time to reflect on my question and answer in advance, and please pardon the newbie perspective. I'm a publisher, know how to make ebooks in InDesign with multimedia. Is there a work path that will let me design my

  • Can I use Java Card Development Kit 2.2.1 on Windows XP?

    Can I use Java Card Development Kit 2.2.1 on Windows XP? If no, which kit supports XP?

  • Architectural considerations on WLPS JSP tags

    Hello, I'm now looking at the WLPS (2.0) examples, more specifically to the BuyBeans example. I have experience in developping web applications using J2EE (servlets-jsp-ejb). Something in the bean example is very disturbing to me : I've always tried

  • Headstart Foundation (qfd0000f) fails with FRM-92101

    We are migrating all software (rdbms, ias, designer, headstart, cronacle) to new servers. While testing the Headstart url's the Headstart Foundation crashes with a FRM-92101. Headstart Administration and Utilities work fine. In the Java-console the f