Query Result in the APD displaying zeros insted of values

Hi Experts,
I am working on APD Concept i am using 2 querys as source and  trying to feed the result of these querys result into a transactional ODS.
My problem in the query i have used formula variables for calculation in the columns under key figure structure.
in the bex analyzed it is giving the right results like
100,000.00
0.00
100,000.00
0.10
0.10
when i keep this query in the APD and checked the data by right clicking it is giving the results like :
0,0000000000000000E+00
1,0000000000000000E+12     
1,0000000000000000E+00     
1,0000000000000000E+12     
9,9999900000000000E+05     
Pl.Let me know whether we can use the formula variables for calculation in query whcih is going to used in APD.
this is urgent for me pl. give me some idea if any b'dy faced such situation.
Thanks in advance
Sirisha

Hi Sirisha
Analyze in which layer the differences occur. At every level of the above layers, you have the option of displaying the data as a test. Check in which layer the data no longer corresponds. Proceed as follows:
Use Transaction RSCRM_BAPI to display the data on the OLAP BAPI layer.
If the data is correct -> this is a program error in the analysis process. Continue with step 2.
If the data is incorrect, continue with step 4.
2. The query used contains hidden key figures
Yes -> see Note 792671.
3. Is the query execution partitioned?
Yes -> see Note 914782
No -> create a problem message under the BW-EI-APD component.
4. Use Transaction RSRT2 to display the data from the OLAP processor layer.
If the data is still incorrect -> check the normal execution of the query again. If there are still differences, this may be due to a program error in the Business Explorer, and you should create a problem message.
If the data is correct -> this is probably a problem in the OLAP BAPI layer.
Let me know if you need any help.
Thanks
Suman

