Rounding decimals

Dear all,
Is there any way to restrict the Signed data decimal to 2 places? We have decimal formatted in the BPC Excel front end. But this doesnt stop data from Input schedule restricted to 2 decimal places in fact table.
Some users wrongly enter data with more than two decimal places in input schedule. Although such data is rounded off in the excel front end view, it doesnt get rounded in the fact table. We have issue when we try to extract such data using custom SSIS. We have option to round off at the time of extraction using custom SSIS. But when we extract huge data records, there are some reconciliation differences due to rounding. So the BPC data and extracted data differs. Is it possible to round the data at face table level?

Hi Lokesh,
We also have the same requirement.  No decimal places required.  I had done the changes to include SIGNED_DATA_FORMAT to 13.0, and have rebuilt the indexes on the Consolidaiton Cube. However it still doesn't work as expected.
When I run currency conversion, the coverted values still shows decimal places.
Are we missing any step here?
We are on BPC 10NW SP05.
Please suggest.
Regards,
Rashmi

Similar Messages

  • [JS][CS5] rounding decimals in swatch values

    Hello again,
    I recently made this script to round decimals in the swatch values if there were any. I'm pretty new to JS so this probably isn't the prettiest code so I was wondering if someone had a better way of doing it.  This works, but sometimes it takes a while and I'm pretty sure it is looking at the [paper], [black], and other swatches that can't be changed.  That is why I made it skip the errors during the script...
    function round(color) {
        try { color.space = ColorSpace.cmyk;
        var vals = color.colorValue;
        for (var j = vals.length - 1; j >= 0; j--) {
            vals[j] = Math.round(vals[j]);
        color.colorValue = vals;
    } catch (err) {}
    if (app.documents.length > 0) {
            var target = app.documents[0];
        } else {
            var target = app;
    var myColors = target.colors.everyItem().getElements();
    for (var j = myColors.length - 1; j >= 0; j--) {
        round(myColors[j]);
    alert("Swatches Rounded");
    Any help is appreciated.

    Same bug in ESTK 3 / CS4.
    The data browser definitely has a problem in displaying object properties whose name starts with a (recurring) digit. The issue is not related to property names that could contain a space character —which is not forbidden! Curiously, it seems that the bug only occurs with digits greater than 1.
    Compare:
    var obj = {
         "0a": null,
         "00b": null,
         "1a": null,
         "11b": null
    // The data browser properly displays all obj properties
    and:
    var obj = {
         "2a": null,
         "22b": null,
         "5a": null,
         "55b": null
    // The data browser only displays obj['5a'] and obj['5b']!
    Note that this is not an internal ExtendScript bug. In all cases the object is properly set, the for...in loop works fine and obj.__count__ returns the correct number of enumerable properties.
    Conclusion: ESTK sucks!
    @+
    Marc

  • No rounding decimals

    Hi,
    i am using currency(ZCURR) field.
    which is upto 2 decimals.
    after calculation in currency(ZCURR) field data is comming wotih rounding.
    also i tried with PACKED decimals upto 2
    still it rounding off as i wnat actual value upto 2 decimals
    Ex: ZCURR type VABAK-netwr.
    ZCURR = '2331.437'.
    write : ZCURR
    result : 2331.44  but i want at output "2331.43".
    please help.

    Hi,
    Try below
    SPRO->Sap customizing guide->sap netweaver->general setting->currencies->set decimal places for currencies
    Surendra Jain

  • Rounding decimals using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi all.
    I am having no luck get values to round in FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.  I have managed to get them to round in REUSE_ALV_GRID_DISPLAY by setting DECIMALS_OUT to a value of 0.
    Any help would be very much appreciated.
    Anthony

    Hi Anthony,
    <b>1</b>.
    If DECIMALS_OUT is working properly for REUSE_ALV_GRID_DISPLAY,it should work for REUSE_ALV_HIERSEQ_LIST_DISPLAY.Becoz there is no difference between two fieldcatalogs .
    <b>Thanks,
    Venkat.O</b>

  • Script / Calculation to round decimals?

    Hello all,
    I'm building a form to look at the cost of replacing lightbulbs over time, based upon the average life of the lightbulb and average annual operating hours. Normally, I can find this by dividing bulb life over bulb use and multiplying that by the replacement cost, which works fine for our use if you're replacing lightbulbs at least once a year. However, we have lightbulbs that can burn continuously for 5 years, and since you can't by 20% of a lightbulb, I really cant get away with averaging the cost because it's not a true expenditure of money.
    So what I'm looking for is a script or calculation that will round "X" (the field in question) to the lowest whole number. When X = 1 that would mean the lightbulb has burned its life hours and would need to be replaced. In that case I can multiply that rounded result by the price and I should be ok.
    Basically;
    if "X" is greater than 0 or 1, it would round it to 0, even is X is actually .95.
    ANY help I can get on this would be very much appreciated! Thanks

    You can use the Math.floor method. For example:
    var x = 0.95;
    var y = Math.floor(x);
    app.alert(y);  // Shows 0
    If you need more help with creating a custom format/calculate/validate script that does this, post again an include more details about how you want the form to behave.

  • Using a toString() method to round decimals

    I've been working on this project for school, building a class which models cartesian coordinates and can also convert them to polar coordinates. After much work I have a working product with some time to spare. Theres a small amount of extra credit to be gained if i can use toString() methods to manipulate my results to be exactly to two decimal places.
    I've been looking at the api documentation, which is what my teacher suggested, but its a little tough for a rookie like me to wade through. A point in the right direction or any help would be greatly apreciated.
    Thanks in advance

    I understand, I just dont want yall to feel like youre doing all the work for me.
    Anyways i searched google and using what i saw on this site
    http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Tech/Chapter05/decimalFormat.html
    adapted what i could to my class and came up with this
    String fmt = "0.00";
      DecimalFormat df = new DecimalFormat( fmt );
      String str_x = df.format(x);
      String str_y = df.format(y);
      public String toString()
        return "( " + str_x + ", " + str_y + " )";
      }x and y are the instance variables im using for my class: Coord
    when i try to compile i get these two error messages:
    Coord.java:133: cannot find symbol
    symbol : class DecimalFormat
    location: class Coord
    DecimalFormat df = new DecimalFormat( fmt );
    ^
    Coord.java:133: cannot find symbol
    symbol : class DecimalFormat
    location: class Coord
    DecimalFormat df = new DecimalFormat( fmt );
    ^
    I assume these errors mean my syntax is off but hopefully im headed in the right direction.

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

  • Is it possible to easily view the actual (not displayed) value of a cell?

    Is it possible to easily view the actual value of a cell calculated by a formula, not the displayed value after it has been rounded off?
    For instance, if you enter the number 1.23456789 and display it rounded to 3 decimal places, you can still see the full, actual value in the formula bar:
    The problem arises when you reference that number in a formula: you can't see the underlying value (even though it's obviously known to Numbers):
    Is there a way to get the formula bar (or a tooltip) to show the full, unrounded value? Changing the display to more decimal places is not very convenient, especially on big spreadsheets. Maybe it could be done via AppleScript?
    A related issue arises when you try to look at the sum or average of a number: if the numbers being summed have the same number of rounded decimals, the sum displayed is rounded too. I find this very annoying: I want to see the actual value, not how my spreadsheet may be displaying it in that cell.
    Although, curiously, rounding to any number of decimals as long as they are not all the same displays the full, correct underlying values:
    Has anyone come up with workarounds for these issues?

    I did it with an AppleScript.
    Now any time I have a cell or cell range selected, I do one click (AppleScript menu > Display Value at Full Precision), and it shows me a popup alert that simply reads:
         rowname : columnname
         value
    Here's the script:
    tell application "Numbers"
              try
                        set selectedTables to (tables of sheets of front document whose selection range is not missing value)
                        repeat with selectedTable in selectedTables -- tables of each sheet
                                  if contents of selectedTable is not {} then -- the list is not empty, it's the selected sheet
                                            set selectedCells to cells of selection range of (get item 1 of selectedTable)
                                            repeat with i in selectedCells -- each selected cell
                                                      set {selectedRow, selectedColumn, selectedVal} to {row, column, value} of i
      --                                                  display alert "value of " & name of selectedRow & " : " & name of selectedColumn & " (" & address of selectedRow & ":" & address of selectedColumn & ")" message selectedVal
      display alert name of selectedRow & " : " & name of selectedColumn message selectedVal
                                            end repeat
                                            return
                                  end if
                        end repeat
              on error eMsg number eNum
      display alert eMsg
              end try
    end tell
    ( Props to Jacques Rioux who posted code to get me started at https://discussions.apple.com/thread/3964938 )

  • Problem in cin(excise)

    Dear cons
    In case of Purchase orders with excisable tax code,the system is allowing to do invoice verification even if RG 23 Part 2 has not been updated.The system is automatically reversing the GR/IR Clearing account even if J1IEX has not been done.Earlier this check was there,but now it is not working
    Thanks
    nirupama

    Dear Lakshmipathi,
    Thanks for your reply, If I am not wrong 355 is rounding off rountine of excise values. as i told you mines is export pricing procedure my BED also in USD, which i can't do. If i do that even the rounding decimals when we converting to INR give lot difference.
    Second : Rounding nearest value function module
    In the background calculation when the system is calculating the assessable value, there we need to incorporte this with our won peace of code, but later on SAP bringing the original values somehow.
    in my case also INR 2 decimals only, system in the background it is considuring the 3rd decimal.
    do you have any other solution. please let me know.
    Regards,
    Raghava.

  • CIN : decimal problem in export excise invoice

    Hi all,
    I have issue, we are in export sales and we activated 5 decimal option for our customer.
    issue is  we made a export billing document with ref that export excise invoice.
    - in my billing doc ED exchange rate is 47.4  and the unit price is 1.63 $
    when i am converting to inr  below difference is comming
    qty       inr price  Asse val       BED         dif for assessable value
    10224    77.26     789906.24   31,596.25  20.45 
                             789926.69    31597                 =>  it is calculated on 77.262 how to avoid the 3 decimal when system is calculating the Assessable value for duty calculation. ????
    above is for one line item. like this i have multiple line item is the same invoice and the difference is huge.
    Thanks in Advance
    Raghava

    Dear Lakshmipathi,
    Thanks for your reply, If I am not wrong 355 is rounding off rountine of excise values. as i told you mines is export pricing procedure my BED also in USD, which i can't do. If i do that even the rounding decimals when we converting to INR give lot difference.
    Second : Rounding nearest value function module
    In the background calculation when the system is calculating the assessable value, there we need to incorporte this with our won peace of code, but later on SAP bringing the original values somehow.
    in my case also INR 2 decimals only, system in the background it is considuring the 3rd decimal.
    do you have any other solution. please let me know.
    Regards,
    Raghava.

  • Decimal places in Measurement tab for Land

    We lease-in Land in Acres. Typical land sizes require area to be defined in decimal units e.g 18.963 ACR or 256.755 ACR.
    However, in the measurement tab for creating Land the amount column is rounding off all decimal values to whole numbers. Like in the above example what gets entered is 18 ACR and 256 ACR respectively.
    I did not find any decimal options while defining the measurement type. Any clues how to go about resolving this issue?
    Hamdan

    Hello Hamdan,
    You need to define new custom or change the existing unit of measurements assigned in respective dimensions. In this node you specify the number of decimal places you wish to have on particular unit. for example usually ACERS have 3 to 4 decimals as the unit is too high and the rent amount can differ a lot if we omit the decimals.
    SPRO -> SAP Netweaver -> Check Units of Measurement
    On the next screen select the dimension and click on the unit of measurement. create or edit the unit and specify the rounding decimals and other attributes as needed.
    Assign this Unit of measurement to the measurement types in REFX and the Measurement types of the object types, which I am sure you know already.
    Enjoy,
    Jag

  • Currency setup for InterCompany addon implementation

    Hi All,
    Running v9pl11.
    We are currently implementing the InterCompany v2 addon for our head office and one of our branches. One of the prerequisites, and the last one we need to achieve in order to have the whole thing running according to our specifications, is to have an identical setup between the Head office and the branch in term of Currency Setup. Our Head Office and Branch are located in two different countries and are running two different currencies.
    Today, we have a different setup between the two and we need to make it identical. Our problem is that even after having asked the accountants, internal and external, no one knows what the impact is of such or such changes.
    Here are the differences between the head office and the branch:
    ============
    Head Office ==
    ============
    Head Office - Company Details > Basic Initialisation
    Local Currency = EUR
    System currency = CHF
    Head office CHF Currency setup:
    Incoming Amt Diff. Allowed = 0.02
    Outgoing Amt Diff. Allowed = 0.02
    Incoming % Diff. Allowed = (NONE)
    Outgoing % Diff. Allowed = (NONE)
    Rounding = No rounding
    Decimals = default
    Rounding in payment = NOT Ticked
    ========
    Branch ==
    ========
    Branch - Company Details > Basic Initialisation:
    Local Currency = CHF
    System currency = EUR
    Branch CHF ISO Currency setup:
    Incoming Amt Diff. Allowed = (NONE)
    Outgoing Amt Diff. Allowed = (NONE)
    Incoming % Diff. Allowed = (NONE)
    Outgoing % Diff. Allowed = (NONE)
    Rounding = Rounding to five hundredth
    Decimals = 2 digits
    Rounding in payment = Ticked
    All the other currencies are absolutely identical between the 2 databases. Only the CHF has got differences.
    Could anyone tell me what impact there would be in changing one of the setups, and in which direction we can change the setup as I know that some changes are not reversible.
    Thanks,
    Phil

    Hi YC,
    I inferred following from your query, correct me if I'm mistaken:
    You are configuring Intercompany Integration solution for one HO and one Branch company environment. You have deployed the solution and completed key mapping function.You have completed other intercompany setup related steps and you want to create Branch corresponding business partners.
    Login any of the Intercompany participating companies and follow the steps below:
    1. Create a HO representing customer i.e. while adding customer record ,choose HO in Branch          Partner Code field.
    2. Create a HO representing vendor i.e. while adding vendor record ,choose HO in Branch Partner      Code field.
    3. Create a Branch representing customer i.e. while adding customer record ,choose Branch in      Branch Partner Code field.
    4. Create a Branch representing vendor i.e. while adding vendor record ,choose Branch in Branch      Partner Code field.
    Now, log in the other intercompany participating company and check if all these branch representing business partners have got replicated correctly (you needn't to create any new branch representing BP furtheron).
    Please be very cautious and refer to Intercompany solution guides before adding any company representing Branch partner.Once created, company representing definitions cann't be modified.
    Regards,
    Agneesh Jain
    SAP Intercompany Team

  • Coercing Variables

    Hello;
    I have written a class that replaces strings in strings iteratively throughout the entire main string. However, when I call it, of course, it becomes and [object ReplaceString] when I really need it to be a plain old String. How do I get from one to the other?
    Thanks,
    Terry

    Hello
    Well, every now and then I see this sort of question.
    return 1.1 - 1.0 = 0.1 -- > false
    return 0.5 - 0.4 = 0.1 -- > false
    return 0.7 - 0.3 = 0.4 -- > false
    return 1.3 - 1.2 = 0.1 -- > false
    etc.
    Why?
    Because it is the nature of binary floating point arithmetic of finite precision, that most computer uses in calculating decimal fractions and numbers larger than N-bit integer. (N depends upon architecture and library)
    Indeed,
    1.1 - 1.0 - 0.1 = 8.32667268468867E-17
    0.5 - 0.4 - 0.1 = -2.77555756156289E-17
    0.7 - 0.3 - 0.4 = -5.55111512312578E-17
    1.3 - 1.2 - 0.1 = 8.32667268468867E-17
    etc.
    These results are 'correct', that is they conform to the rule of binary floating point arithmetic of double-precision (IEEE Standard 754).
    cf.
    Inside Machintosh: PowerPC Numerics (archived pdfs - one file per chapter)
    http://developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-2.html
    Idem. (one pdf file)
    http://developer.apple.com/documentation/Performance/Conceptual/MacOSX_Numerics/Mac_OSXNumerics.pdf
    (Yes, old document but still quite valid about IEEE 754 etc.)
    So it is very important practice to round floating point number to some significant digits before comparison. It's also true in most programming language. Remember to round decimals before comparison!
    Something like this.
    --CODE
    set x to 1.1 - 1.0
    set y to 0.1
    --return roundn(x, -1) = roundn(y, -1) --> true
    --return roundn(x, -12) = roundn(y, -12) --> true
    return roundn(x - y, -12) = 0 --> true
    on roundn(x, d)
    number x : source number
    integer d : rounding target place (i.e. rounding up/down to (10 ^ d)'s place)
    set h to 10 ^ d
    return (round (x / h) rounding to nearest) * h
    end roundn
    --END OF CODE
    Hope this may help,
    H

  • Rounding to 1000 no decimals

    Hi Gurus..
        In my report I want to see the KEY FIGURES rounding to 1000, I dont want the decimals to be displayed how do I do that... Thanx...
    Preethu

    Hi Preethu,
    In your Key figure properties you can set the scaling factor and also the number of decimal places. This can be done in the query or also at the workbook level.
    Hope this helps...

  • 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

Maybe you are looking for