Query Copying

Hi Friends
I have developed a cube B from cube A
Now i need to Copy the query developed on Cube A to Cube as .
Whats the process that i need to follow.
Regards
Sundaresan

Hi Bhanu
I tried to copy in that way but its getting copied.
What mght be the problem.
I have even created a test query under that but its not copying.
regards
sundaresan

Similar Messages

  • SAP QUERY copied to z program.

    Hi ,
    There was an standard sap query ,system had generated a program for this ,this program is copied to a Zprogram and some modificationa had been done for the zprogram in_sap4.7_ version.Now they want this z program to be copied to ECC6.0.Here my question is as the z program is a copy of ssystem generated program,if we copy this program to ecc6.0 will it work or not?.

    I don't think it will work. in the generated program you can see some function modules also. those functions will be in SAP name space. Better recreate the same in ECC6.0, instead of copying the code.

  • Query copy

    HI,
    Any one can let me know how to copy existing query
    on first ods object to the another ods .
    Thanks
    upen

    HI Upen.
       Use TCode : RSZC to copy queries.
    More info at:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/f57539d6d1c93be10000000a114084/content.htm
    Hope it Helps
    Srini
    Message was edited by: Srini

  • Query - copy layout - really need this

    Hello,
    is there a way, a workaround, or what so ever to
    copy / download a Layout of a Query.
    (and then import it ... )
    I really need this so please explain me how I could do this!
    thx in advance!
    greetings
    Steven

    Micky,
    I already knew how to transport a query itself but my problem
    is that there are "layouts" designed (and assigned) to these query.
    so when i want to copy or transport a query, i also want to transport/copy the
    layouts that are created...
    example: Query Q has 2 layouts assigned to it (L1 and L2)
    so now, I want to copy Q > Q2 so that it also has those two layouts included
    so if you know a trick to copy a query (with the layouts inside - or a way to assign these layouts afterwards)
    please let me know!!
    thx already for your reaction

  • Bex query copy with variants

    Hi,
    How do we copy a Bex query with variants?
    thanks in advance.
    regards,
    Prasad

    Hi VaraPrasad,
    The query can be copied using the transaction RSZC between the cubes.
    Regards
    Rohit

  • New query copying from existing query

    Hi,
       I want to create a new query through query designer. New query should be same as existing one query.
    That is i want my new query will be a copy of existing query. let me guide how to make a new query which is copy of existing one.
    Regards
    Deep

    Hi,
    As told above you can copy Queries from one Target to another Target by RSZC, if the fields are same in both the Info Providers.
    Or else open your existing Query and slect Save as give new Technical name.
    Reg
    Pra

  • Error while copy query between infocubes

    I was trying to copy a query between infocubes and ended with error message.
    Query copied from Infocube A to Infocube B. Infocube B has an additional dimension with 2 char's when compared to infocube A.
    Using transaction RSZC, I tried to copy the query, but ended up with following error..
    1.Program error in class COPY_QRY_TO_CUBE method : UNCAUGHT_EXCEPTION
    2.An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
    3.The system tried to insert a data record, even though a data record with the same primary key already exists
    I also tried using function module RSZ_I_COPY_QRY_TO_CUBE, which was of no help. I get the following message with the function module...
    1. Program error in class RS_TESTFRAME_CALL method : UNCAUGHT_EXCEPTION
    2. An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
    3. The system tried to insert a data record, even though a data record with the same primary key already exists
    I have also tried a solution in BW expert by using debugging mode of the above function module, again this was of no help..
    I am BI 7.0 SP09...
    Any ideas, Please....
    Thanks,
    RR
    Message was edited by:
            Ray R

    Hello,
    Are you trying to copy Business Content delivered Queries?
    I had also got this error when copying over all queries from one cube to another. Reason for this message was plain simple - I did not realise that the sender Cube had Business Content Query which we cannot copy over using RSZC as system tries to create another query with suffix as 0****_1. We cannot create query in SAP user namespace. Error message is different then the reason behind it.
    Thanks
    Ravi

  • Error after Copying Query from Cube to Multiprovider

    Hi ,
    I have One cube which  is running fine . Now I have created one Multiprivider  which has only the Cube . Copied the Query in the Cube to the Multiprovider through RSZC transaction .
    Now the Query copied to Multiprovider  is giving error while executing .some SALAR etc ...
    Not sure what does this error mean .
    can anyone help me pls ?
    Thanks
    pankaj

    Hi
    While copying the query using RSZC it will list all the calculated keyfigures you can select the specific keyfigure and click on transfer selections.
    Thanks

  • [SQ01] Copy query from /SAPQUERY/AM

    Hi there. I try to copy a 01 query from /SAPQUERY/AM usergroup to my testgroup (ZWOP) to have possibility working with report copy.
    But when I  enter /SAPQUERY/AM then choose 01 and press 'Copy' icon, the default target usergroup is /SAPQUERY/AM and I can't change it into ZWOP.
    When I try to put a copy into /SAPQUERY/AM, I receive Object can only be created in development class for namespace /SAPQUERY/
    1) Could You tell me how to make that query copy ?
    2) Is there a possibility to define report structure with variants to show different report structure depending on CompanyCode ?

    Thank's for help! That's what I'm searching for
    But now I have another problem.
    I copied usergroup into my test ZWOP group with all queries. But there is a problem, because InfoSet /SAPQUERY/AM01 need some modifications to meet the requirements.
    For example I need to have possibility to add info about Asset's Serial Number in my query.
    So I copied /SAPQUERY/AM01 into my ZAM InfoSet. Then make modifications on the copy (ZAM), generate (button 'Generate'). In the next step I applied ZAM InfoType to ZWOP usergroup.
    Now when I try to edit my query (copy of original 01), I can't see Serial Number on the components list so I can't add that info to report
    I've noticed that when I give my ZWOP usergroup to SQ01, there is still '/SAPQUERY/AM01' InfoSet assigned to query. How can I change that InfoSet to my ZAM ? Maybe that could solve the problem
    Edited by: Piotr Wojciechowski on May 8, 2008 4:27 PM

  • How-to copy a query from a cube to another cube w/ the same structure?

    Dear All,
    Does anybody know if it is possible to copy a query, in the same system, from a cube to another cube (or multi-cube) which has the same structure?
    Thanks!
    Ioan

    Hi Ioan,
    Micheal is right.
    also you can do this another way. from the main menu of BW go to Business Explorer---> Query -
    > Copy.
    Regards,
    Reddy

  • Query using link server to an Oracle database failswhile similar query works

    I have two queries almost the same that use a link to an Oracle database. One works ok, the other is a copy of the first with a few fields selects removed.  The first one works fine, the copy fails with: Cannot get the data of the row from the OLE DB
    provider "OraOLEDB.Oracle" for linked server "linkname".
    They are so similar, why would one work but not the other? 
    First query, this one works:
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    CREATE
    PROCEDURE [dbo].[procedure_name]
    -- Add the parameters for the stored procedure here
    @Begindate  Datetime,
    @Enddate Datetime
    AS
    BEGIN
    --SET NOCOUNT ON added to prevent extra result sets from
    --interfering with SELECT statements.
    SET NOCOUNT
    ON;
    -- Insert statements for procedure here
    select p.patientid, p.testid,
    mdx."Dx_4", td.acquisitiondatetime_dt, td.democompletedatetime_dt,
    td.editdatetime_dt,
    CAST(STUFF(STUFF(mn."Arrival_Time_9",
    9, 0,
    ' '), 12, 0,
    AS datetime)
    as Arrival_date,
    CAST(STUFF(STUFF(mt."Comp_D_T_22",
    9, 0,
    ' '), 12, 0,
    AS datetime)
    as Order_date, td.confirmdatetime_dt
    (CAST(DATEDIFF
    (MINUTE,
    CAST (STUFF
    (STUFF
    (MN."ARRIVAL_TIME_9", 9,0,
    ' '), 12, 0,
    AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT) 
    as char(10))
    + 'min')
    AS "ARRIVAL TO COMPLETE",
    (CAST(DATEDIFF
    (MINUTE,
    CAST (STUFF
    (STUFF
    (MT."COMP_D_T_22", 9,0,
    ' '), 12, 0,
    AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT)
    as char(10))
    + 'min') 
    AS "ORDER TO COMPLETE"
    from linknametosqldb.sqldbname.dbo.tstpatientdemographics
    as p inner
    join linknametosqldb.sqldbname dbo.tsttestdemographics
    as td on p.testid
    = td.testid
    left
    outer join linknametooracledb."M01Tab01_Main" mn
    on td.visitnumber
    = mn."Pt_Acct_5"
    inner
    JOIN linknametooracledb."M01Tab06_Ord" mt
    ON mn."Master_Recid_1"
    = mt."Master_Recid_1"
    inner
    join linknametooracledb."M01Tab09_Dx" mdx
    on mn."Master_Recid_1"
    = mdx."Master_Recid_1"
    where td.location
    in (2, 4)
    and mt.order_4
    like 'EKG%' 
    and mdx."Dx_4"
    like '%Chest Pain%'
    and
    (td.acquisitiondatetime_dt
    >= @Begindate and td.acquisitiondatetime_dt
    < @Enddate)
    order
    by p.patientfullname_last, p.patientfullname_first
    END
    GO
    Second query, copied from first with some fields selects removed, this does not work:
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    CREATE
    PROCEDURE [dbo].[procedure_name_2]
    -- Add the parameters for the stored procedure here
    @Begindate  Datetime,
    @Enddate Datetime
    AS
    BEGIN
    --SET NOCOUNT ON added to prevent extra result sets from
    --interfering with SELECT statements.
    SET NOCOUNT
    ON;
    -- Insert statements for procedure here
    select p.patientid, mdx."Dx_4",
    td.democompletedatetime_dt,
    CAST(STUFF(STUFF(mn."Arrival_Time_9",
    9, 0,
    ' '), 12, 0,
    AS datetime)
    as EDIS_Arrival_date,
    (CAST(DATEDIFF
    (MINUTE,
    CAST (STUFF
    (STUFF
    (MN."Arrival_Time_9", 9,0,
    ' '), 12, 0,
    AS DATETIME), TD.DEMOCOMPLETEDATETIME_DT) 
    as char(10))
    + 'min')
    AS "ARRIVAL TO COMPLETE"
    from linknametosqldb.dbo.tstpatientdemographics
    as p inner
    join linknametosqldb.dbo.tsttestdemographics
    as td on p.testid
    = td.testid
    left outer
    join linknametooracledb."M01Tab01_Main" mn
    on td.visitnumber
    = mn."Pt_Acct_5"
    inner
    JOIN linknametooracledb."M01Tab06_Ord" mt
    ON mn."Master_Recid_1"
    = mt."Master_Recid_1"
    inner
    join linknametooracledb M01Tab09_Dx" mdx
    on mn."Master_Recid_1"
    = mdx."Master_Recid_1"
    where td.location
    in (2, 4)
    and mt.order_4
    like 'EKG%' 
    and mdx."Dx_4"
    like '%Chest Pain%'
    and
    (td.acquisitiondatetime_dt
    >= @Begindate and td.acquisitiondatetime_dt
    < @Enddate)
    order
    by p.patientid
    END
    GO
    Thanks very much for any help with this.

    * Consider putting parentheses around the 3 oracle tables so the 3 of them can possibly be treated as a unit.  Assuming there's some performance impact due to the linked server, this MIGHT help, may do a little joining over on the Oracle side of
    the world.  In either case, it's a little cleaner.  They syntax below, including a few extra line breaks for clarity, should be correct.  (try the change to the ON clause suggested above too, though).
    The parentheses will not help much. SQL Server will remote (as the term is) the query to the Oracle instance if this appears to have a lower cost and there is nothing the blocks remoting.
    On the other hand, OPENQUERY can be an alternative to ensure that this happens:
     left outer join
        OPENQUERY (linknametooracledb,
                   'SELECT ...
                    FROM   "M01Tab01_Main" mn
                    JOIN   "M01Tab06_Ord" mt ON mn."Master_Recid_1" = mt."Master_Recid_1"
                    JOIN   "M01Tab09_Dx" mdx on mn."Master_Recid_1" = mdx."Master_Recid_1"') mn on td.visitnumber = mn."Pt_Acct_5"
    But this presumes that you there are no columns from the SQL Server side that are used to select data from the Oracle side. That is, the above could lead to far much data being brought across the wire.
    Then again, this does not really seem to relate to the original problem where a stored procedure was not working at all. That problem is not very easy to assist with since code post is the not the authentic code as pointed out in the thread. For instance
    inner JOIN linknametooracledb."M01Tab06_Ord"
    Has nothing to do with Oracle, but accesses a table in the schema linknametooracledb.
    I think to help dmcm, you need a really good crystal ball - at least as long he/she does not share the actual code.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Analyze: PL/SQL function body returning an SQL query

    I need to obtain the final SQL returned by the PL/SQL function.
    I will be using this final SQL in a procedure.
    Please provide some advise on how to obtain the SQL. I have already looked in the DBMS_SQL package but I am not sure if that is the right place to look into.
    Regards,
    Sumit

    I am trying to modify the export_to_excel package from Denes kubicek to provide me an excel from PL/SQL function body returning an SQL query.
    Here is the simplified PLSQL code in the region source.
    declare
    l2 varchar2(2000) null;
    begin
    l2:= 'Select NAME,ORIGINATED,OWNER,ORIGINATOR,';
    l2:= l2 || 'DESIGNATED_UNIT,SOURCE,';
    l2:= l2 || 'REFERENCE';
    l2:= l2 || ' from MV_DETAILED_DATA';
    return l2;
    end;
    I would like to get the SQL returned from this PLSQL and use it in a procedure to get the Excel.
    As you mentioned earlier "copy the generated query string into an application item". [ +In the PL/SQL function body returning an SQL query, copy the generated query string into an application item. The app item value can then be passed as a parameter value to the procedure+ ]
    I do not know how to dynamically excute this PLSQL in the region source and obtain the returned value in my procedure.
    Best Regard,
    Sumit.

  • Can't open bw7 query from desinger.

    hi exports,
         I have created a query , and created the connection to conn the query successful.
    but I can't create a universe use this connection.
    it shows:
       " [BusinessObjects115.OLAPI.Cube.1] : variable do not belong to the mutilCube 's dimension,[0CALDAY],therefore the application could not be opened."
    how to resolve this error?
    Thanks.

    Hi,
    ok. Can you please answer the following questions?
    1) Does your query run in the BEx analyzer?
    2) Do you use 0CALDAY in your query? If yes, can you save a copy of it, remove any reference to 0CALDAY (for the query copy) and try to build a universe (using the copy)?
    3) What BOBJ version are you using? Any fix packs installed?
    Regards,
    Stratos

  • Query enhancments in purchasing

    Hi,
    Please help me out with Query copying and changes to the query in purchasing.
    thanks

    Are you looking for these queries:
    http://help.sap.com/saphelp_nw04/helpdata/en/80/a78b3ad7908f2ce10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5f/51be38624fc876e10000009b38f889/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/74/a511399175f302e10000000a11405a/content.htm

  • How to create a query using the requirements given ? step by step  plz

    REQUIREMENTS
    1)     Model- Use multiprovider ZXT_MXXX as infoproviders
    2)     Query- copy ‘ZXT_MXXX_QYYY’ as head start
    <b>b.     Fields for output</b>
    1.     Hourly Rate-- I know its dataflow .It comes from infotype IT yyyy
    Program name MPyyyy00 and query name QXXXX-XXXX
    So can I Get this feild to Query Designer
    2.     CC /WBS/IO on ITyyyy--?
    I know dataflow .they come from infotype IT yyyy
    Program name MPyyyy00 and  3 different fields.
    So how can I Get cc/wbs to Query Designer?
    Can anyone suggests steps to do it plz..

    Check the<b> ZXT_MXXX</b>  multiproivder is based on what all infoproviders..
    Check in your infoproviders..for this <b>CC /WBS/IO</b>field..
    If it is avialable in the underlying infoproviders, it should be available for your reporting on multiprovider..
    Regards
    Manga

Maybe you are looking for

  • QoS: Multiple acl entries cannot be used in match-any in class Match_XY

    Hello All, I'm getting below error while trying to add the two extended ACL in the class-map for classifying the traffic. Is there any way I can add two extenteded ACL in the same class-map for classifying the traffic. Error log: "QoS: Multiple acl e

  • Bind variables in DB Connect SQL Statement in Oracle

    We are looking for ways to improve performance of DB Connect extract from an Oracle database. An example command that is created by the Info-Package using a DB-Connect: Current SELECT "A", "B", "C", "D", "E", "F", "G", "H" FROM "GSF_BW"."V_BW_FORCAST

  • Where is Network Diagnostics program?

    When I am having network problems, I find the most useful program is the network diagnostics program that automatically pops up when safari is having problems with the connection. It usually pop ups after a minute or two, but I would like a way to qu

  • How to edit progress with interlace in FNC

    Hello,Client shot majority XDCam 1080i/50, however one important disk is shot 1080p/25 with canon 7d, and motion doesn't look good when the clip is brought broadcast, (like the same progressive frame is repeated and it flickers)...Does anyone have a

  • Trouble downloading CS5.5 Master collection Trial

    I've tried to download CS5.5 Master collection trial 3 times without success.  The entire download appears to finish (blue bar goes all the way across), however it gets stuck there and the time remains at "less than 1 minute."  Also, strangely...If y