Similar Messages

  • How to save query result on the file server as excel file?

    Hi everyone,
    I need to save the the query result on the file server as excel file.
    Do you have any idees how can I do it?
    Regards
    Erwin

    i dont think you can save as excel file but you can save it as CSV use APD or RSCRM BAPI for this

  • Query Results to the Application Server

    Hello Experts,
    We have a requirement where when we execute a query, the query results in the excel format should be placed in a folder in the application server.From the Application server I need to send these results using the FTP service to the different locations.
    Can someone please suggest me how to place the query results in the application server and how to send these results using the FTP service to the different locations.
    Regards,
    Sachin

    Hi Sachin,
    Yes its possible
    Using RSCRM_BAPI TCode schedule the report based on your requirement i.e. daily, weekly...etc. And then dump the report result into one path (Directory) in Application Server.                                                                               
    Create FTP/SFTP User ID in Application server level in BW System.
    Check the below link for more info
    /people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
    Regards
    KP

  • Query Result pane - disabling tooltip display of LOB data

    In the query result pane of SQL Developer, if a column is too long for the display (typically, in my case, for a CLOB column) and you hover the mouse over the column data, a tooltip showing the full value appears.
    For an example, do "select sql_fulltext from v$sql where rownum < 3" and hover the mouse over one of the values in the SQL_FULLTEXT column.
    In our application we typically query a table with a large CLOB column, and the tooltip fills the whole screen. This is a pain if you just leave your mouse on the screen somewhere over a CLOB column while typing :-( I've looked for a way to switch off this tooltip, but haven't managed to find one. Can anyone point me at a way of doing so? Unfortunately, I'm running SQL Developer 2.1.1, but even a response along the lines of "you can only do this in 3.0 and later, and this is how" would be useful, as it might help me argue for an upgrade.
    Thanks,
    Paul

    Hi Paul,
    Actually versions 3.0 and 3.1 have a very nice UI (Tools | Preferences | Mouseover Popups) to control this sort of thing, but unfortunately the settings seem only applicable to the debugger.
    You might consider making a feature request for this on the SQL Developer Exchange.
    Regards,
    Gary
    SQL Developer Team

  • Can't see query results in the grid

    I am having a problem where some of my queries do not return results in the grid. Those same queries return results if I run them as a script. Or if I run them on a different server. And the same query run on someone else's SQL Developer also does not return results in the grid.
    This works.
    select 1 from dual;
    This does not.
    select sysdate from null;
    The weirdness is that this just started happening. I am starting to get errors when I log into the database.
    oracle.dbtools.raptor.nls.OracleNLSProvider
    Error loading nls:ORA-00980: synonym translation is no longer valid
    Did someone delete a system table from this server? Anybody have an idea? Workaround?
    Jim

    Wow, sorry about that. That was REALLY misleading. The correction to that part of the message should be...
    This works.
    select 1 from dual;
    This does not.
    select sysdate from dual;
    I agree a synonym called null is not even humorous.

  • Query result: reducing the query's line returned

    I have the query output below:
    SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
    SELECT null , 0143355014948714, 384611, null  FROM DUAL UNION ALL
    SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
    SELECT 0143356000159014, null, null, 385305  FROM DUAL UNION ALL
    SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
    SELECT 0143355014948714, null, null, 384611  FROM DUAL;
    NRO_NEW         NRO_OLD         OID_OLD OID_NEW
                    123             384603      
                    143355014948714 384611     
                    143356000159014 385305      
    143356000159014                         385305
                666                         384603
    143355014948714                         384611But I need to reach the result below( to put in the same line the NRO_NEW and NRO_OLD belong of the same OID_OLD and OID_NEW ):
    NRO_NEW         NRO_OLD         OID_OLD OID_NEW
                666             123  384603  384603
    143355014948714 143355014948714  384611  384611
    143356000159014 143356000159014  385305  385305Can anyone help me?
    Edited by: user5914526 on Sep 15, 2011 1:30 PM

    maybe this will help.
    SQL> With t1 as
      2  (SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
      3   SELECT null , 0143355014948714, 384611, null  FROM DUAL UNION ALL
      4   SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
      5   SELECT 0143356000159014, null, null, 385305  FROM DUAL UNION ALL
      6   SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
      7   SELECT 0143355014948714, null, null, 384611  FROM DUAL),
      8    t2 as
      9  (SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
    10   SELECT null , 0143355014948714, 384611, null  FROM DUAL UNION ALL
    11   SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
    12   SELECT 0143356000159014, null, null, 385305  FROM DUAL UNION ALL
    13   SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
    14   SELECT 0143355014948714, null, null, 384611  FROM DUAL)
    15  select t2.nro_new,
    16         t1.nro_old,
    17         t1.oid_old,
    18         t2.oid_new
    19    from t1, t2
    20   where t1.oid_old = t2.oid_new
    21  order by t2.nro_new;
       NRO_NEW         NRO_OLD         OID_OLD    OID_NEW
                666             123     384603     384603
    143355014948714 143355014948714     384611     384611
    143356000159014 143356000159014     385305     385305
    SQL>

  • Query result shows the same data twice

    Hello All,
    I've created UDFs like Supplier Name, Supplier Address, and (Excise Details like)Supplier ECC No,
    Supplier Range.
    And I've created Query for Supplier Name and Supplier Address, and I assigned to FMS, Its working Correctly.
    I've created Query for Supplier ECC No. the Query is,
    SELECT  T0.[ECCNo],T1.[CardName]
    FROM CRD7 T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    WHERE T0.[ECCNo]  Like  '[%]'
    I saved the Query, and assigned to FMS.
    At this stage (i.e. Query for Supplier ECC No.) the above Query showing the same data twice.
    Please suggest to rectify the problem.
    Thanks,
    Pratheeviraj

    You can get rid of the duplicates by changing the query to
    SELECT DISTINCT T0.ECCNo,T1.CardName
    FROM CRD7 T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    WHERE T0.ECCNo Like '[%]'
    But it is always worth understanding why you are getting multiple records to check that you are getting back what you want.  I think you may be seeing this because CRD7 can have multiple records for a business partner - maybe one for each of 'pay-to' and 'ship-to' address?

  • Show Select query result in the text file.

    Hi all,
    i want to show my select statment records in the text file.
    thanks in advance.
    Mob.

    you cannot do a select in a stored procedure.
    you could do something like
    SQL> set serverout on
    SQL> spool output.txt
    SQL> declare
           x varchar2(40);
         begin
           select * into x from dual;
           dbms_output.put_line(x);
         end;
    X
    SQL> spool offor use the utl_file package (more powerfull, less secure, write on the db-server instead of the sqlplus-client)

  • How to filter results of the timedifference where great than a value

    To all,
    How do I filter the results of this so I only get that which is greater than 2 seconds?
    Here is the query:
    SELECT
    A.REQUEST_UU_ID, TO_CHAR(B.CREATE_BY_TS - A.CREATE_BY_TS) AS ElapsedTime
    FROM
    TELLER_MESSAGE A INNER JOIN TELLER_MESSAGE B ON B.REQUEST_UU_ID = A.REQUEST_UU_ID
    WHERE
    A.MESSAGE_TYPE_CD LIKE '%REQ%' AND
    B.MESSAGE_TYPE_CD LIKE '%REP%'
    ORDER BY A.REQUEST_UU_ID
    Here are the results which I want to filter to get only the one row with 3 second time difference.
    99ac8695-18fb-a59d-1d6b-3d2a577fff22     +000000000 00:00:03.000000 <<<this is the one I want
    99ac8696-18fb-a59d-1d6b-3d2a577fff22     +000000000 00:00:02.000000
    99ac8896-18fb-a59d-1d6b-3d2a577fff22     +000000000 00:00:02.000000
    I tried it without the TO_CHAR casting but that gave an error.
    Thanks,
    Eric

    Hi, Eric,
    Add this to your WHERE clause:
    AND     b.create_by_ts > a.create_by_ts + INTERVAL '2' SECONDOr you could add this to the join condition.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}

  • Query to reterive the list of parameters and there values for scheduling

    I am develeoping a web application using java sdk want to reterive a parameter list for scheduling.
    i want a query that will reterive the list of parameters
    as we see on the parameters screen in CMC when we schedule the report.

                   // Loop through the parameters to get the parameter names and parameter values.
                            for(int i=1;i<=numberPrompts;i++)
                           // Each prompt has the name SI_PROMPT + a digit starting from 1.  For example, if
                           // there are 2 prompts, the first one would be called SI_PROMPT1 and the second
                           // one would be called SI_PROMPT2.
                       IProperties prompt = (IProperties)siPrompts.getProperty("SI_PROMPT"+i).getValue();
                           // Get the parameter name.
                       String promptName = prompt.getProperty("SI_NAME").getValue().toString();
                           // Start displaying a row.
                           out.println("<tr>");
                              // First column in the row is the parameter name.
                       out.println("<td>Parameter Name = "+promptName+"</td><td><table>");
                           // Get the current values property bag.
                       IProperties currentValues = (IProperties)prompt.getProperty("SI_CURRENT_VALUES").getValue();
                           // Get the number of values for this particular parameter.
                           int numberValues = ((Integer)currentValues.getProperty("SI_NUM_VALUES").getValue()).intValue();
                           // Loop through all of the values for this particular parameter.
                           for(int j=1;j<=numberValues;j++)
                               // Print out the values.
                            // Each value has the name SI_VALUE + a digit starting from 1.  For example, if
                            // there are two values, then the first value would be called SI_VALUE1 and the
                            // second value would be called SI_VALUE2.
                        IProperties currentValue = (IProperties)currentValues.getProperty("SI_VALUE"+j).getValue();
                            // Check for the existence of the "SI_MIN" and "SI_MAX" properties.
                            // If it exists, then display the value.
                            if (currentValue.getProperty("SI_MIN") != null && currentValue.getProperty("SI_MAX") != null)
                                     // The SI_MIN and SI_MAX properties exist.
                                if (currentValue.getProperty("SI_MIN").getValue() != null && currentValue.getProperty("SI_MAX").getValue() != null)
                                    // The properties have values.
                                 // Get the SI_MIN property bag.
                                 IProperties minRange = (IProperties)currentValue.getProperty("SI_MIN").getValue();
                                 // To store the minimum and maximum values.
                                 String minValue = "";
                                 String maxValue = "";
                                 // Get the SI_DATA property of the SI_MIN property bag.
                                 // First verify that SI_DATA exists.
                                 if (minRange.getProperty("SI_DATA") != null)
                                                // SI_DATA exists within SI_MIN
                                     if (minRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the minValue to this.
                                      minValue = minRange.getProperty("SI_DATA").getValue().toString();
                             // Get the SI_MAX property bag.
                             IProperties maxRange = (IProperties)currentValue.getProperty("SI_MAX").getValue();
                             // Get the SI_DATA property of the SI_MAX property bag.
                             // First verify that SI_DATA exists.
                                 if (maxRange.getProperty("SI_DATA") != null)
                                     // SI_DATA exists within SI_MAX
                                     if (maxRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the maxValue to this.
                                      maxValue = maxRange.getProperty("SI_DATA").getValue().toString();
                             // Print out the Minimum and Maximum values for the parameter.
                             out.println("<tr><td>Range " + j + " Min Value " + minValue + " Max Value " + maxValue + "</td></tr>");
                                else
                                    // The SI_MAX and SI_MIN properties exist, but they don't have values.
                                 out.println("<tr><td>The SI_MIN and SI_MAX properties exist, but they don't have any values.</td></tr>");

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Restricting the query result.

    Hello Experts ,
    Senario :
    I have Keyfigures 1)PO Line Item Count and 2) PO Value
    I want the number of PO Line Item having PO Value between 0 to 2,500$.
    I cant restrict a key figure with another keyfigure.
    Also in the query result i dont have any characteristic drilled, only key figure count is present.
    Please help.
    Thanks,
    Vinay

    Hi,
    Use RRI QUERY, Pass the query result of the first query to Second one and in the second query Use condition to display only       "Ito display the number of PO Line Item having PO Value between 0 to 2,500$."
    And Use "Count" function to display the number of Purchase Order Line items.
    Hope it helps...
    Regards.

  • How to open the TFS query results in Excel?

    Hello Guys,
    Question 1: Is there any way to export the query results from the TFS web browser?
    Question 2: Is there any way to export the query results from Team Explorer 2013?
    Here is the query results in TFS:
    How do I export this result in excel for further analysis? 
    I have also connected to Team explorer 2013 and right clicked on the query, but there is no option to open the results in Excel, see below:

    Hello,
    _Pls follow these guide lines for ensuring proper output in Microsoft Excel:
    1.First compare the fields properties and the frames properties between the reports created with wizard and the reports created manually.
    2. Do not leave any space between two adjacent objects.
    Explanation: Because any space, including a few pixels, between two adjacent objects will result in an empty cell or column in Excel output
    3.Make sure that the widths of all objects are vertically consistent.
    Explanation: If the objects are not exactly aligned vertically, that is, have inconsistent widths, it is likely to result in insertion of unwanted cells/columns in Excel.
    4. Pls. Make sure that the vertical elasticity of the frames and repeating frames is not fixed unless you are sure you have allocated enough space to accommodate all the records.
    Explanation: If you set the Vertical Elasticity property of a frame to Fixed, the output in Excel will show only as many records as could appear on the first page of the paper output. Since Excel does not have a page concept, it is not able to overflow the remaining rows to the next page.
    5. For reliable formatting of spreadsheet output, enclose the whole layout area in a frame.
    Explanation: This action prevents the possibility of parallel objects displaying in different vertical positions, one following the other.
    Hope this helps.
    Regards,
    Alex

  • Styling report rows using the query result

    Hello, is it possible to style a row in a report using the values returned by the underlying sql query?
    For example, if my query returns a column called ROW_CLASS I would like to use the placeholder #ROW_CLASS# to style the row, e.g. specifying the row class.
    Apparently such row attributes are not available to the apex developer. For each single column value I can set the "Tabular Form Attributes" and "Column Formatting", but I cannot set anything on the whole row.
    In other words I can style the TDs but not the TRs.
    I think this is clearly a "missing feature" that should be there, single the APEX engine that turns the query result into the HTML that displays the table can already access the column values via their placeholders. It would be sufficient to add some "row attributes" or "row class" field in the report.
    It could be used for lots of useful things, in my particular case, highlighting rows that contain errors.
    Also there is no way to perform that operation in CSS (e.g. get the TRs which contain at least one TD of class "ROWERROR"). I know it could be done in JS, but that's very messy for such a simple declarative problem.

    GChierico wrote:
    Hello, is it possible to style a row in a report using the values returned by the underlying sql query? Yes, for standard reports, using custom report templates: +{thread:id=2493917}+
    Interactive reports require the use of Dynamic Actions/jQuery.

  • SQL*Developer 'Query Results' Not Displaying

    I have just recently installed SQL*Developer v3.2.2 and after I run a SQL query the tab 'Query Result' tab is not displayed. I have tried to show this tab and to use the arrow keys at the bottom of the screen to display this screen but I cannot view the query results. I have used v1.5.1 in the past and know that it should display when after running a query and can be resized if required but I cannot seem to show it is v3.2.2

    Hi,
    Yes, I did install to a clean directory. I have even deleted all contents of the directory and re downloaded
    the software again to the same directory but this did not work either it still remembered the original settings.Keep in mind there are two locations that an installation updates:
    1. The SQL Developer installation directory (which you deleted).
    2. The User-Related Information (in your "user home" directory), which is updated by the settings migration
    Perhaps Jim meant you should also remove the user settings for the last SQL Developer version installed and possibly even avoid migrating the old 1.5.x settings when you first start SQL Developer after that. See the following forum thread, probably unrelated to your situation, but containing where to find the location of user-related information in the Help:
    Re: IDE issue - Query Result grid is not selectable or scrollable
    Hope this helps,
    Gary
    SQL Developer Team

Maybe you are looking for