Export & import of query (SQ01/SQ02/SQ03)

Hi,
How to export/import SAP Query (SQ01/SQ02/SQ03) without any transport request.
waiting for ur reply.
Thanks in Advance,
Pranab

Hi,
If you dont want to create any transport request number then you need to download/upload the query instead of import/export.
Please follow the below steps for downloading/uploading the query
(Go to the system from where you wnat to export the query)
1. Goto transaction SQ02.
2. Click on ' Transports' icon (CTRL+F3).
3. In 'Transport action' select 'Download'.
4. Select 4th radio button 'Transport Queris'.
5. Enter the name your user group and query and click on execute.
6. Give the file name and location where you want to save the query backup and click on save.
(Now goto the system where you want to import your query)
1. Goto SQ02 and click on 'Transports' .
2.  In 'Transport action' select 'Upload' and click on execute.
3. Enter/select the name of the file which you have downloaded before and click open.
Please let me know if this is helpful.
Regards,
Priya Bhat

Similar Messages

  • Question in SAP QUERY- SQ01,SQ02,SQ03

    Hi SAP QUERY Experts,
    I have a question for the query. Is it possible using a interface parameter for report-to-report interface? I mean when I double click on one the data record of query, I want to transfer the key information of this record to the query or report or transaction as parameters. Is it possible? If yes, could you tell me how?
    This is on SQ01, SQ02,SQ03
    Thanks and Regards
    Saravana

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

  • Transport request for SAP Query - SQ01, SQ02, SQ03

    Hi Experts,
      I have a doubt, Whether we can have request for SAP Query which have created from Transaction SQ01.If Yes then How to do that....?
    Thanks in Advance,
    Chetan Joshi

    Hi,
    Use the program RSAQR3TR
    Thanks
    Naren

  • SAP Query-SQ01,SQ02,SQ03

    Hi,
    One query was created in Development client and a transaction code was created for the same and transported to QA & production. But I am unable to see the same in QA cliet or production client. this was done by SAP implementation team and i do not know what mode of transportation they had used.
    When i run the transaction code for this query in QA client it says the user Group has not been created. After analyzing the same in two clients we found that in Global area everything is same in these two clents but in Standard area the User Group is not showing.
    Can anyone give some clue as to how to rectify this issue..is it an issue related to transport or do we have to manually create in each client.
    Also let me know what is the difference between Standard area and Global area??
    Regards,
    SAPFICO

    Hi,
    sorry for using google to find the answer to your question. I must be afraid you do it next time yourself
    [Transporting Query Objects|http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/d2/cb467f455611d189710000e8322d00/content.htm]
    [Query Areas|http://help.sap.com/saphelp_nw04/helpdata/en/7f/af0c36932211d194f60000e82de14a/content.htm]
    Kind regards,
    Clemens

  • SAP Query (SQ01/SQ02/SQ3)

    Hi Experts,
    I have created query (SQ01/SQ02/SQ03) to display below fields: Hazard Code, Device Location Number, Hazard Code Description, Loc. Created by, Loc. Created on Date.
    Now in the output list I want to display a summary of all the count of records by the key characteristic for the query. For example, the Device Location by Hazard Codes query should give us a summary of the count of all device locations per each hazard code.
    Practical Scenario:
    Device Location Hazard Code
    40002748              01
    40002751              05
    40002481              07
    40002746              04
    40002749              04
    40002994              01
    Then in this case it should either display additional third column or additional row saying:
    Device Location Hazard Code
    40002748              01
    40002994              01
    Total Hazard Count: 2
    40002746              04
    40002749              04
    Total Hazard Count: 4
    40002751              05
    40002481              07
    or
    Device Location Hazard Code Total Count
    40002748              01                
    40002994              01                 2
    40002746              04
    40002749              04                 2
    40002751              05                 1
    40002481              07                 1
    I checked statistic tab present in SQ01 also URL [http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb4256455611d189710000e8322d00/frameset.htm] but still I am not able to figure out how to display this data.
    Please let me know.
    Thanks

    Hi,
    If you're getting the output in ALV Display, you can simply click on the location column & then click on the Sub-Total button on the ALV toolbar, it will sort all the records according to the location (1 or 2 or...) & give you the total/count of the particular location.
    For any further clarification, let me know.
    Prateek

  • Infoset Queries SQ01/SQ02/SQ03

    Hi Experts,
    I am designing query using SQ01/SQ02/SQ03 where I will input either installation or rate category (both present in table EANLH). But problem here is Installation is key field for EANLH while tariff type is not. Therefore, it returns multiple rate category for single installation. Now within these multiple rate category I need to retrieve only the latest rate category (this table does contain date field BIS & AB - Date fields by using which I can select latest record).
    But my problem here is how to do this in Infoset Queries? Where I need to make changes or do some config?
    Please let me know.
    Thanks.

    Yes, but I am not able to figure exactly how to implement it? I mean I can do this same code in SE38 where I know names of the internal tables. But when in SQ02 we can't modify/read system tables (I found name of the system tables using report generated by SQ01). So how you will access them, then how you will reflect our changes in output ALV grid?
    Example:
    Data:
    Rate Cat.      Installation     Date
    71     60000984     20/10/2009
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    so in this case I want output:
    Rate Cat.      Installation     Date
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    You will see 71     60000984     20/10/2009 is not the latest one, therefore I don't want that row. I can do the ABAP logic for this, but exactly what and how to implement in SQ02?

  • Use of SQ01, SQ02, SQ03

    Hai All,
             May i know that what is the use of SQ01 , SQ02, SQ03.How to use this ? How to create it ? Can we write our requirement in this ( addition to generated one )?
    Plz rely .
    Thanks & Regards
    Prashanth
    Message was edited by: Prashanth Konda

    Check this link
    www.sappoint.com/abap/ab4query.pdf
    Example
    To write ur requirement choose the option
    Data retrieval by program in SQ01.
    First Step is to create a dictionary structure . Include all the fields in this structure that you want to output.
    Then create a report program having the following structure .
    Report XXX .
    TABLES tab . Declare the already created dictionary structure also here.
    Parameters x . Define parameters here
    Select-Options:…….
    DATA :…..
    DATA : BEGIN  OF itab OCCURS xxx
                   END OF itab. Structure tab to hold the records to be evaluated.
    *<Query_head> This comment must always appear after your data declarations
    Code to define the table itab
    Loop to retrieve each record and place it in itab.
    SELECT,DO, LOOP ,….
    If necessary , code to format data
    *<Query_body> This comment must always be the last statement in the loop.
    End of loop
    ENDSELECT , ENDDO, ENDLOOP ,…
    Following is an example report program. Here youtput_struct is the dictionary structure.
    REPORT  yqueryprg                                .
    TABLES: bkpf,youtput_struct.
    DATA : BEGIN OF itab OCCURS 0,
           belnr LIKE bkpf-belnr,
           gjahr LIKE bkpf-gjahr,
           monat LIKE bkpf-monat,
           bukrs LIKE bkpf-bukrs,
           END OF itab.
    SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-t01.
    PARAMETERS: p_code LIKE bkpf-bukrs.
    SELECTION-SCREEN END OF BLOCK input.
    *Query head
    <Query_head>
    Start-of-selection.
    SELECT belnr gjahr monat bukrs FROM bkpf INTO TABLE itab
    WHERE bukrs = p_code.
    LOOP AT itab.
      CLEAR youtput_struct.
      MOVE itab TO youtput_struct.
    Query body
    <Query_body>
    ENDLOOP.
    Save and Activate this report.
    Then go to SQ02 transaction to create an infoset.
    Select the option Data retrival by program
    Enter datastructure name
    Choose External program name as your report name.
    Infoset ->Generate.
    Go to SQ03 to create a user group.
    Enter user group name and click on Create button.
    Enter description and save it in your development class.
    In the next screen , click on ‘Assign Infosets’ button.
    Here you select the infoset that you have created
    Save it.
    Go to SQ01. Select the user group that you have created.
    Then enter the query name and create. It will show the list of infoset that you have created. Choose the infoset you want.
    Choose BasicList Button.
    In the right side of the screen you adjust the output field width, background color etc.
    Go back and select the menu option Query -> Generate Program.
    Then Execute this Query.

  • Difference bet SQVI & SQ01,SQ02, SQ03

    Hi all
    What is difference been SQVI  and SQ01,SQ02, SQ03????
    I hve alredy developed report using sqvi,
    Please tell me about sq01,sq02, sq03??????
    Regds
    ss

    Hi
    SQVI is user specific whereas SQ01... are not user specific.
    You write a qurey in SQVI and it is accessible only for you.
    But the other way in SQ01...
    Good Luck
    Hari

  • Download Query SQ01/SQ02

    Hi Experts!!!
    I would like to know if there's a way of downloading or exporting / uploading or importing a query made in SQ01. I need to replicate it in another system.
    Thanks in advance!

    hiii
    for downloading and uploading abap query follow stepps 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.
    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 InfoSets 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.
    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
    twinkal

  • Interactive report using Infoset quiereis with SQ01,SQ02,SQ03.

    Hi,
             I have to create a report by using the infoset query with SQ01,SQ02 and  SQ03 Tcodes. But problem my requerment is that I have to create one interactive report with these quereis.
    Can any body tell me how to create this interactive report using infoset quereis OR are there any standard quereis which are having interactive nature.
    Pleas send me the solution and thanks in advance.
    regards,
    J.

    Yes, but I am not able to figure exactly how to implement it? I mean I can do this same code in SE38 where I know names of the internal tables. But when in SQ02 we can't modify/read system tables (I found name of the system tables using report generated by SQ01). So how you will access them, then how you will reflect our changes in output ALV grid?
    Example:
    Data:
    Rate Cat.      Installation     Date
    71     60000984     20/10/2009
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    so in this case I want output:
    Rate Cat.      Installation     Date
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    You will see 71     60000984     20/10/2009 is not the latest one, therefore I don't want that row. I can do the ABAP logic for this, but exactly what and how to implement in SQ02?

  • Hide columns for ALV list output in SAP Query SQ01/SQ02

    Hi All,
    I have a requirement to hide the columns which are empty in sap query SQ01 alv list output.
    Please let me know this functionality available in Query (SQ01) like normal reports
    Regards,
    Venkat

    Hi,
    We just can't make changes in this case as this are all system generated programs.
    WE have to write our own reports to make things flexible to match our requirements.
    Things you are asking is not possible.
    Regards,
    Suvendu

  • SQ01, SQ02 & SQ03

    Hi,
    I am creating user groups (SQ03), infosets (SQ02) and reports (SQ01) for different departments which may access the same infosets but have their own reports. The trouble I'm having is that no matter what user logs in to SQ01 they have access to run ALL SQ01 reports regardless of whether they are members of that user group or not.
    Is there a process or a particular order in which you create the user groups, infosets and reports so that any user can only access reports belonging to their user group?
    Thanks,
    Conor

    Hi,
    Generally QUERY's are User Specific (Pertaining to USER GROUP).
    Where as Reports are Global to all, Unless you restrict them with some Explicit Authorizations.
    check this link for Authorization:
    Authorisation check in ABAP Query..

  • How to add WHERE Criteria to a Query (SQ01-SQ02)

    Hi,
    I'm trying to add a WHERE criteria in a query defined by Infoset.
    The criteria I want to specify is between two fields of the same table. Something really easy, but ii do not know how to get it.
    I think it can be defined in SQ02, but how?
    The query should look like the following:
    SELECT *
    FROM TABLE_A
    WHERE TABLE_A-FIELD_1 GT TABLE_A-FIELD_2
    Can anybody tell me the secret?
    Thanks a lot,
    Gabriele

    hi,
    You can try inner joins on the same table..
    select a~WI_ID a~belnr a~gjahr a~INV_ITEM a~INV_DATE a~GR_DATE
      from Z_CPO_GRP as a
      INNER JOIN ZISP_CPO_GRP as b
      on a~belnr EQ b~belnr
      And a~gjahr EQ b~gjahr
      And a~WI_ID EQ b~WI_ID
      And a~INV_ITEM EQ b~INV_ITEM
        INTO corresponding fields of table t_itab
        where a~INV_DATE EQ b~GR_DATE.
      IF sy-subrc EQ 0.
      ENDIF.

  • Question regarding SAP query (SQ01& SQ02)

    Hello everyone,
    I have been assigned a task of creating a SAP query in SQ01. The report requires me to incorporate a drill down functionality.
    i.e. when I double click on a material I should be able to see the components of that material.
    My question is "Is it possible to incorporate a drill down functionality in a Query through SQ01".
    If yes then how.
    Please provide me with some documentations or example codes for this.
    Regards,
    Deepti Jain.

    Deepti,
    There are 2 ways to get the output  From SAP query.
    1.Under record processing :
          if you don't write any code in Start of selection event for output
         (WRITE statements)  we can not have any control on that.
    2. Under start of selection event :
         If you write any code in START OF SELECTION event like
         get the data in internal table and loop the internal table
         In loop WRITE statement to display with format and try to use
        Interactive report commands Here. I think it will work fine.

  • Query SQ01/ SQ02.

    Hi all,
    Can anyone provide me material / related links to SQL query.
    Thanks in advance.
    Needful will be rewarded points.

    Hi,
    Check these links.....
    http://www.sapdb.org/7.4/htmhelp/56/e89ffc8caa11d5993100508b6b8b11/content.htm
    http://www.experts-exchange.com/Database/Software/ERP/SAP/Q_21945539.html?qid=21945539
    http://www.alterego7.com/2008/01/sap-abap-sql-query-performance.html
    http://www.alterego7.com/2008/01/sap-abap-sql-query-performance.html
    Reward points if useful....
    Regards
    AK

Maybe you are looking for