BO XI R2 - Showing decimal places

Post Author: Vorax
CA Forum: WebIntelligence Reporting
Good afternoon all,
I am using BO XI R2 (Webi), and have created multiple variables. The issue is that the variables are showing the cents of the figure even though I have formatted the cell. I assume it is because it is a string, and that I should use 'totext.' But I am not sure how to use it in this scenario. Your help is appreciated.
Displaying 38,540.48Should be displaying 38,540
Variable is=If(IsError([Impairment]);"";Average([Total Cost of Sales])+Average([Impairment]))

Post Author: jsanzone
CA Forum: WebIntelligence Reporting
Vorax:
the tonumber() function is not valid in this instance because you are already dealing with number so you can't tonumber a number to a number (hope that makes sense to you).
The function you need is the FormatNumber().  The syntax for FormatNumber is:
FormatNumber([a number-type];"$####.00")  (note: the portion within the last set of quotes ("$####.00") is an example of what can be done, you can also do "$###,###.00", and a lot of other things too).
So in your case I would recommend:
=If(IsError([Impairment]);""; FormatNumber(Average([Lot Cost (AZ)])+Average([Impairment]);"####"))
Which will format the output to a whole number and dispense with the cents portion.  As I showed up above you could dress this up with commas and a leading dollar sign as well....

