How to display space as zero in query o/p

Hi all,
In a key figure i'm having no values.
I dont want to display space,instead i want to display zero in the query o/p.
can anyone pls help this.
Regards,
shaw

Hi Shana,
You can define this setting in SPRO
Go to SPRO -> SAP Reference IMG -> SAP Netweaver -> BI Settings -> Setting for reporting & Analysis ->Genral Setting for reporting & Analysis  -> Presenting numeric values in BEx
here you will find the option to define as 0 for no values(If value does not exist)
Hope it helps
Sriman

Similar Messages

  • To Display Space as  Zero in the report output

    Hi ,
    We have a situation like there is no record in the cube for a particular date selection , the output in the report for the date shows as Space , now the question is how do we display Space as Zero in the query ouput.
    We have the option to Display Zeroes as spaces .
    Please help..
    Thanks,
    Sruthi...

    Hi Sruthi,
    Can you try this.
    Create Formula for each KF. In the formula definition just add key figure (Ex: if the keyfigure is KF1 then in the formula just drag KF1) and save it. Name this formula as your original keyfigure. Formula may return 0, if the keyfigure doesnt have any data.
    Hope this helps.
    Veerendra.

  • How to display output of from clause query?

    Hi. I am using Forms Developer 10g. I have a datablock which uses a from_clause_query. In my from_clause_query, i used a WITH AS SELECT.
    I am trying to display the output of this query in my forms but the first column, V_CUTOFF_TO is not displayed, probably because it is not a database item. It was a result of my initial WITH AS SELECT query months. How can i display this along with the output of my from_clause_query. Thanks in advance for the help. By the way, i am trying to post the contents of my from_clause_query here but it says Sorry, this content is not allowed. I dont know why?

    Here is how you should most your code for it to be legible.
    WITH months AS
      (SELECT ADD_MONTHS(:V_DATE_FROM,LEVEL-1) m_first ,
        (ADD_MONTHS(:V_DATE_FROM, LEVEL    -0 )-1) m_last
      FROM dual
        CONNECT BY LEVEL < MONTHS_BETWEEN(:V_DATE_TO,:V_DATE_FROM) + 1
      EQUIP_per_month AS
      (SELECT COUNT(TRANS_CODE) V_COUNT,
        m_last V_CUTOFF_TO,
        trans_code,
        transformer,
        DATE_COMMISSION,
        DATE_DECOMMISSION,
        CLASSIFICATION,
        SUBSTATION_CODE
      FROM
        (SELECT C.TRANS_CODE,
          C.TRANSFORMER,
          C.SUBSTATION_CODE,
          C.DATE_COMMISSION,
          C.DATE_DECOMMISSION,
          C.CLASSIFICATION,
          m_last
        FROM SPM_TRANS C
        CROSS JOIN months
        WHERE CLASSIFICATION              IS NOT NULL
        AND SUBSTR(C.SUBSTATION_CODE,6,4) <>'M001'
        AND C.DATE_COMMISSION             IS NOT NULL
        AND (C.DATE_PRIVATELY_OWNED       IS NULL
        OR C.DATE_PRIVATELY_OWNED          > m_first)
        AND (SUBSTR(C.TRANS_CODE,5,1) '5'
        AND SUBSTR(C.TRANS_CODE,5,1) '9')
        AND (:P_GRID             = SUBSTR(C.SUBSTATION_CODE, 1,1)
        OR :P_GRID              IS NULL)
        AND (:P_REGION           = SUBSTR(C.SUBSTATION_CODE, 2,4)
        OR :P_REGION            IS NULL)
        AND (C.DATE_DECOMMISSION > m_first
        OR C.DATE_DECOMMISSION  IS NULL)
        AND C.DATE_COMMISSION   <= m_last
        AND (:P_BRANCH           =
          (SELECT DISTINCT BRANCH_CODE
          FROM SPM_SUBSTATIONS
          WHERE C.SUBSTATION_CODE = SUBSTATION_CODE
        OR :P_BRANCH IS NULL)
        AND (:P_ACC   =
          (SELECT DISTINCT ACC_CODE
          FROM SPM_SUBSTATIONS
          WHERE C.SUBSTATION_CODE = SUBSTATION_CODE
        OR :P_ACC                    IS NULL)
        AND (:P_DISTRICT              = SUBSTR(C.SUBSTATION_CODE, 6,4)
        OR :P_DISTRICT               IS NULL)
        AND (RTRIM(:P_CLASSIFICATION) = RTRIM(CLASSIFICATION)
        OR :P_CLASSIFICATION         IS NULL)
        AND (:P_VOLTLEVEL             = SUBSTR(C.TRANS_CODE, 1,1)
        OR :P_VOLTLEVEL              IS NULL)
      GROUP BY m_lAst,
        trans_code,
        transformer,
        DATE_COMMISSION,
        DATE_DECOMMISSION,
        CLASSIFICATION,
        SUBSTATION_CODE
    SELECT V_CUTOFF_TO,
      A.trans_code,
      S.SUBSTATION_CODE,
      A.transformer,
      A.DATE_COMMISSION,
      A.DATE_DECOMMISSION,
      A.CLASSIFICATION
    FROM
      (SELECT *
      FROM
        (SELECT trans_code,
          transformer,
          DATE_COMMISSION,
          DATE_DECOMMISSION,
          CLASSIFICATION,
          SUBSTATION_CODE,
          V_CUTOFF_TO
        FROM EQUIP_per_month
        GROUP BY trans_code,
          transformer,
          DATE_COMMISSION,
          DATE_DECOMMISSION,
          CLASSIFICATION,
          SUBSTATION_CODE,
          V_CUTOFF_TO
      ) A,
      SPM_SUBSTATIONS S
    WHERE A.SUBSTATION_CODE = S.SUBSTATION_CODE
    ORDER BY V_CUTOFF_TO,
      S.SUBSTATION_CODE,
      TRANS_CODE);The V_CUTOFF_TO , your first column, may not to be getting a (not null ) value.
    Regards,
    Edited by: Prabodh on Jun 21, 2012 2:41 PM

  • How to display a 1 to many query result in a single row?

    Hi,
    I want to display a 1 to many relationship in a query in just one row. The current result is that I get more than 1 rows. How can I display it in one column with the additional attribute in a column, without repeating? Thank you.
    Select s.student, t.teacher from student_table s, teacher_table t where s.id = t.student_id
    Result
    Student Teacher
    John Doe Larry Woe
    John Doe Mary Moe
    I would rather get a result like this:
    Result
    Student Teacher 1 Teacher 2
    John Doe Larry Woe Mary Woe
    Edited by: Samantha on May 18, 2011 2:48 PM

    Hi,
    Will all Students have exactly two Teachers?
    If not picture your sample with two more Students.
    One having 1 Teacher
    One having N Teachers
    Think about N, what will it be? - How would you create a table with N columns?
    If you can't easily answer above, re-consider what you are trying.
    That said, it could still be done - even if all Students do not have exactly two Teachers - and is called Pivot a dynamic number of columns.
    Examples are in FAQ
    SQL and PL/SQL FAQ
    Still a bad idea, with or without known number of teachers
    Regards
    Peter

  • How to display the request date in query

    Hi,
    I want to display the No. of request ID and request date in the query, but how could I get the  request date?
    Can anyone give me some suggestion?
    Thanks
    Huaiyuan

    Hi,
    By "request date" you mean the loading process "request date" ?
    If so, as Diogo said, add an infoObject in your data provider for this, but you won't be able to collapse anything if that's a cube.
    Thanks
    Matthieu

  • How to display 0 Percentage in BEx Query Designer

    The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only.
    I have a small requirement. My client requires to display 0% in the data output.
    Sample data is like
    Mon/Grade     A | B | C | D | E | F             " These are headings
    April                |     |    | 3  | 5 | 4 |  |           " These are data I got in BEx
    Required O/p
    Mon/Grade     A | B | C | D | E | F                  " These are headings
    April                |   0  | 0   | 3  | 5 | 4 | 0 |           " These are data I got in BEx
    My current formula is like
    > NODIV0( ( TEST1 * 12) %A TEST2 )
    What changes must I make so that 0% is displayed in the O/p? Please let me know earliest.
    P.S . The values TEST1 and TEST2 are 'Selections', which holds no data for those displaying values.

    Hi Kavitha,
    The problem  is I'm viewing the data in Web based BEX & not in BEX Analyser. So only.
    >            GROUP E GROUP D2 GROUP D1 GROUP C2
    >APR              6.0      46.0
    >MAY %           14.3      48.0      11.4      16.9
    >JUN %             11.6      16.2
    As you can see there's no data for the months-grade (Apr-GroupD1 etc).. Now, how to view it in portal with 0s for all the ones with no data?

  • How to display space colums in report

    Hi All,
    I created one report, it have 21 columns.My table have 10 million records. I need only 5 Lacks records. My requirement is I need to add 4 space columns in that report.I am using Obi 10g.
    Step1: In Answers, I implement case statement like CASE WHEN 1=2 THEN TIMES.YEAR or ‘ ‘ END.
    Step 2: In RPD, I created new logical columns applied above case statement.
    Step 3: In ETL, One new space column created, I import into the RPD and Pull into the report.
    When I pull 4 columns into the report, it will not display the date and take more time but I remove those columns it will give data very soon.
    Advance Thanks,
    Thanks,
    Raja

    Hi Raja,
    Have you tried just typing ' ' as the column formula in answers. I suspect using the case statement is resulting in the expression being pushed back to the database in an inefficient way.
    Also shouldn't the statement be
    CASE WHEN ... THEN ... ELSE ' ' END
    Regards,
    James
    Edited by: James - Projected on May 28, 2012 2:34 PM

  • How to display a popup message in query (through process chain)

    Hi Gurus,
    I need your help.
    I have an input query that triggers an event (through a button) and runs a process chain.
    I would like to show a popup message to inform the user when the process chain is over.
    Using function modules I've been able to show popup messages in the workbench, but I want to display this message directly in Bex Analyzer 7.0.
    Thanks
    Gabbo

    Hi,
    I'm also looking for a solution to display a custom message in the Bex Analyser at logon.
    Using function module in the logon user-exit works but only when loggin to the workbench.
    I don't want to use SM02 (which works in both cases) because I need to display a variable message depending on the user.
    If someone has an idea, I'll really appreciate.
    Best regards and happy New Year to all of you.

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • How to display as blank instead of zero (0) if result is zero

    Hello :
    How to display as blank instead of zero (0) if result is zero.*
    *any properties can do this. BI 7.0.
    Regards,
    Manthana

    Hi,
    If you are using BI 7.0 ,goto Query designer and click the properties under the 'Query'. Then select 'Value Display' from the properties and there is a drop-down  'Display Zeroes' . You can choose 'Zero as Space' from that drop-down for the query.
    Hope it will solve your issue.
    Thanks.

  • How to display leading zeros in a report

    Hi folks,
    I am doing a HR report and the users are very much used to seeing a two digit numeric value as the pay scale since their legacy days.
    In BW, I have the Pay Scale defined as a character (2) and it shows the values on the report as follows:
    Pay Scale
    0
    1
    2
    3
    11, etc.
    But the users would like to see 00, 01, 02, 03, 11, etc.
    Under the query properties, display tab, there are four separate options - display zeros, show zeros as, etc. I tried all the options but the pay scale still does not show the leading zeros. I remember seeing a SAP note a while back that talks about this. Does anybody know how to force the leading zeros on the BEx report.
    Thanks.
    Abdul

    Try removing the ALPHA Conversion from info object defintion.

  • How to display first row value returened from a query as checked as default in a report

    How to display first row value returned from a query as checked as default in a report
    Example
    Parameter 1
    Paramerter2
    ABD
    x(checked)
    Test
    DEF
    JMG
    Mudassar

    Hi Mudassar,
    The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
    order to solve the issue.
    If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
    the specific value in Default Values dialog box.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to display the index of current desktop when enable multiple spaces

    I was using 10.6 before and used to using Spaces and puts applications into different desktops.
    Now I'm using 10.8 and I know that the Spaces has been integrated into Mission Control.
    The problem is, I can see the current desktop on the top bar in 10.6, but in 10.8 I cannot see it so I usually forget where I am.
    Does anyone know how to display the index of current desktop?

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • How to Display WBS's with Zero values in a report created by CJE2

    Hi All,
    I have created a report using CJE1 (Report painter). When I execute the report, it only shows WBS that have values. How do I display WBS elements that do NOT have values? i.e. display items with zero values. I'm certain there is a setting either within report painter or forms...
    Help appreciated.
    Samir

    Menu>Formatting>Report Layout and then tab Rows. Check if setting under 'Treatment of zero rows' helps.
    Regards
    Sreenivas

Maybe you are looking for