Transfer results from query to another cube

How to populate the results of my query into another InfoCube. Any ideas on how I should go about this?
[email protected]
regards
andrea

Hi Andreas,
      you can do the following. you can download the dat from the query directly to tables using RSCRM_BAPI. Then you cam write an extractor in BW itself which fetches data from those tables. You can use BW source sys for extracting dta from these tables and load the data to cube and can report on that. You can alos put the entire process in Process chain too.
Hope this helps you......

Similar Messages

  • Saving result from query into CSV file

    Hi folks,
    in our application we're generating pages source using general packages (like htp, owa_util, ...). and in this part I'm a really beginner.
    I want to modify source one of our page, I want to add functionality to enable save result from query (cursor) into CSV file, to enable user choose place where generated file will be created and also change file name.
    I searched this forum and I found procedure, that could be useful:
    procedure p_getcsv is
    cursor cur is
           select 'a1' col1, 'b1' col2, 'c1' col3 from dual
       union  select 'a2' col1, 'b2' col2, 'c2' col3 from dual
       union  select 'a3' col1, 'b3' col2, 'c3' col3 from dual;
       begin
            -- Set the MIME type
            owa_util.mime_header( 'application/octet', FALSE );
            -- Set the name of the file
            htp.p('Content-Disposition: attachment; filename="test.csv"');
            -- Close the HTTP Header
            owa_util.http_header_close;
            -- Loop through all rows in EMP
            for x in cur
            loop
                -- Print out a portion of a row,
                -- separated by commas and ended by a CR
                 htp.prn(x.col1||','|| x.col2||','||x.col3|| chr(13));
            end loop;        
       end;What peace of code should I add to procedure that is generating web page to enable calling this procedure and whole saving process?
    Can anybody help me with this?
    Many thanks,
    Tomas
    Message was edited by:
    Tomeo

    Hi Marc,
    thanks for reply, problem is that I'm not using APEX application, I'm just generating web page code straight using oracle general packages.
    But I found this solution (maybe some tunning will be good):
    In page where I want to display Download i have
      begin
             htp.anchor2 (
                           curl  =>  ... .p_getcsv'||'?term=2005&crn=123,
                           ctext => 'Download Class List'
             HTP.br;
          end;
    ...si I'm calling p_getcsv procedure:
      procedure p_getcsv( term  IN stvterm.stvterm_code%TYPE DEFAULT NULL,
                           crn   IN sirasgn.sirasgn_crn%TYPE DEFAULT NULL) is
       v_length      NUMBER;
       v_file_name   VARCHAR2 (2000);
       temp_blob  blob;
       line RAW(32767);
       begin
             DBMS_LOB.CREATETEMPORARY(temp_blob, TRUE);
             FOR i IN 1..6  LOOP
                line := UTL_RAW.CAST_TO_RAW(i||','||term||','||crn||',AAA,BBB,CCC'||chr(10));
                DBMS_LOB.WRITEAPPEND(temp_blob, LENGTH(UTL_RAW.CAST_TO_VARCHAR2(line)), line);
             END LOOP;
              v_file_name := 'ClassList.csv';
              v_length  := DBMS_LOB.getlength (temp_blob);
              -- set up HTTP header
                 -- use an NVL around the mime type and
                 -- if it is a null set it to application/octect
                 -- application/octect may launch a download window from windows
               OWA_UTIL.mime_header (NVL ('csv', 'application/octet'), FALSE);
               -- set the size so the browser knows how much to download
               HTP.p ('Content-length: ' || v_length);
               -- the filename will be used by the browser if the users does a save as
               HTP.p (   'Content-Disposition:  attachment; filename="'
                  || REPLACE (REPLACE (SUBSTR (v_file_name,
                                               INSTR (v_file_name, '/') + 1
                                       CHR (10),
                                       NULL
                              CHR (13),
                              NULL
                  || '"'
                 -- close the headers
                 OWA_UTIL.http_header_close;
                -- download the BLOB
                 WPG_DOCLOAD.download_file (temp_blob);
                 -- release temporary blob
                 dbms_lob.freetemporary(temp_blob);  
       end;Regards,
    Tomas

  • ADM Error processing results from query: Error: Index 0 out of range

    11.1.2.1
    When running quite a large book, we are getting the following error:
    ADM Error processing results from query: Error: Index 0 out of range
    The individual reports in the books are running fine.
    PS.  The report books that are giving this error run fine on 9.3.1
    Could this be a time-out issue and how do we resolve it?

    what is background datasource Essbase or HFM
    do you have lot of data in pov please try below
    >Do you have pov prompt
    >increase jvm heap size for report server in reporting server
    >Fr log files has some more detail

  • How do I transfer photos from iPhoto to another computer keeping the "events"

    How do I transfer photos from iPhoto to another computer keeping the "events"

    Do you want to transfer the entire library?  If so just connect the two Macs together and copy the iPhoto Library from Mac A to Mac B and put it in your Pictures folder.  Be sure to rename it if you already have a library in the destination folder so as not to overwrite.
    Under no circumstances should you import a library into another library.
    OT

  • Exporting result of query to another input query (Write Cube )?

    Hello BI experts,
    Is it possible to send a result of a read cube / query to be saved into other write cube  / query ?
    If yes , how to do ?
    thx in advance

    Hello srini,
    I am tring to update ODS from a query as per your suggestion.
    But there is a Error
    ==========
    Error in the definition of the analysis process: See long text
    Node: Query 1
    The technical field name KYF_0002 for field 4CKMVZCDCO7A6PK7FT0GB7WCV may only appear once per input or output structure
    My quries is based on multiprovider and also has cell definition in it. Therefore i m not able to update result of query ods.
    what should be done?
    Thanks for your earlier siggestion.

  • How can i transfer files from forms10g to another machine..?

    Dear All,
    We would like to transfer image files from forms10g to another machine rather than Application server using webutil,
    Can any body give me a workaround for the same, because its occupying more space in the application server, so it would be better if we can able to transfer to another networked machine..
    Thanks in advance
    Thangaraj

    Actually we are not mapping machine name something in webutil.cfg file. We just need to specify the path that from where we will transfer the file from application server to client. And the time time of transfer the path you will
    choose for client webutil will transfer the file on that location automatically.
    -Ammad

  • How to transfer balances from Gl to another GL ??

    Hi all,
    How can we transfer open items balances from GL to another GL ?? When that need arises to the company ??
    Thank you..
    Suresh

    Hi,
    We transfer GL account balance from one GL a/c to another GL a/c in the following situations.
    When the GL a/c need to be maintained in Open item Management, say GL a/c belongs to a Balance sheet item but you have forgot to check the Open Item Management check box and made entries to that particular GL a/c.
    In this situation you can’t activate the Open item Management when the A/C is having balance, so first u need to make the GL a/c zero balance and than check Open item Management check box, follow the following steps.
    Create another dummy GL a/c, say ABC and the GL a/c which you want to make zero balance is having Dr Balance. Now make a posting using FB50 or F-02, you Dr the ABC GL a/c and Cr the other GL a/c so that the GL a/c balance becomes zero, now go to GL master and check the Open item Management check box. And again make posting through F-02 Crediting the ABC GL a/c and Debiting the other GL a/c.
    Hope this helpful, reward points in the way of expressing thanks

  • How do I transfer photos from iPhoto9 to another location on the same machine

    If I want to transfer photos from my iPhone, I am told that I have to use iPhoto. I have iPhoto 9, and I transfered the pix to iPhoto OK, but now I want to move them to Adobe Bridge and this where I seem to be having difficulty.
    Any help greatly appreciated for this old geezer!
    Mark

    Thanks Carolyn,
    Unfortunately, there isn't an IMPORT option in Adobe Bridge 6.
    There must be a way to do this, otherwise any photo that is in iPhoto would not be able to be worked on in Photoshop!
    Or am I going crazy?
    Thanks again

  • How to get result from query for ssrs?

    DECLARE @meter_number int
    SET @meter_number=25112
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    I executed this query it says command completed successfully how can it return results?

    Hi,
    Create a procedure as shown below in the database and while creating the Dataset in SSRS , Select Stored procedure as a source and call this newly created procedure using command EXEC Usp_Meter_Number 25112.
    The columns will automatically generated and u can use the columns.
    CREATE PROCEDURE Usp_Meter_Number
    @meter_number int
    AS
    BEGIN
    IF @meter_number IN (SELECT meter_number FROM ods.pmc.meter_registers)
    BEGIN
    SELECT 'LA' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    -- , ih.transaction_date_gmt
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca --#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    ELSE IF @meter_number in (SELECT meter_number FROM ods.pmc_dr01.meter_registers)
    BEGIN
    SELECT 'PHX' as [data_center]
    , t.request_time_gmt
    , aca.transaction_id
    , aca.meter_number
    , CONVERT(date, aca.ship_date_gmt) as ship_date
    , aca.user_name
    , p.confirmation_number
    , p.origin_zip
    , p.destination_zip
    , p.destination_zip_addon
    , p.base_postage_cost
    , p.mail_class_id
    , p.weight_ounces
    , p.delivery_confirmation
    , cil.ascending_register
    , ih.from_name, ih.from_company, ih.from_address_line_1, ih.from_address_line_2, ih.from_city, ih.from_state, ih.from_zip
    , ih.to_name, ih.to_company, ih.to_address_line_1, ih.to_address_line_2, ih.to_city, ih.to_state, ih.to_zip
    FROM ods.sws.create_indicium_log aca--#USPS_Amazon_Cust_Activity aca
    JOIN ods.sws_dr01.prints p (NOLOCK)
    ON aca.transaction_id = p.transaction_id
    JOIN ods.sws_dr01.transactions t (NOLOCK)
    ON aca.transaction_id = t.transaction_id
    JOIN ods.sws_dr01.create_indicium_log cil (NOLOCK)
    ON aca.log_id = cil.log_id
    LEFT JOIN ods.pmc_dr01.indicium_history ih
    ON p.confirmation_number = ih.confirmation_number
    END
    END
    Please have look on the comment

  • Transfer Quantity from Project to another

    Hello Dears,
    My Scanairo is :
    allocate the quantities on the project in the inventory by Move order , if i used some quantities and want to transfer the other to another project or return to the inventory.
    how can i do this?
    thanks

    Hi
    I understand you have item on hand quantity in Inventory.
    Assuming you have enabled Project Manufacturing then inventory on hand quantities are kept on separate locators, based on projects and tasks.
    Items you purchased for a project are received into inventory at a project locator, and costs are interfaced to Oracle Projects as actual costs of that project.
    In Inventory you can use the transaction - Project Transfer that will move quantity from one project to another. The value of such transaction is interfaced to Oracle Projects as two expenditures - one negative that credit the original project costs, and the second is positive value added to the receiving project costs.
    Dina

  • Exclusive results from query

    CUSTOMER_ID            NAME
    100                   ANDREW
    200                   JAMES
    300                   SMITH
    400                   STEPHEN
    500                   OSCAR
    600                   JEAN
    700                   PADILLA
    800                   ROMANO
    ADDR_ID                  ADDR1          CITY          STATE         ZIP_CODE       CUSTOMER_ID
    110               ANDY ST             ABCD          PA          17102          100
    111               AY ST          BCD          NJ          08837          100
    112               NDY ST          ABCDE          NM          87102          100
    210               BW1 ST          ABCD1          NJ          08837          200
    211               BW2 ST          ABCD2          OH          81837          200
    212               BW3 ST          ABCD3          SC          91837          200
    213               BW4 ST          ABCD4          NC          21837          200
    214               BW5 ST          ABCD5          NJ          08837          300
    215               BW6 ST          ABCD6          OH          81837          300
    216               BW7 ST          ABCD7          SC          91837          300
    217               BW8 ST          ABCD8          PA          21837          300
    218               BW9  ST             ABCD9          NJ          08817          400
    219               BW10 ST             ABCD10             NY          81837          400
    220               BW11 ST             ABCD11             LA          91837          400
    221               BW12 ST             ABCD12             CA          21837          400
    222               BW13 ST             ABCD13             NJ          08817          500
    223               BW14 ST             ABCD14             NY          81837          500
    224               BW15 ST             ABCD15             LA          91837          500
    225               BW16 ST             ABCD16             CA          21837          500Hello All,
    I've the tables above and I want retrieve customers who have lived exclusively outside of a given state (SAY Pennsylvania), which means my query should return Customers with IDs 200, 400 and 500
    I've written the following query:
    SELECT TA.CUSTOMER_ID, TA.STATE FROM T_CUSTOMER TC, T_ADDR TA
    WHERE TC.CUSTOMER_ID = TA.CUSTOMER_ID AND
    TA.CUSTOMER_ID NOT IN (SELECT TA.CUSTOMER_ID FROM T_ADDR TA WHERE UPPER(STATE)='PA') AND
    TA.CUSTOMER_ID IN (SELECT TA.CUSTOMER_ID FROM T_ADDR TA WHERE UPPER(STATE)!='PA');This query retrieves the results , but I want to know :
    1) Is this query by itself good enough , in terms of performance, because I'm going to hit tables that have millions of records (assume that all the proper indexes are in place)
    2) Is there a better way of writing this query?
    To make it easier to look at the data, here is where all the customers have lived:
    100     NJ,     NM,     PA
    200     NC,     NJ,     OH,     SC
    300     NJ,     OH,     PA,     SC
    400     CA,     LA,     NJ,     NY
    500     CA,     LA,     NJ,     NYSo, since customer_ids 100 & 300 have lived in PA , I don't want those in the results.
    Thanks in advance
    Shravan

    @Solomon - Many Thanks for suggesting an alternative way. I think this is what I was looking for.
    @rp0248
    Why does it matter? See answer to first question above. Because, if you see the way I've written the query compared to what Solomon had come up with, my query needs to run two almost similar inner queries
    SELECT TA.CUSTOMER_ID FROM T_ADDR TA WHERE UPPER(STATE)='PA' and
    SELECT TA.CUSTOMER_ID FROM T_ADDR TA WHERE UPPER(STATE)!='PA' twice and then compare the result sets ,
    where as solomon's query would fetch one result set and will just do the counting.
    So, in my opinion(and I'm not even average in SQL development skills), I would think my query would possibly take longer given all other conditions like the one you mentioned (stats, indexes etc.,) are met.
    I guess I've used wrong word 'performance' in my question. I'm looking for alternative ways of writing my query that would possibly have less no. of reads /computes /comparisons.
    Please read the FAQ at the top of the thread list for 'How to post a tuning request' and for the info needed.I definitely will. Thanks

  • Transfer properties from query properties

    Hi,
    I am having a problem when i try to change query properties in a web report. After i change what i need, y press the Transfer button but it never takes those changes, and the query properties window is never closed. i checked the page and when y press this button it gets a javascript error that says that the server is not available. This has always happened. My BW version is 3.5 with this level of packages: SAPKA64013
    SAPKB64013
    SAPKIPYI66
    SAPKW35012
    SAPKIBIFP6.
    This error happens in development and in production systems.
    Regards,
    Diego Lombardini

    hi,
    you may need to check your bw front end support package level
    from BEx Analyzer, menu 'business explorer'->'help'->'about'
    you will get Version 3500.X.yyy -> X is the sp level
    the latest sp for bw 3.5 front end is 7, can be downloaded here (need oss id)
    https://smpdl.sap-ag.de/~swdc/012002523100000192542005D/bw350_7-10001615.exe
    hope this helps.

  • Is there an easy way to transfer contacts from iphone to another phone?

    My company will no longer support/pay for my iphone and I need to transfer my contacts out of my iphone and into a new phone, is there any easy way to do this or am I stuck with writing my contacts down and re0entering them into a new phone?

    You should be syncing your contact to your computer.
    You can probably find a way to get the contacts from your computer to your new phone.

  • How to update multiple tables using results from query

    I'm a bit rusty on this stuff and am hoping for some help.
    Table 1 is:
    location_id, location_name
    Table 2 is
    location_id, employee_id and misc. other columns
    Then there are multiple tables with associated data, keys being location_id and employee_id.
    There are no established relationships.
    Trying to come up with a process to change location_id for all employees assigned to a particular location.
    It seems to me that the basics are
    select employee_id from Table2 where location_id='xxxxxx'
    Then take each employee_id returned and change their location_id in each of the other tables
    I'm not clear on how to load the returned employee id's as variables and then loop through them.
    Thanks

    Thanks for the welcome. I'll read up on the rules now.
    Below is the DDL for a couple of the tables.
    Version = 11g
    I would query the users table for all users with a certain site_id and then use them to update the site_id in the users table (and other tables)
    -- DDL for Table USERS
    CREATE TABLE "USERS"
    (     "USERID" VARCHAR2(8 BYTE),
         "PASSWORD" VARCHAR2(50 BYTE),
         "FIRST_NAME" VARCHAR2(50 BYTE),
         "LAST_NAME" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "ROLE_ID" VARCHAR2(1 BYTE)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;
    -- DDL for Table EMPLOYEE_PROFILE
    CREATE TABLE "EMPLOYEE_PROFILE"
    (     "EMPLOYEEID" VARCHAR2(9 BYTE),
         "PROGRAM" NUMBER,
         "REQUIREMENT" NUMBER,
         "JOBNUM" VARCHAR2(50 BYTE),
         "STATUS" VARCHAR2(50 BYTE),
         "PROGRAM_TYPE" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "NUM_QUAL_TEST_ATTEMPTS" NUMBER(7,0)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;

  • Transfer iTunes from iMac to another iMac

    I have purchased a new iMac and want to transfer my iTunes library from my old iMac, pls can you tell me how to do this and I do have a iCloud account if hat helps?

    Welcome to the Apple Support Communities
    You have multiple ways to do it. If you want to transfer more things from your old iMac, you can use Migration Assistant > http://support.apple.com/kb/HT4889
    If you want to transfer the iTunes library only, you can copy the iTunes library to an external disk > http://support.apple.com/kb/HT1751 Then, connect the external disk to your new iMac, open it on Finder and move "iTunes" folder to Music folder, so your iTunes library will appear the next time you open iTunes

Maybe you are looking for

  • Can we show / hide the minor grid in a graph programatically?

    I know how to do it statically and I know how to show / hide the major grid programatically. I am using labview 6.0. thanks

  • Quick Flash/operating system question

    Is it THAT necessary for me to upgrade one of the systems here to Win XP for Flash 8? Can I get by with the Win 2000 Professional? I kind of need to know NOW... Thanks, Jacki

  • I thought H.264 was DVD compliant!?

    When i export my video as a H.264 compressed quicktime movie with no sound, why is DVD Studio Pro telling me it is an incompatible format when I import it? I just don't get it.

  • Hi, streaming doesn't work

    since i upgraded to maverick my internet website doesn't work with a message error port 50049 not open but with netscan communication is noted established?

  • Not Receiving Emails from my Gmail Account in Mail

    I am not receiving my e-mails from my Gmail account. I have not received any since 31 Dec 2010. I have gone thru the Gmail web site to look at my mail & I have received several since 31 Dec. I've used the Connectivity Doctor & all three go green, but