Similar Messages

  • Host variables in SQL Developer not showing decimal places

    I'm a very newbie, taking my first PL/SQL class, so please be gentle! I think this may be a SQL Developer problem, because when I run the same thing from terminal-line SQLplus on my Linux install, it works right.
    I'm working with a procedure, and passing a value out to a host variable. Although the value should have a decimal portion, when I print the host variable, all that prints is the integer portion.
    Here's the entire program:
    set serveroutput on;
    create or replace package mypkg
    is
      procedure myproc
        (p_in in number,
         p_out out number);
    end;--END package mypkg
    create or replace package body mypkg
    is
      procedure myproc
        (p_in in number,
         p_out out number)
      is
        lv_out_num number(7,2);
      begin
        lv_out_num := p_in / 10.0;
        p_out := lv_out_num;
        dbms_output.put_line('p_out is ' || to_char(p_out,'999.99' ));
      end;--END procedure myproc
    end;--END package body mypkg
    variable myvar number
    execute mypkg.myproc(33,:myvar);
    print :myvarAnd here's the output:
    PACKAGE mypkg compiled
    PACKAGE BODY mypkg compiled
    anonymous block completed
    p_out is    3.30
    MYVAR
    3As you can see, myvar should be 3.3, but it only shows 3. However, like I said above, when I do this from sqlplus from a terminal in linux, it works fine. Thus I'm thinking its a SQL Developer thing.
    Details:
    Machine:
    HP Pavilion dv6 notebook (Core i7) with 8 GB RAM
    Windows side:
    Windows 7 Home Premium SP1
    Oracle 10g Express
    SQL Developer 3.1.06
    Linux side:
    Oracle Linux 5.6 (in Virtualbox)
    Oracle 11g release 1
    Thanks,
    Alex

    Hi,
    This issue has been previously reported on and bugged:
    Re: Oracle Sql Developer prblem with variable format
    Regards,
    Gary

  • Decimal places in report painter

    Hi experts.  I have a financial report written in report painter.  I want to show two decimal places on a single row.  The rest of the report is in whole dollars, but this one row is a percentage, so I want to show decimal places.  I know that you can format an entire column, but I can't figure out how to format a single row.  Can anyone help?
    Thanks
    Janet

    YES U CAN
    SAME AS ABOVE PROCEDURE
    BUT SELECT ROW INSTEAD OF COLUMN
    Edited by: Anil Kumar Potnuru on Feb 10, 2009 9:02 PM

  • DIsplaying WRBTR (AMOUNT FIELD)WITHOUT  DECIMAL PLACES

    Dear all,
    I am facing a problem in displaying amount field  in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
    How can I do it in a alv report if I have only one output amount field?
    thanks
    Ranjan.

    Hi chittaramjan,
    1. use this kind of funda (just copy paste in new program)
    Important things
    a) one extra field in internal table
      declared in the same exact fashion
    waers LIKE tcurc-waers,
    b) Populate this field
    c) REST THE System will take care
       (based upon country settings)
    2.
    REPORT abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA  : BEGIN OF itab OCCURS 0,
            f1  LIKE P0008-BET01,
            waers LIKE tcurc-waers,
            END OF itab.
    START-OF-SELECTION.
      itab-f1 = '-4.15'.
      itab-waers = 'KRW'.
      APPEND itab.
      itab-f1 = '4.68'.
      itab-waers = 'GBP'.
      APPEND itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name     = sy-repid
          i_internal_tabname = 'ITAB'
          i_inclname         = sy-repid
        CHANGING
          ct_fieldcat        = alvfc.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program      = sy-repid
          it_fieldcat             = alvfc
        TABLES
          t_outtab                = itab
        EXCEPTIONS
          OTHERS                  = 2.
    regards,
    amit m

  • Decimal places in charts

    Hi
    I have this SQL code for a pie chart and it rounds items down to 0% instead of showing decimal places. Is is possible to change it to show 0.5% for example?
    select null link, PRODUCT label, 100*ratio_to_report(COUNT(ID)) over () value
    from CHART_BY_PRODUCT
    WHERE REGION = NVL(REPLACE(:P17_REGION, '%null'||'%', NULL), REGION)
    AND LOB = NVL(REPLACE(:P17_LOB, '%null'||'%', NULL), LOB)
    AND TRUNC(TO_DATE(DATECALLED)) BETWEEN TRUNC(TO_DATE(:P17_FROM_DATE))
    AND TRUNC(TO_DATE(:P17_TO_DATE))
    group by PRODUCT
    order by count(id) descRegards
    Adam

    Basically this function - 100*ratio_to_report(COUNT(ID)) over () - is showing values in percentage. i.e. 40%, 20%, 5%, 1%, 0%.
    I want it to show the percentage with decimal places i.e 40.52%, 20.3%, 5.2%, 1.25%, 0.25%
    Can I change the function somehow to show two decimal places?
    Thanks
    Adam

  • Removing Decimal Places from Graph labels

    One axis on my graph is showing decimal places despiting formatting the report field to show 0 places - the graph is reading decimal places directly from the database underneath the report .  Other than editing each axis label manual (or editing the original database field) does anyone know of another way I can elimate the decimal places from the graph?

    That solution only works for the x-axis but not the y-axis (or the other way round, depending on whether the chart is horizontal or vertical).
    The values of the y-Axis are formatted according to the default Number Formatting. If you can afford this, change the default number formatting to 0 decimal places.
    Another workaround would be to create a formula. Let's say amount was your database field. Then the formula would be
    ToText({AMOUNT},0)
    Put that in your chart instead of the original database field.
    Cheers,
    Florian

  • Key figure, number of decimal places are not showing in report output

    Dear experts,
    At cube level PO qty value is getting 0.010 where as in bex report output of PO qty showing as 0. I have chosen decimal places as 0.000 in key figure additional properties tab. In query designer also I have chosen no of decimal places as 0.000 in display propertiesu2026please help me out. How can I get 0.010 value in report o/p.
    Thanks in advance.
    Srivalli.

    Hi,
    Try to run the query in RSRT. CHeck if you are getting the same output. Also make sure that in the reports all the filters are same as you have applied in the info -cube to see the data.
    - Jaimin

  • How do I correct % complete to show whole numbers, not two decimal places

    I just installed version P6 6.2 on my laptop and restored a schedule. The percent complete is showing two decimal places for activities less than 100%. What I would like is to have whole percentages, e.i. 84%, not 83.76%. How do I correct this? I thought it would be under the user preferences, but it's not there.
    Edited by: 795589 on Sep 20, 2010 5:46 AM
    Edited by: 795589 on Sep 20, 2010 5:47 AM

    *795589,*
    What particular percent complete are you having trouble with?
    *(Found in the P6 knowledgebase) This issue is an existing Enhancement Request. It will be considered for a future release*
    Other than that, maybe try creating a global change to manually calculate your percents.
    hope this helps,
    +*** Can the number of decimal places for Percent Complete be changed? [ID 895884.1] Modified 30-OCT-2009+

  • Decimal Places is not showing in Qty field in COPA report

    Hi,
    I have made a COPA report using one form that I have made it through TC:KE34.
    I have used ABSMG for Sales qty in my report.
    What I am observing in report, the qty is  not showing the decimal places for exmaple 6.032 MT but it gets round over to 6 MT.
    I want the system should show the 3 decimal places for the Sales Qty.
    How to do resolve this.
    Regards
    Kami

    Hi Ajay,
    No this is somthing new you mentioned. I havent tried to change the number format after executing the report.
    Please let me know how to do that. I am using Object ALV to display the report and I am not getting any option in the menus to change the number format.
    Also I noticed one thing, In other output format like drill down report its coming correctly , only in Object ALV output format its showing the rounded values.
    Please let me know the path.
    Regards
    Kami

  • PO print preview displays incorrect setting in decimal places

    Dear Experts
    Please help me on the following condition.
    I have a problem in print preview of a PO. It displays the incorrect setting for decimal place in currency.
    It shows USD 1.404,00 whereby the amount should be USD 1,404.00
    This only happens to a certain vendor that is doing PO for the first time from that country
    Example:
    I'm creating a PO for vendor 123. Vendor 123 is located in country A. No PO has been created for any
    vendor in country A before. When I saved my PO, in print preview, the decimal setting is not correct.
    But when I'm creating another PO, for vendor 234. Vendor 234 is located in country B. There have been
    several POs created for vendors in country B before. When I saved my PO, in print preview, the decimal
    setting is correct.
    Both vendor 123 and vendor 234 is using currency of USD.
    Is there any other setting with the vendor master in regard with the currency decimal setting for each
    country for the vendor? Or something that I've missed out?
    Diagnosis:
    I've checked with the user profiles->default-> decimal notation. It displays 1,234,567.89 correctly
    I've also run OY04, but the decimal setting is correct.
    Thank you
    Regards
    Syukri

    this has nothing to do with print preview, it is just basic country setting (OY01) how a quantity and value is written on a PO to a vendor is country xyz.
    German uses to comma to seperate decimals, while USA uses the point to seperate decimals
    this would be the German version 1.404,00, and this the US version:: 1,404.00
    so if an American sends a PO to a German vendor, then the document will show 1.404,00 so that the German can understand that he wants 1404. (and not 1000 times less)

  • Problem while changing decimal places in SAP B1 2007

    Hi Experts,
    I want change the decimal places of Quantity type fields from 2 decimal places to 4 decimal places. But while changing it in Genral settings form ,it shows the error message "Cannot update while another user is connected to the company". it is working in SAP B1 2005B but not in SAP B1 2007
    Please help me if you have any solution on this issue..
    Thanking you in advance

    Paul,
    Please see SAP Note 1247060 as is discusses the fact that this did work in 2005, but the behavior was changed in version 2007 ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&;note_numm=0001247060
    Eddy

  • Cannot Update Decimal Places in General Settings

    When I try to update the decimal points in the Administration > System Initialization > General Settings > Display path, SAP B1 gives me the following error:
    "Cannot update while another user is connected to the company."
    I am the only one on the system as "manager" with "Super User" and "Full Authorization"...
    The SAP B1 Guide titled "How to Make Initial Setting in Business One - US" says "you can change these settings at any time".
    QUESTION:  What might be stopping this change, and more importantly, how do I get around this error to be able to change the decimal points?
    Thanks all - Zal

    Hi Zal,
    I agree with you about the strange messaging used by SAP.
    But blocking the possibility to decrease the decimal places is extremely important.
    Suppose you have inserted a sales document with two items in this way:
    Item 1 ___Qty 1,234  ___Unit price 1,22  ___Line total  1,51
    Item 2 ___Qty  5,756 ___Unit price 3,15  ___Line total 18,13
    ____Document total 19,64
    Then, someone wants to change the number of decimal places of the quantity from 3 to 2.
    What happens would be:
    Item 1 ___Qty 1,23  ___Unit price 1,22  ___Line total  1,51
    Item 2 ___Qty  5,75 ___Unit price 3,15  ___Line total 18,13
    ____Document total 19,64
    If you try to do the calculations manually you will see that the results are not correct. In fact all the document would have to change in:
    Item 1 ___Qty 1,23  ___Unit price 1,22  ___Line total  1,50
    Item 2 ___Qty  5,75 ___Unit price 3,15  ___Line total 18,11
    ____Document total 19,61
    Also if the document total will show correct (in the case of rounding the second decimal position of item 2), the totals of any line is wrong. In fact there is no recalculation at all in SAP (and must not be done).
    Imagine such a modification over thousand of documents and all of the descendants (mainly if the have lead to printouts - as say confirmations - sent to customers or vendors).
    None of the economic figures will match.
    BR
    Antonio

  • Decimal places for JPY currency in change documents

    Hi Gurus,
    For opportunities in SAP GUI the change documents for JPY show incorrect numbers.
    The number is divided by 100 (two decimal places added).
    Checked the CDPOS table and found the values already divided (two decimal places added).
    SPRO->General Settings->Currencies->Set decimal places for currencies is set for 0 decimals for JPY.
    Is there any way I can get correct values in the change documents?
    Please advice. Any hint is useful.
    Thx,
    Martin Kuma

    Hi Naren,
    Thank you for the tip, however the TCURX table is changed via customizing and should be changed only during the system initialization.
    What I would like to do, is to assure that the system displays the values in change documents correctly. It should apply the currency conversion for the data displayed the same way it does for all the tables.
    Do you have any idea, how should I do this?
    Regards,
    Martin Kuma

  • Error stating "too many decimal places (max allowed 0) while getting input

    Hi experts
       In one of my reports the input is accepted for the user for a field . The field was initially declared as AZINSSATZ ( Data Type  DEC    Length     10         Decimal Places   7 ) . It did not accept the values like 12.5 .Inorder to give 12 5 we need to give as 12.0000005 .Later i changed it ot menge_d , dmbtr and various other data types  but shows the above error.
    please advise on how to correct it

    Hi ,
    Sorry for the delay .
        x_fieldcat-scrtext_m = 'Interest Rate'.
        x_fieldcat-fieldname = 'INTEREST'.
        x_fieldcat-tabname = 'IT_BSID1'.
        x_fieldcat-col_pos = l_pos.
        x_fieldcat-outputlen = '13'.
        x_fieldcat-edit = 'X'.
        APPEND x_fieldcat TO it_fieldcat.
        CLEAR x_fieldcat.
        l_pos = l_pos + 1.
    the strcture if it_bsid1 is
    DATA : BEGIN OF IT_BSID1 OCCURS 0,
    INCLUDE STRUCTURE ZFTHUNDI_NO.
    BUKRS TYPE     BUKRS,
    HUNDI_NO  TYPE          ZHUNDI_NO,
    VBELN      TYPE      VBELN_VF,
    KDMAT      TYPE      KDMAT,
    KUNNR      TYPE     KUNNR,
    NAME1      TYPE      NAME1,
    ORT01      TYPE      ORT01,
    BUDAT      TYPE      BUDAT,
    TYPE      TYPE      ZTYPE,
    GRN_NO  TYPE     MBLNR,
    GRN_DATE  TYPE          BUDAT,
    DUEDATE      TYPE     ZDUEDATE,
    QTY      TYPE     FKIMG,
    REC_QTY TYPE     ZREC_QTY,
    ACC_QTY TYPE     ZACC_QTY,
    REJ_QTY TYPE     ZREJ_QTY,
    BAL_QTY TYPE     FKIMG,
    PRCTR     TYPE PRCTR,
    DMBTR     TYPE DMBTR,
    WRBTR     TYPE WRBTR,
    TOTAL     TYPE WRBTR,
    FAHA_NO1 TYPE     ZFAHA,
    FAHA_DATE TYPE     ZFAHA_DATE,
    HSDATE TYPE     ZHSDATE,
    HRDATE TYPE     ZHRDATE,
    DISDATE TYPE     ZDISDATE,
    HBKID     TYPE HBKID,
    INTEREST TYPE MENGE_D, ( i ve tried it with diff data types like dmbtr etc)
    W_FLAG TYPE C,
    W_FLA TYPE C ,
    LIGHT TYPE C,
    END OF IT_BSID1.

  • General Settings Decimal Places

    Good Day
    Experts:
    I have a request to make the Decimal places, for my Quantity and Price columns in a Matrix on one of our custom screens, have the same number of places as the list in General Settings\Display Tab.
    For example, Prices has a setting of 4 Decimal Places.  How can I specify 4 Decimal Places in my datasource:
    MatlReqForm.DataSources.UserDataSources.Add("U_EaCost", SAPbouiCOM.BoDataType.dt_PRICE)
    Is there some kind of option with this command that enables specifying the decimal places?
    Is there a way to dynamically check where the value on the General Settings\Display Tab is set at
    and have the datasource take on that value when assigning it to a field?
    Please ask clarification questions if my exlpanation of needs if not clear enough...
    Thanks for the hlep,
    Ed

    Hi Ed,
    What version is this client running? It sounds like a bug. UserDataSources are automatically linked to the General Settings. If you set a datasource to the Price type then it should automatically show with the same number of decimal places as the Prices setting in General Settings. There is no way to set the number of decimal places on a datasource directly. I have tested this on a 2007A system and it works fine.
    Kind Regards,
    Owen

Maybe you are looking for

  • Itunes wont load,install or unistall cant update or sync

    I plugged my iphone4 in the other day to sync an itunes came on then it disapearred and wont come back on at all, ive tried everything from unistalling an reinstalling deleting all temp files and everything else ive read and nothing is helps, it wont

  • Stack overflow at line

    I am Crystal 10, RAS 10 using Crystal Interactive Viewer.  The errro occurs when closing the viewer window. I receive a java alert: "Stack Overflow at line: 63" When I debugged I fount the error in the rendered javascript.  The debugger stopped on th

  • Log in from Vista to OS X Tiger server

    When I try to log in to an OS X 10.4 server from Vista (on my MacBook Pro), Vista keeps inserting the computer name as predecessor to the user name in the form of computername\username. Needless to say that is not the name on the OS X server. The OS

  • Original iPad won't upgrade to ios7

    When I try to upgrade from ios 5 to 7 in software update under settings. It says no update available. Why is is 7 not available

  • B320 bluetooth software

    If someone could tell me what is the name of this software that is on the picture. Bluetooth device management, I don't have it on my system or it doesn't work. Solved! Go to Solution.