Is it possible to save Result of the Query?

Hi All,
I run a simple query in Project Raptor.
And I am looking for options to save my query Results into an xls file.
Is there any options to save the output file?
Thanks
Mouly

this function is bugged
Re: 919 Export->Insert nothing

Similar Messages

  • Result of the query is not filtered as value given in Select Option variabl

    Hello ,
    A Select option Variable is created on Navigational Attribute( ZINV_PROG) of 0WBS_ELEMT.
    The Compound Key for object ZINV_PROG(Investment program) is APPR_YEAR( Approval Year)
    This ZINV_PROG object does not bear Master data.
    The values in the field get populated as you load Master data of 0WBS_ELEMT.
    The values for this objects is as shown below:
    APPR_YEAR ZINVPROG
    2005 ESCCCAPS
    2007 ESCCCAPS
    2008 FIRE
    2006 CAPITAL
    A select option variable is craeted on this Navigational attribute.
    When you execute the query , On the selection screen of the query..
    If you provide i/p for Investment programm field as 2007 ESCCCAPS, the data should ideally be filtered for this values only.
    But the result of the query shows data for both values 2005 ESCCCAPS and as well as for 2007ESCCCAPS.
    Let me know how to sort this issue.
    Points will be assigned for the correct and helpfull answere.
    Thanks,

    Thanks Srini for your prompt explanation.
    My Question is if Approval year is a compounded key of ZINV_PROG object why data would not get filter out directly.
    I mean on the screen for this particualr variable i take help - F4 to see values there you are able to see all the values of Investment programm along with the apprroval year.
    If i select value as 2005 ESCCCAPS from the help F4 screen then ideally data should be fileterd out for this particular value. But it is not happening so.
    Is that so in Query desgining that if you creating a variable on Nav Attribute, and that particular Nav attribute has a compound key then if you want to filter out the data for this Nav attribute correctly you would also require to create a variable for Compound key also.
    Please let me know
    Thanks

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Supress the "Overall Result" in the Query

    Hi,
    Is there a way of supressing the overall result in the query? I do know that i can supress results by characteristics, but I would like to supress the results on a query level.
    Thanks

    Hi Davy,
    Select all the characteristics and supress the result for all of them.
    Regards,
    Diego

  • I can see the result column but not overall result in the query

    Hi all,
    How to display the overall result in the query, I am able to see the result value in the query and not the overall result!!
    Thanks

    Hi Pooja,
    I hope you have to check the Display property of the attribute.It should be always display.
    Regards,
    Vasanthan V

  • : "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

     Hi   .
        I was creating the  pass the values t in temp tables  though s sis package vs2012 .
      First I was taken on executive SQL TASK.
     IN EXCUTIVE SQL TASK  . I was write the stored proce:
    Sp;
    reate  procedure  USP_GETEMP2333
    AS
    begin
    Select  eid,ename,dept,salary from emp
    end;
    create table #temp(eid int,ename varchar(20),dept varchar(20),salary int)
      insert into #temp
       exec USP_GETMP02333
       go.
     It was executive correctly.
     I was taken another sequence container. In the sequence container iam creating one   executive  sql
    In 2<sup>nd</sup> excutive sql task: sql statements is
    if object_id('emp_fact_sal') is not null
     drop table emp_fact_sal
    select eid,ename as emp_name,sal_bar=
    case when salary<=5000 then 'l'
    when salary >5000 and salary<=7000 then 'm'
    else
    'h'
    end
    into emp_fact_sal from #temp.
     and one falt flies  it was taken to designation .
     iam changing  all  connection properties:
     in oldeb connection:
    in excutive sal task properties .
    delay validation is true,
    and retain connection maner is also true,
    and package mode is 64 bit is false.
     But iwas excutive in 2<sup>nd</sup> excutive ql task .
    Iam getting this type of errors,
                    [Execute SQL Task] Error: Executing the query " if object_id('emp_fact_sal') is not null
     drop ta..." failed with the following error: "Invalid object name '#Temp'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established
    correctly.
     Please help me

    Arthur suggestion works but you shouldnt even be doing this on a SQL Task.
    Use a data flow task. You'll have better control over the data that is being transfered and get better performance because no staging table will be used.
    Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
    is an undocumented behavior and should not be relied upon.

  • Limit the result in the query's varible selection.

    I have many reports involed the requirment that in the query's varible selection we only want the users could see the calmonth demanded by me such as 200903,200902,200901,200812 and 200811 before the current system date (not include the future calmonth),and after we make these confirguration it should not influent the accumulative indicators which add the values include such calmonth as 200810,200809 and 200808. Actually in these info providers and master datas they exit past and future calmonth we dont want see in the query's varible selection. For the requirement we have consulted many SAP channels but they could give us any avarable advice,how could i do?

    Arun Varadarajan,
    Thanks for ur reply. the a is sugguestive and operative.But for b I have my problem:
    a. After I create a variable for calmonth,its named var_calmonth which is customer exit and variable is ready for input,how is the variable representing? interval,single value or multiple single value? If it is single value,u could not APPEND l_s_range TO e_t_range in customer exit.If interval or multiple single value the upper is worked but u could not get the correct input GUI.The list is my coustmor exit code for the variable which is interval or multiple single value:
      WHEN 'VAR_calmonth' .
        IF i_step = 1.
          TYPES : BEGIN OF ls_calmonth ,
                  zcalmonth TYPE /bi0/oicalmonth,
                  END OF ls_calmonth.
          DATA : lt_calmonth TYPE TABLE OF ls_calmonth.
          DATA : wa_calmonth TYPE ls_calmonth .
          DATA: l_calmonth(6)    TYPE n.
          l_calmonth = sy-datum(6).
          SELECT CALMONTH FROM /BI0/SCALMONTH
          INTO TABLE lt_calmonth
          WHERE calmonth BETWEEN '200001' AND l_calmonth.
          SORT lt_calmonth BY zcalmonth DESCENDING.
          LOOP AT lt_calmonth INTO wa_calmonth .
            l_s_range-low = wa_calmonth-zcalmonth.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        ENDIF.
    b. Even if we have solved the upper problem the next is the values of the variable got through customer exit is also limited the query result.I mean it effects not only variable selection.
    Any way, thanks again.
    zport.

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

  • Ordering results from the Query

    Hi All,
    I have a query which selects a lot of attributes from a table. There is one field, named copyright year which stores year in numeric format. I run a query to select all attributes by specifiying author name (this is one of the attributes). I use ROWNUM < 25 ORDER BY copyright_year DESC in the query.
    To my surprise, the resultset returned doesnot figures records which have copyright_year of 2007. What I see is records having copyright year of 2004 and all less than 2004! I can figure out the reason! even when I increase the rownum count to 50, I still dont see 2007 records. There are in all 74 records for teh author which is my search criteria!
    Can anyone help me in figuring up the possible problem!
    Thanks in advance.

    the reason why you get that output is that because of ROWNUM in the where clause. please pay attention to the order of validation of the SQL statement and you'll find the problem.
    if you want to achieve correct output, try this...
    select a.* from
      (select *
       from table
       order by copyright_year desc) a
    where a.rownum < 25

  • Results in the query are not like the one in the cube

    Hello there,
    I have a problem. when I execute a query, and see the results, it doesn't match. The query calculates some things. I have a sort of formula, when I execute it on database level I get a other result and when I execute on query level I get other results. The problem is that the wrong results that I get, is for a couple of days. only couple of days are wrong. Where should I search because I don't know it anymore.

    Hi
    Check the data of your cube from LISTCUBE TCode. And then apply the formula (what you have applied at the query level) on the Cube data.
    And then compare the data if it is matching.
    And if you find that data in Cube is wrong then you will have to hig in to its source data.
    Regards
    Rohini

  • Results in  the query

    Hi Experts,
    I have a query which calculates the quantity for a particular date, the results are wrong in the query. i checked the data in the psa it matches with the data from the source system, the keyfigure is set to addition in update rules.can any one let me know why am i getting the wrong results.
    Thank You,

    Hai Shetty,
                   Your question is very vague. Most of the times, overwriting or addition depends on the way the system is designed and the requirement. As far as I understood. You have data in a cube or ODS and your report values donot match with the values in PSA. If thats the case, I would go step by step.
    1. Select some of the records that have eronous values.
    2. For the same records(based on primary keys), I would check the data in PSA and the data in ods or cube. If you have any intermediate stages, check them too. then you can findout where its going wrong.
    3. If the data in one target(PSA) donot match with the immediate target(ODS or Cube), then there is certainly problem with either start routine or mapping or the addition or over writing. It depends on the system you are working on.
    4. If the data in ODS or cube doesnot match with report, then you can check the query logic.
    Hope this helps. Let me know if you need more information.
    Thanks.

  • Save result of clob query to file

    What is the best way to export a clob to a file, as the result of a query?
    I have something like:
    select xmlelement( "big_clob", big_clob ).getclobval() as "result"
    spool in sqlplus will corrupt the clob/xml-output because of spool line-breaking.
    Can it been done in sqlplus 9.2.0.5?
    What are the alternatives?

    I never found a way to get around the line-break issue at 32k so I resorted to a java program.

  • Possible to save results of xdofx functions to variable?

    (10.1.3.3) Each of my CHAPTER4 rows has a SECTION_NUMBER such as 4.3.2. I'd like to format this header based on the depth of the section, or the number of periods + 1 (eg 4.3.2 is level 3). I'm having trouble figuring out how to set a variable and use it in either if statements or a choose. Below I strip out all the numbers using replaces and take the length of the string and add 1. but I cannot use xdofx functions in xdoxslt:
    <?for-each:CHAPTER4_ROW?>
    <!-- how do you get this value into a variable and use in choose or if ????? -->
    <?xdofx:length(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(SECTION_NUMBER,’0’,’’),’1’,’’),’2’,’’),’3’,’’),’4’,’’),’5’,’’),’6’,’’),’7’,’’),’8’,’’),’9’,’’))+1?>
    <?choose:?>
    <?when:$x=1?>........<?end when?>
    EDIT: I found out that you can use xdofx:if, but you cannot break out of the tag to do formatting. It has to be in the following syntax:
    <?xdofx:if length(replace(FIELD,'0',''))=1 then 'output' else 'other output' end if?>
    Would be nice if you could:
    <?xdofx:if x=1 then?> output <? else ?> <? end if ?>
    I get weird results when trying this.

    Thanks for the reply.
    We strictly want to use the CPU Profiling available out of the box JDeveloper. Is there a way to save / export the results into text / html / spreadsheet ?

  • Dear kuljeet ..plz check the results of the query

    Hi,
    check with following query and post the output
    COLUMN tsname FORMAT a12
    COLUMN extents FORMAT 9999
    COLUMN bytes FORMAT 999,999,999
    COLUMN largest FORMAT 999,999,999
    COLUMN Tot_Size FORMAT 9,999,999 HEADING "TOTAL(M)"
    COLUMN Tot_Free FORMAT 9,999,999 HEADING "FREE (M)"
    COLUMN Pct_Free FORMAT 999 HEADING "FREE %"
    COLUMN Fragments FORMAT 999,999
    COLUMN Large_Ext FORMAT 9,999,999 HEADING "BIG EXT(M)"
    SELECT a.tablespace_name TSNAME, SUM(a.tots)/1048576 Tot_Size,
    SUM(a.sumb)/1048576 Tot_Free,
    SUM(a.sumb)*100/sum(a.tots) Pct_Free,
    SUM(a.largest)/1048576 Large_Ext, SUM(a.chunks) Fragments
    FROM (SELECt tablespace_name, 0 tots, SUM(bytes) sumb,
    MAX(bytes) largest, COUNT(*) chunks
    FROM dba_free_space a
    GROUP BY tablespace_name
    UNION
    SELECT tablespace_name, SUM(bytes) tots, 0, 0, 0
    FROM dba_data_files
    GROUP BY tablespace_name) a
    GROUP BY a.tablespace_name
    i am also working on 10g AS and i notice application server generated Huge size of log files some are even in GB. so should also look on that.
    Thanks
    Kuljeet
    Dear kuljeet I have runn the above query and got this result.
    TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
    B2B_DT 64 3 5 3 1
    B2B_IDX 16 2 11 2 1
    B2B_LOB 12 1 11 1 1
    B2B_RT 40 2 6 2 1
    DCM 242 22 9 21 2
    DISCO_PTM5_C 2 1 34 1 1
    ACHE
    DISCO_PTM5_M 2 1 34 1 1
    ETA
    TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
    DSGATEWAY_TA 6 1 8 1 1
    B
    IAS_META 7,268 7 0 7 2
    OCATS 2 0 13 0 1
    OLTS_ATTRSTO 3 1 24 1 2
    RE
    OLTS_BATTRST 1 1 69 1 1
    ORE
    TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
    OLTS_CT_STOR 30 0 0 0 0
    E
    OLTS_DEFAULT 5 1 19 1 2
    OLTS_SVRMGST 3 1 27 1 1
    ORE
    PORTAL 95 23 24 22 2
    PORTAL_DOC 2 1 50 1 1
    PORTAL_IDX 22 2 7 2 1
    PORTAL_LOG 1 1 69 1 1
    TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
    SYSAUX 450 12 3 5 9
    SYSTEM 800 11 1 10 2
    UDDISYS_TS 46 27 58 26 2
    UNDOTBS 4,169 0 0 0 0
    USERS 1 0 31 0 1
    WCRSYS_TS 242 12 5 12 2
    25 rows selected.
    Please guide me now..what I have to do further.
    Thanks
    Message was edited by:
    [email protected]

    >>i am also working on 10g AS and i notice application server generated Huge size of log files some are even in GB. so should also look on that.
    This following query gives you to the details of tablespaces.and its not concern with any log files.its only related with database level not for OS or logfiles.
    for 10g AS i also notice that it generate very large size of logs files and some functionality will be disable when the size of logfile is reached to 2gb.
    so first check the contents of log files and move ,purge or compress it, as you needed but first check why its generated with such large size by checking the contents of logfiles.
    Kuljeet

  • Calculate result in the query output

    Hi,
    Consider the case below:
    Order     Item     SalesAgent     Quantity     Price
    555     10     SA1          10          100
              SA2          10          100
              SA1          20          200
    In this case the correct result is (Quantity = 30 (1020) & Price = 300 (100200))
    This is as one item can have multiple Sales Agent but the price for each sales agent still reflects the total price for that item (same for quantity). So just to sum up gives the wrong result (100+100 is incorrect, total should be only 100).
    If I use calculate result as last value then for the total order it takes only 100.
    How can I set a result row for the above case such that it show result as 300. (Price and Quantity are KF’s)
    Thank you,
    sam

    Hi Sam,
    Could you put the copied portion using the Code button  while posting, so that its easy to understand.
    Regards

Maybe you are looking for

  • [SOLVED] Xorg doesn't start after upgrade to 1.17.1

    Archlinux i686 Intel Core 2 Duo 6600 01:00.0 VGA compatible controller: NVIDIA Corporation G71 [GeForce 7900 GT/GTO] (rev a1) After following upgrades: [2015-02-26 03:27] [PACMAN] Running 'pacman -S mesa mesa-demos mesa-libgl' [2015-02-26 03:27] [ALP

  • Dynamic user data in execution context

    Hi, I need to call to an USB-driver-DLL via LV7 in parallel running excutions (modified parallel process model with several test sockets). I get a DevHdl after opening the driver from every instance (execution). Is there an elegant solution to keep t

  • Taking more time for job execution

    Hi experts, there is one job executing on daily. generally it takes around 5 min. but yesterday it took 50 min. can anybody tell  why it is happened on that particular day

  • For CRM 5.0 what is the ECC version supported

    Hi, Can any one help on this For CRM 5.0 what is the ECC version supported?

  • Gaps between letters in Text Style

    Hello, I have noticed that when I use a text style with the 'smart path following' option (Style Options - Path Labeling) I get irregular gaps between the text's letters (e.g. 'Mai n Stre et' instead of 'Main Street'). This happens with several fonts