Copy queries + variants + workbooks -- RSZC ?

BW Experts,
Using RSZC can we copy queries, variants and workbooks?
I have to make a copy of queries from the cube to the multicube.
Thanks,
BWer

Hi BWer.
You can copy your query like this:
1 Go to SE37
2 Type in RSZ_I_COPY_QRY_TO_CUBE
3 Press Display
4 Scroll down and look for this line in the code:
IF l_subrc <> 0 OR l_is_compliant = rs_c_false.
5 Position the cursor on the line and set a breakpoint by clicking the "stop" sign
6 Go back
7 Run the module by pressing F8
8 Type in your source + target cubes and press F8
9 You get to the debugger at the line where you set the breakpoint. Double click on l_is_compliant to make it show in "field names" (to the left) below the code.
10 Type in x in the "field contents" (to the right), press the pen symbol to the right of the line and press F8
11 Chose the query you want from the list and press "transfer selections"
12 Check the log: after all the error messages about the cubes not being identical, there should be one line with the green light of hope - this is your query that was copied
13 Check if all the objects in the query are available in the cube you copied to by opening the query from the query designer.
14 If some objects are missing in the cube you copied to, you'll have to fix this - If they are there, you can look busy for a couple of hours just doing your own thing and having everybody else think you are copying the query manually :-D
(you might want to change the query tech name by using "save as" from the query designer)
Enjoy,
Jacob
Message was edited by: Jacob Jansen
...and of course: If your system crashes or something like that when you try this, or as a consequence of trying this, I accept no responsibility :-D
I did this on BW 3.0B ... dunno how it will work on other versions...

Similar Messages

  • Copy Query Variants from InfoCube to MultiProvider

    Hi,
    Is it possible to copy query variants from an infocube to a multiprovider?
    Basically, we used RSZC to copy the queries from the infocube to the multiprovider, but it doesn't look like the variants were copied over. Is there an ABAP program or some other workaround that can expedite/facilitate in recreating the variants on the multiprovider queries?
    Your help is much appreciated.
    Thanks,
    KK
    Edited by: Kristin Kalalau on Jan 29, 2009 10:48 PM

    It is possible to copy but the only requirement is your target cube structure should match with the source cube structure.
    Thanks...
    Shambhu
    Edited by: Shambhu Kumar Gupta on Jan 30, 2009 12:01 PM

  • Copying query and workbook related to different Infoprovider

    Hi,
    I need to copy some queries from an ODS to a MULTIPROVIDER.
    I did the following:
    1) I used tr RSZC to copy the queries
    2) Erased them from ODS with tr RSZDELETE. When the dialog ask me if i want to delete the related workbooks y say NO.
    Now, i need to copy the workbooks that still reference the ODS Queries, but with the correct reference (Multiprovider). Is there any way to do this automatically???
    Any other transaction to copy all (query + workbooks related) at the same time?
    Now i´m editing each workbook manually to reference the correct provider, but  have lots of queries :S
    Thanks in advance.

    Nobody?

  • Errors while copying queries from Infoset to DSO in BI 7.0. Why

    Hi All,
    I am trying to copy queries from Infoset to DSO in BI 7.0.
    Message displayed after entering the data target names in Source Infocube (Infoset) & Target Infocube (DSO).
    : Errors when reading InfoObjects for InfoCube (Infoset).
    My Infoset has 2 queries.
    I need to copy only one query to the DSO which is part of the infoset. How can we achieve this.
    Please explain.
    Thanks

    Hi Murali,
    who said the target is different.
    The target is different in the sense, source is an Infoset & Target is an DSO.
    This DSO is a part of the above Infoset.
    RSZC works here but its giving errors as mentioned above.
    Regenerate in the sense, u mean i need to create the same again on DSO.
    Is there any other way.
    If providing some solution, let it be clear.
    Thanks.

  • Error while copying queries

    Hi Community,
                          I am trying to copy queries from Info Cube to Multiprovider using RSZC, I got error called
    "InfoObject 0MATERIAL__0DIVISION missing from target InfoCube ZSCMIM_M1"
    "InfoObject 0MATERIAL__MATL_CAT missing from target InfoCube ZSCMIM_M1"
    "InfoObject 0MATERIAL__MATL_GROUP missing from target InfoCube ZSCMIM_M1"
    "InfoObject 0MATERIAL__MATL_TYPE missing from target InfoCube ZSCMIM_M1"
    "InfoObject 0PLANT_COUNTRY missing from target InfoCube ZSCMIM_M1"
                I created Multiprovider with one basic info cube in BI 7.0. by draging dimensions,keyfigure, Unit, time  from left to right than I selected the "Select key figures Icon" --> Selected Create proposal for all Infoobjects" same as for Charecteristics.
                 I checked the attributes and charecterisctics they are active. Please help me ....
    Regds
    Dave.

    Hi sap Experts,
    I have problem  in the creation of Hierarchies.
    I am working in  BW 3.1 IDES
    TO_MAT is a CHAR, I have to create Hierarchy  for this. I have done the following,
    1.Under the Hierarchy Tab I enable Time dependent Hierarchy structure and activated.
    2.On Rt.click -->Create Hierarchy- Given Name and description
    Now  I am in  Hierarchy material Change: Modified version  window
    3.clicked Create Charactaristic Node button
    When I selelct the Info Object CHAR - [ " Info Object TO_MAT  is not entered for TO_MAT as a foreign Hierarchy Characteristic"] this error is coming. I tried with other CHAR also. advice me to correct this .
    Help will be Highly appreciated.
    Thanks.
    Hema

  • Copy/Create local copy queries in Production

    We´ve closed our Production environment for changes.
    The problem is that some users must have access to copy queries/workbooks (that were transported from DEV) to a local copy ($TMP), in order to make changes to the structure of these copied queries. It seems that when we click on "Save query as", BW tries to save it into a Request, but it should save it as Local.....
    How could it be achieved?
    Thank you in advance,
    Cris

    Use Tcode SU53 & then try creating/changing a query...The Authorization Object required for creating/changing a query is captured in SU53 screen.
    Authorizations are based on the values set for an Authorization Object.
    For Eg : If a value '01' is set against an Authorization Object it means that a Create Authorization is available.Like value '02' for change etc..,
    Get this authorization object with the necessary authorizations assigned to a role & have it assigned to the Users.

  • Bex Default template for Queries and Workbooks

    Dear All,
    We have a default template for all queries and workbooks.But this default template was created using a AP query and saved as a workbook.Now all the users having AR role are not able to execute queries or workbooks.Since this default template has a AP info provider associated with it.Is it possible convert this default workbook to a generic one without any security restrictions.Please provide a solution.

    In Bex analyzer, you have option to convert a template into a default template.
    Or you can create a copy of the existing template without AP infoproviders and assign it as default template.

  • Restricted key fields & copying queries.

    We created a multiprovider and wanted to copy some queries from an existing infocube.  We are using RSZC to do this.  The queries that we are coping use restricted key figures (RKF).  If the multiprovider does not have the RKF it copies it as well.  But it creates it with the extension _x. 
    So I copy two queries that both use a RKF named ZRKF, I end up with ZRKF_1 & ZRKF_2 defined in the multiprovider.  Is there any way I can copy queries over and get the needed RKF without having duplicates of the RKF?  (i.e. copy over ZRFK and not end up with ZRFK_1 & ZRFK_2)
    Thanks,
    Chris Robertson

    Hi Chris,
    If you copy all queries that you want from Cube A to Cube B in one shot, then you will be left with just RKF(s)_1.
    You can then attempt to remove this _1 off the RKF by modifying the record in SE16 > RSZCOMPDIR.
    Hope this helps...

  • Copying queries between cubes

    Hi,
    I would like to copy queries from a cube to a MultiProvider. Both have the same structure.
    I found the help at http://help.sap.com/saphelp_nw04/helpdata/en/9f/f57539d6d1c93be10000000a114084/content.htm . There it says:
    Result
    The copied queries and the copied sub-objects have their own names. The new names are derived from the name of the original object and the added elements _<number>.
    So the original query remains connected to my cube and a copy of this query will be created pointing to my MultiProvider. The technical name will change from e.g. "zmy_query" to "zmy_query_1". The same then applies to sub-objects (structures, calculated key figures and restricted key figures).
    Did I understand this correct?
    Thanks!

    Hi Steve,
    Structure can be re-usable where it holds multple number of CKFs/RKFs/KFs/Chars.... By using RSZC you can copy reports and its adjacent componets to other cube.
    We do this activity during enhancement activity, not to stop users from viewing reports.
    Regards,
    rvc

  • RSZDELETE - Delete queries and Workbooks problem

    Hi
    in BW 3.x we were able to delete the queries and workbooks with transaction RSZDELETE ;however in NW2004s we are not able to delete this,is there any limitation or this feature has been changed to another transaction ??
    Please help.

    Hi Kevin,
    It's still there.  As Prakash has suggested, the note must be applied.  On a similar topic for the tcode rszc please bear in mind this will be enhanched in SPS 10.
    Oss note 981104.
    Cheers,
    Pom

  • 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

  • Copy queries

    When copying query in BW 7.0 using RSZC, there is an error "General Control error".
    How could this be fixed?
    Is there another way to copy queries?

    Hi,
    If you want to copy a query,then you can Perform Save As in Query Designer applicaiton itself.It will just create a copy of a query and you can save it in a different name.
    Rgds,
    Murali

  • How can i copy the variant

    Hi abap gurus,
    Plz can any one tell how we can copy the variant from one client to another client.
    Plz give me the answer or any program is there plz send me that.
    Rgds,

    Hi rangamma,
    Plz go through  this program . I think it will help.
    DATA : BEGIN OF MYVARID OCCURS 0 .
            INCLUDE STRUCTURE VARID .
    DATA : END OF MYVARID .
    DATA : BEGIN OF MYVARIS OCCURS 0 .
            INCLUDE STRUCTURE VARIS .
    DATA : END OF MYVARIS .
    DATA : BEGIN OF MYVARIT OCCURS 0 .
            INCLUDE STRUCTURE VARIT .
    DATA : END OF MYVARIT .
    DATA : BEGIN OF MYVARI  OCCURS 0 .
            INCLUDE STRUCTURE VARI  .
    DATA : END OF MYVARI .
    DATA : MANS(1) TYPE C .
    DATA :   PROGRAMM LIKE RS38M-PROGRAMM  .
    DATA : BEGIN OF MDYNPFIELDS OCCURS 1 .
            INCLUDE STRUCTURE DYNPREAD .
    DATA : END OF MDYNPFIELDS .
    CONSTANTS BUTTONSELECTED(1) TYPE C VALUE 'X' .
    DEFINE GET_FILENAME .
      CALL FUNCTION 'WS_FILENAME_GET'
          EXPORTING
            DEF_FILENAME     = ' '
               DEF_PATH         = &1
               MASK             = ',.,..'
               MODE             = '0'
            TITLE            = ' '
          IMPORTING
               FILENAME         = &2
            RC               =
           EXCEPTIONS
                INV_WINSYS       = 1
                NO_BATCH         = 2
                SELECTION_CANCEL = 3
                SELECTION_ERROR  = 4
                OTHERS           = 5.
    END-OF-DEFINITION .
    DEFINE DOWNLOAD_TO_ASCII .
      CALL FUNCTION 'WS_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE            = ' '
            CODEPAGE                = ' '
               FILENAME                = &1
               FILETYPE                = 'DAT'
            MODE                    = ' '
            WK1_N_FORMAT            = ' '
            WK1_N_SIZE              = ' '
            WK1_T_FORMAT            = ' '
            WK1_T_SIZE              = ' '
            COL_SELECT              = ' '
            COL_SELECTMASK          = ' '
            NO_AUTH_CHECK           = ' '
       IMPORTING
            FILELENGTH              =
           TABLES
                DATA_TAB                = &2
            FIELDNAMES              =
           EXCEPTIONS
                FILE_OPEN_ERROR         = 1
                FILE_WRITE_ERROR        = 2
                INVALID_FILESIZE        = 3
                INVALID_TABLE_WIDTH     = 4
                INVALID_TYPE            = 5
                NO_BATCH                = 6
                UNKNOWN_ERROR           = 7
                GUI_REFUSE_FILETRANSFER = 8
                OTHERS                  = 9.
    END-OF-DEFINITION .
    DEFINE UPLOAD_FROM_ASCII .
      CALL FUNCTION 'WS_UPLOAD'
          EXPORTING
            CODEPAGE                = ' '
               FILENAME                = &1
               FILETYPE                = 'DAT'
            HEADLEN                 = ' '
            LINE_EXIT               = ' '
            TRUNCLEN                = ' '
            USER_FORM               = ' '
            USER_PROG               = ' '
       IMPORTING
            FILELENGTH              =
           TABLES
                DATA_TAB                = &2
           EXCEPTIONS
                CONVERSION_ERROR        = 1
                FILE_OPEN_ERROR         = 2
                FILE_READ_ERROR         = 3
                INVALID_TABLE_WIDTH     = 4
                INVALID_TYPE            = 5
                NO_BATCH                = 6
                UNKNOWN_ERROR           = 7
                GUI_REFUSE_FILETRANSFER = 8
                CUSTOMER_ERROR          = 9
                OTHERS                  = 10.
    END-OF-DEFINITION .
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_FROM_P .
    PARAMETERS : P_FROM_P LIKE RS38M-PROGRAMM OBLIGATORY .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_TO_P .
    PARAMETERS : P_TO_P LIKE RS38M-PROGRAMM OBLIGATORY .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_SAME_S .
    PARAMETERS : P_SAME_S RADIOBUTTON GROUP GRP1 DEFAULT 'X' .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_DOWNLD .
    PARAMETERS : P_DOWNLD RADIOBUTTON GROUP GRP1   .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_UPLOAD .
    PARAMETERS : P_UPLOAD RADIOBUTTON GROUP GRP1   .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_FILE_D .
    PARAMETERS : P_FILE_D  LIKE   RLGRAP-FILENAME DEFAULT 'c:\varid.txt' .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_FILE_S .
    PARAMETERS : P_FILE_S  LIKE   RLGRAP-FILENAME DEFAULT 'c:\varis.txt' .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_FILE_T .
    PARAMETERS : P_FILE_T  LIKE   RLGRAP-FILENAME DEFAULT 'c:\varit.txt' .
    selection-screen end of line.
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 5(23) T_FILE   .
    PARAMETERS : P_FILE    LIKE   RLGRAP-FILENAME DEFAULT 'c:\vari.txt' .
    selection-screen end of line.
    AT SELECTION-SCREEN .
      PROGRAMM = P_FROM_P .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE_D .
      GET_FILENAME 'c:\varid.txt' P_FILE_D .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE_S .
      GET_FILENAME 'c:\varis.txt' P_FILE_S .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE_T .
      GET_FILENAME 'c:\varit.txt' P_FILE_T .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE .
      GET_FILENAME 'c:\vari.txt' P_FILE .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FROM_P .
      CLEAR  MDYNPFIELDS . REFRESH MDYNPFIELDS .
      MDYNPFIELDS-FIELDNAME = 'P_FROM_P' .
      APPEND  MDYNPFIELDS .
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME               = SY-CPROG
                DYNUMB               = SY-DYNNR
           TABLES
                DYNPFIELDS           = MDYNPFIELDS
           EXCEPTIONS
                INVALID_ABAPWORKAREA = 1
                INVALID_DYNPROFIELD  = 2
                INVALID_DYNPRONAME   = 3
                INVALID_DYNPRONUMMER = 4
                INVALID_REQUEST      = 5
                NO_FIELDDESCRIPTION  = 6
                INVALID_PARAMETER    = 7
                UNDEFIND_ERROR       = 8
                DOUBLE_CONVERSION    = 9
                STEPL_NOT_FOUND      = 10
                OTHERS               = 11.
      READ TABLE MDYNPFIELDS INDEX 1 .
      PROGRAMM = MDYNPFIELDS-FIELDVALUE .
      CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
           EXPORTING
                OBJECT_TYPE          = 'PROG'
                OBJECT_NAME          = PROGRAMM
           IMPORTING
                OBJECT_NAME_SELECTED = PROGRAMM
           EXCEPTIONS
                CANCEL               = 1
                WRONG_TYPE           = 2
                OTHERS               = 3.
      P_FROM_P = PROGRAMM .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TO_P .
      CLEAR  MDYNPFIELDS . REFRESH MDYNPFIELDS .
      MDYNPFIELDS-FIELDNAME = 'P_TO_P' .
      APPEND  MDYNPFIELDS .
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME               = SY-CPROG
                DYNUMB               = SY-DYNNR
           TABLES
                DYNPFIELDS           = MDYNPFIELDS
           EXCEPTIONS
                INVALID_ABAPWORKAREA = 1
                INVALID_DYNPROFIELD  = 2
                INVALID_DYNPRONAME   = 3
                INVALID_DYNPRONUMMER = 4
                INVALID_REQUEST      = 5
                NO_FIELDDESCRIPTION  = 6
                INVALID_PARAMETER    = 7
                UNDEFIND_ERROR       = 8
                DOUBLE_CONVERSION    = 9
                STEPL_NOT_FOUND      = 10
                OTHERS               = 11.
      READ TABLE MDYNPFIELDS INDEX 1 .
      PROGRAMM = MDYNPFIELDS-FIELDVALUE .
      CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
           EXPORTING
                OBJECT_TYPE          = 'PROG'
                OBJECT_NAME          = PROGRAMM
           IMPORTING
                OBJECT_NAME_SELECTED = PROGRAMM
           EXCEPTIONS
                CANCEL               = 1
                WRONG_TYPE           = 2
                OTHERS               = 3.
      P_TO_P = PROGRAMM .
    INITIALIZATION .
      T_FROM_P = 'From Program'.
      T_TO_P   = 'To Program  ' .
      T_SAME_S = 'Copy from Prog to Prog' .
      T_DOWNLD = 'Download to Local Disk' .
      T_UPLOAD = 'Upload from Local Disk' .
      T_FILE_D = 'Local File VARID' .
      T_FILE_S = 'Local File VARIS' .
      T_FILE_T = 'Local File VARIT' .
      T_FILE   = 'Local File VARI' .
    START-OF-SELECTION .
      CASE BUTTONSELECTED.
        WHEN P_SAME_S .
          PERFORM COPY_FROM_PROG_TO_PROG .
        WHEN P_DOWNLD .
          PERFORM VDOWNLOAD .
        WHEN P_UPLOAD .
          PERFORM VUPLOAD .
      ENDCASE .
    FORM COPY_FROM_PROG_TO_PROG.
      CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
           EXPORTING
            DEFAULTOPTION  = 'Y'
               TEXTLINE1      = 'Are you sure you want to copy Variants ? '
            TEXTLINE2      = ' '
                TITEL          = 'Confirmation '
            START_COLUMN   = 25
            START_ROW      = 6
            CANCEL_DISPLAY = 'X'
          IMPORTING
               ANSWER         = MANS
           EXCEPTIONS
                OTHERS         = 1.
      IF MANS = 'J' .
        REFRESH MYVARID . CLEAR MYVARID .
        SELECT * FROM VARID  INTO TABLE MYVARID
                            WHERE REPORT = P_FROM_P.
        LOOP AT MYVARID .
          MYVARID-REPORT = P_TO_P .
          MODIFY MYVARID .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARID WHERE REPORT = P_TO_P .
          INSERT VARID FROM TABLE MYVARID .
        ENDIF .
        REFRESH MYVARIS . CLEAR MYVARIS .
        SELECT * FROM VARIS  INTO TABLE MYVARIS
                            WHERE REPORT = P_FROM_P.
        LOOP AT MYVARIS .
          MYVARIS-REPORT = P_TO_P .
          MODIFY MYVARIS .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARIS WHERE REPORT = P_TO_P .
          INSERT VARIS FROM TABLE MYVARIS .
        ENDIF .
        REFRESH MYVARIT . CLEAR MYVARIT .
        SELECT * FROM VARIT  INTO TABLE MYVARIT
                            WHERE REPORT = P_FROM_P.
        LOOP AT MYVARIT .
          MYVARIT-REPORT = P_TO_P .
          MODIFY MYVARIT .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARIT WHERE REPORT = P_TO_P .
          INSERT VARIT FROM TABLE MYVARIT .
        ENDIF .
        REFRESH MYVARI . CLEAR MYVARI .
        SELECT * FROM VARI   INTO TABLE MYVARI
                            WHERE REPORT = P_FROM_P.
        LOOP AT MYVARI  .
          MYVARI-REPORT = P_TO_P .
          MODIFY MYVARI  .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARI WHERE REPORT = P_TO_P .
          INSERT VARI FROM TABLE MYVARI .
        ENDIF .
      ENDIF .
    ENDFORM.                               " COPY_FROM_PROG_TO_PROG
    FORM VDOWNLOAD.
      REFRESH MYVARID . CLEAR MYVARID .
      SELECT * FROM VARID  INTO TABLE MYVARID
                          WHERE REPORT = P_FROM_P.
      DOWNLOAD_TO_ASCII  P_FILE_D  MYVARID .
      REFRESH MYVARIS . CLEAR MYVARIS .
      SELECT * FROM VARIS  INTO TABLE MYVARIS
                          WHERE REPORT = P_FROM_P.
      DOWNLOAD_TO_ASCII P_FILE_S  MYVARIS .
      REFRESH MYVARIT . CLEAR MYVARIT .
      SELECT * FROM VARIT  INTO TABLE MYVARIT
                          WHERE REPORT = P_FROM_P.
      DOWNLOAD_TO_ASCII P_FILE_T  MYVARIT .
      REFRESH MYVARI . CLEAR MYVARI .
      SELECT * FROM VARI   INTO TABLE MYVARI
                          WHERE REPORT = P_FROM_P.
      DOWNLOAD_TO_ASCII P_FILE  MYVARI .
    ENDFORM.                               " VDOWNLOAD
    FORM VUPLOAD.
      CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
           EXPORTING
            DEFAULTOPTION  = 'Y'
               TEXTLINE1      =
               'Are you sure you want to upload Variants ? '
            TEXTLINE2      = ' '
                TITEL          = 'Confirmation '
            START_COLUMN   = 25
            START_ROW      = 6
            CANCEL_DISPLAY = 'X'
          IMPORTING
               ANSWER         = MANS
           EXCEPTIONS
                OTHERS         = 1.
      IF MANS = 'J' .
        REFRESH MYVARID . CLEAR MYVARID .
        UPLOAD_FROM_ASCII P_FILE_D MYVARID .
        LOOP AT MYVARID .
          MYVARID-REPORT = P_TO_P .
          MODIFY MYVARID .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARID WHERE REPORT = P_TO_P .
          INSERT VARID FROM TABLE MYVARID .
        ENDIF .
        REFRESH MYVARIS . CLEAR MYVARIS .
        UPLOAD_FROM_ASCII P_FILE_S MYVARIS  .
        LOOP AT MYVARIS .
          MYVARIS-REPORT = P_TO_P .
          MODIFY MYVARIS .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARIS WHERE REPORT = P_TO_P .
          INSERT VARIS FROM TABLE MYVARIS .
        ENDIF .
        REFRESH MYVARIT . CLEAR MYVARIT .
        UPLOAD_FROM_ASCII P_FILE_T MYVARIT  .
        LOOP AT MYVARIT .
          MYVARIT-REPORT = P_TO_P .
          MODIFY MYVARIT .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARIT WHERE REPORT = P_TO_P .
          INSERT VARIT FROM TABLE MYVARIT .
        ENDIF .
        REFRESH MYVARI . CLEAR MYVARI .
        UPLOAD_FROM_ASCII P_FILE  MYVARI   .
        LOOP AT MYVARI  .
          MYVARI-REPORT = P_TO_P .
          MODIFY MYVARI  .
        ENDLOOP .
        IF SY-SUBRC = 0 .
          DELETE FROM VARI WHERE REPORT = P_TO_P .
          INSERT VARI FROM TABLE MYVARI .
        ENDIF .
      ENDIF .
    ENDFORM.                               " VUPLOAD
    Rewards points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • Problem in copying Queries

    Friends
    When copying queries i am getting the following error.
    An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
    The system tried to insert a data record, even though a data record with the same primary key already exists
    Regards
    Sundaresan

    i have been just checking ST22, i don't see any log over there,but i do searched in SM21 there i see that i am missing some insufficent privileges..
    to be precise ..
    >ORA-01031 - Insufficient Privileges
    Data base error at 1031 at EXE
    thank you for your reply..

  • Copying Queries from client to client

    Hi all,
    I have built a query within the QEA (test) client using SQ01/SQ02 and now the same query has been requested in the PEA (production) client. My question is can i copy queries across clients or does it have to be re-built?
    Cheers
    Jim

    Yes .You can move from One client to another client by copying the query program which generates once you built query in the background and that can captured in TR .
    however , you can also have option download and upload the same in PRD.
    for downloading and uploading abap query follow steps given below
    DOWNLOAD ABAP QUERY
    1. Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    (If Query does not exist in Standard Area then You will have to copy that Query From Global Area to Standard Area.)
    For Coping Query From Global To standard first select that query from list.
    2)Now select Environment-> Transports
    3)In next screen select Copy Global to standard radio button.
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    4)Now Press Execute button.Copy Log will be displayed.
    Now Query exist in Global & Standard Area.
    5) Go to SQ02 .
    Select Environment -> Query Areas..
    Select Standard Area (Client specific)
    Select Infoset from list.
    6) Select Environment -> Transports
    7)Select Download radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport InfoSets and queries radio button
    Fill Infoset and Query with corresponding names.
    8) Click on Execute button
    Now It will ask you to save file.save it.
    Now Open another system where you want to make copy of that infoset.
    In the same way transport the User Groups using the Transport User GRoups radio button.
    UPLOAD ABAP QUERY
    1. Go to SQ02 .
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    2. Select Environment -> Transports
    3)Select Upload radio button
    Check Overwriting allowed (only with import/upload/copy)
    Remove Check for Test Run
    Select Transport Info Sets and queries radio button
    Fill Infoset and Query with corresponding names.
    4) Click on Execute button.
    It will ask you for the place for uploading file.
    Select that place (from where you downloaded file).
    Now infoset & query is uploaded.Log will be displayed.
    in the same way download the user group also.
    5)Go to SQ02
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    SQ02 -> Infoset -> Generate.
    Enter Yes.
    6)Go to SQ01
    Select Environment -> Query Areas
    Select Standard Area (Client specific)
    Enter your Query Name.
    7)Click on Execute button
    Regards
    JH

Maybe you are looking for

  • How do I get around restoring iCloud on a new iPhone with an older iOS than my previous iPhone?

    My current iPhone 4 has iOS 7.1.2, and my new iPhone 5 I'm trying to set up iCloud for only has 6.1.4. So it won't accept any of my iCloud backups on thr iPhone 4. Is there any way to get around this? Do I need to just set it up as a new phone and th

  • How to get help with refund for in app purchase

    I downloaded the free app "Bakery Story" without realizing it was an app that allowed the user (in this case, my child) to run up a bill very quickly with in-app purchases (using my real money instead of the play money within the game). As soon as I

  • Gnome-terminal problems

    Hi there,after upgrade to gnome-terminal 3.12.1-1,I found some errors appears : First, when I want to open a new terminal use my custom shortcuts Ctrl+Alt+T,sometimes it will make the whole screen freeze, and I have to switch to another TTY to kill i

  • EDI X12 810 outbound Invoice subscription using BPEL Apps adapter

    I am confused with subscribing to EDI X12 810 outbound Invoice. When I try to subcribe to EDI 810 outbound Invoice using App adapter , it shows XMLGateway(4), EDI (1), PL/SQL(1) , CON_PROGRAMS(1), Interface views (1). I dont understand to which I sho

  • SSL LDap search on Windows Phone

    Does anyone know of any APIs available for Windows Phone that that will allow me to make an SSL connection to an LDAP server and perform a LDAP query? I saw MS has System.DirectoryServices APIs, but those are unavailable on the phone.  Is there anyth