<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SQVI Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855037#M1886099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek, thank you for the solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the problem is i can't do ABAP so i can't make a custom table. That's why i used SQVI instead of custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other options to make it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 06:54:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-26T06:54:20Z</dc:date>
    <item>
      <title>SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855033#M1886095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, please help me about SQVI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have converted from the SQVI quickview to query in development client, then assigned the query (program name) to T-code using SE93. Then, i've downloaded the query from development client and uploaded it to quality client..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After uploaded to quality client, the program name for the query was changed. So, the T-code said that the program "AQxxxxxxxxxxxxxZxxxxx not found" because there is different names between development and quality client..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can i have the same names between both clients? If it can't, what must i do?&lt;/LI&gt;&lt;LI&gt;Do i have to create the SQVI query direct in the quality clients or transport from development client like i've done?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me advice through this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks before..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 10:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855033#M1886095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855034#M1886096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the reason you are getting different program names in DEV and QAS for your query is because of using the 'download' and 'upload' options to move the query. If you use 'export' instead, then the query (and possibly its infoset, depending on the option you choose) should be written to a standard transport, which can then be imported to QAS (and later PRD) via conventional transport means. This should keep your program name consistent across the systems, and thus your tcode assignment should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855034#M1886096</guid>
      <dc:creator>Matt_Fraser</dc:creator>
      <dc:date>2015-01-23T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855035#M1886097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did what you said, i exported and imported the infoset and query with RSAQR3TR.. But, w&lt;SPAN style="font-size: 10pt;"&gt;hen i checked the program name in quality client, still it's different from the development client..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried transport with help from BASIS, but the query doesnt'exist in quality client..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong with the steps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 02:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855035#M1886097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T02:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855036#M1886098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This most likely occurred as the query is created in the 'Standard Query Area' and the generated ABAP program linked to a transaction code. so when the query is exported to a pc/laptop and imported into a QA system the target system, so when running the transaction code, the system cannot find the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, a query should not be accessed using the name of the report generated by it (for example, by 'submit') because the name may change (for example, when upgrading from Release 3.x to 4.x), and also because the code generated may not necessarily correspond to the current query definition (the code may not be available in the system at all, even though the definition of the query is available in the system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a comparison between a Development and Production system, for the SAP Query, the generated program names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/631280" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The program is broken down as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1st 2 characters indicate it is a query, i.e. ‘AQ’&lt;/LI&gt;&lt;LI&gt;2nd 2 characters indicate a generated ID, i.e. ‘CS’ = DEV and ‘IC’ = PRD (note global queries use a different identifier)&lt;/LI&gt;&lt;LI&gt;3rd group of characters indicates the User Group with ‘=’ included to pad the group, i.e. ‘ZSD=========’&lt;/LI&gt;&lt;LI&gt;4th group of characters indicates the Query Name, i.e. ‘ZSDCONTLINKORD’&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to apply the guideline as given in the SAP OSS Note &lt;A href="http://service.sap.com/sap/support/notes/393160" style="font-family: Arial, Helvetica, sans-serif; background-color: #cbdbea;" title="393160  - SAP Query: Using queries"&gt;&lt;SPAN class="title" style="color: #000000; font-weight: bold;"&gt;393160 - SAP Query: Using queries&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it can be broken down into 4 steps:&lt;/P&gt;&lt;P&gt;1. Create a custom table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/631281" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a custom program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp; Report&amp;nbsp; ZBW_GEN_CALL_QUERY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp; Version 2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;*&amp;amp;---------------------------------------------------------------------*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;REPORT&amp;nbsp; ZBW_GEN_CALL_QUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;INCLUDE RSAQCOMC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;INCLUDE RSAQCOM1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Reference to tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;TABLES: ZBW_GEN_QRY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Declaration of internal tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA: BEGIN OF itab_QUERY OCCURS 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCLUDE STRUCTURE ZBW_GEN_QRY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA: END OF itab_QUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Declaration of variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA: p_wsid&amp;nbsp; TYPE C LENGTH 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_ugroup TYPE bgname,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_query TYPE quname,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_vari TYPE vari.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* call via IQAPI_QCALL (as of Release 6.10 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA: qid TYPE AQLQID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Get the query linked to the transaction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; INTO CORRESPONDING FIELDS OF TABLE itab_QUERY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; FROM ZBW_GEN_QRY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; WHERE ZTCODE = SY-TCODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;IF SY-SUBRC = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; READ TABLE itab_QUERY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH KEY ZTCODE = SY-TCODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; IF SY-SUBRC = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE itab_QUERY-ZWSID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Global Query Area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'X'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qid-workspace = ws_global.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_wsid = itab_QUERY-ZWSID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_ugroup = itab_QUERY-ZUGROUP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_query = itab_QUERY-ZQUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF itab_QUERY-ZVARI = ''.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_vari = SPACE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_vari = itab_QUERY-ZVARI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Standard Query Area&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN OTHERS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qid-workspace = ws_standard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_wsid = SPACE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_ugroup = itab_QUERY-ZUGROUP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_query = itab_QUERY-ZQUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF itab_QUERY-ZVARI = ''.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_vari = SPACE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_vari = itab_QUERY-ZVARI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDCASE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* User Group and Query to QID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;qid-usergroup = p_ugroup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;qid-query = p_query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;* Call the Query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL FUNCTION 'IQAPI_QCALL'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OLD_QID = qid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VARIANT = p_vari&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp; = 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; MESSAGE ID sy-msgid TYPE 'I' number sy-msgno&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;CLEAR: itab_QUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;REFRESH: itab_QUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FREE: itab_QUERY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;3. Create a custom transaction code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4. Link the custom transaction to the custom program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then maintain the custom table&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Insert with the transaction code that will call the SAP Query&lt;/LI&gt;&lt;LI&gt;Mark whether the query is from the Global or Standard Query Area&lt;UL&gt;&lt;LI&gt;‘X’ = Global&lt;/LI&gt;&lt;LI&gt;‘ ‘ = Standard&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Indicate which user group the query is in&lt;/LI&gt;&lt;LI&gt;Indicate the query name&lt;/LI&gt;&lt;LI&gt;Optionally if a variant is to be used this can be also maintained&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/631282" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then execute the custom transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far we have been using this solution for the last 5 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 04:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855036#M1886098</guid>
      <dc:creator>Derek_Fox</dc:creator>
      <dc:date>2015-01-26T04:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855037#M1886099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Derek, thank you for the solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the problem is i can't do ABAP so i can't make a custom table. That's why i used SQVI instead of custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other options to make it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 06:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855037#M1886099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T06:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855038#M1886100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use the AQXXX program directly to create the transaction.&lt;BR /&gt;Please refer to note 393160 about query transaction defination.&lt;BR /&gt;You can then use a template report to define the&lt;BR /&gt;report transaction:&lt;BR /&gt;as of Release 6.10, SAP delivers a template with Report&lt;BR /&gt;SAP_QUERY_CALL for this purpose. The template delivered has a&lt;BR /&gt;selection screen with parameters for query workspace, query user&lt;BR /&gt;group and query name, as well as for query variants, which you&lt;BR /&gt;should use to start the query. When you enter the values, a module&lt;BR /&gt;is called to execute the query.&lt;/P&gt;&lt;P&gt;For better explanation we can assume that you start query A of&lt;BR /&gt;usergroup U in standard area with variant V.&lt;/P&gt;&lt;P&gt;1.) Create a report transaction (Z1) for the&lt;BR /&gt;template report: SAP_QUERY_CALL&lt;BR /&gt;2)create a transaction Z2 with 'Transaction with parameters (paramter&lt;BR /&gt;transaction)'.There you enter Z1 in transaction field,&lt;BR /&gt;check the box for 'Skip initial screen' and at the end of this screen in&lt;BR /&gt; 'default values' insert&lt;/P&gt;&lt;P&gt;P_UGROUP&amp;nbsp; U&lt;BR /&gt;P_VARI&amp;nbsp;&amp;nbsp;&amp;nbsp; V&lt;BR /&gt;P_QUERY&amp;nbsp;&amp;nbsp; A&lt;BR /&gt;P_WSID&amp;nbsp;&amp;nbsp;&amp;nbsp; blank&amp;nbsp; (G for global area)&lt;/P&gt;&lt;P&gt;After saving the query A should be started with transaction Z2.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Ruby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855038#M1886100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T07:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855039#M1886101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no other 'nice' solution available, only this one which is recommended by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You still use SQVI to create the queries anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you cannot create the ABAP table and ABAP program yourself, can you get your BASIS team/ABAP Developers to create the table and program for you?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time you create a new query you add it to the table and create a new transaction and link it to the custom ABAP program. The custom ABAP program works which transaction code is calling it and then selects the relevant entry from the table and executes the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 07:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855039#M1886101</guid>
      <dc:creator>Derek_Fox</dc:creator>
      <dc:date>2015-01-26T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855040#M1886102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sylviani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not necessary to know ABAP nor use the ABAP Workbench to create a query that can be called from a transaction code. You &lt;EM&gt;can't&lt;/EM&gt; do it with SQVI, but you &lt;EM&gt;can&lt;/EM&gt; do it with SQ01/SQ02, etc. However, there is a bit of a workaround way to do it, with the help of your Basis team, or someone with access to PFCG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you must convert your query from a Quick Viewer query (SQVI) to a standard SAP Query (one that would be created from SQ01, for instance). You can do this in SQ01, via &lt;EM&gt;Query... Convert Quickview&lt;/EM&gt;. Second, you will want to ensure that you create your query in the &lt;EM&gt;Standard Area&lt;/EM&gt;, not the Global Area. The easiest way to do this is to use &lt;EM&gt;Environment... Query Areas&lt;/EM&gt; and choose the Standard Area in SQ01 &lt;EM&gt;before&lt;/EM&gt; you convert your Quickview. Likewise, choose an appropriate User Group to assign the query to, or create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converting your quickview will create both a query and an infoset, probably. Note that you must do this all in your DEV system in order to create a transport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, you must create a &lt;EM&gt;standard variant&lt;/EM&gt; for your query, and call the variant CUS&amp;amp;STANDARD. The CUS&amp;amp; is very important. If you don't include that at the beginning of the variant name, it won't be transportable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, you will want to go into PFCG, which is normally only accessible to user and authorizations administrators. You might need someone to assist you here if this isn't your role. This isn't mandatory, but it makes it much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PFCG, in the &lt;EM&gt;Menu&lt;/EM&gt; page, click the button for &lt;EM&gt;Add Report&lt;/EM&gt;. This function actually creates a transaction code and assigns it to a report. It has a radio button for selection &lt;EM&gt;SAP Query&lt;/EM&gt;. Choose that, then put in your User Group, Query, and Variant. Check the box for &lt;EM&gt;Skip selection screen&lt;/EM&gt;, and check the boxes as appropriate for &lt;EM&gt;GUI Support&lt;/EM&gt; (SAPGUI for Windows at a minimum, but no harm in choosing all three). Save it, and give your transaction code a Z name and a description or title, and choose a Z package to save it in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later, from SE93, you can call up your transaction code and you will see it as a &lt;EM&gt;Parameter Transaction&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You &lt;EM&gt;can&lt;/EM&gt; create the transaction directly in SE93, as follows. For &lt;EM&gt;Start object&lt;/EM&gt; choose "Transaction with parameters (parameter transaction)." In the &lt;EM&gt;Transaction&lt;/EM&gt; field put "START_REPORT". Check the box for &lt;EM&gt;Skip initial screen&lt;/EM&gt;. Put "0" for Screen. Add your GUI Support options. Then the important part is the &lt;EM&gt;Default Values.&lt;/EM&gt; You must fill in the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D_SREPOVARI-REPORTTYPE = AQ&lt;/P&gt;&lt;P&gt;D_SREPOVARI-REPORT = &amp;lt;Query User Group&amp;gt;&amp;lt;5 blank spaces&amp;gt;S (i.e., if your query group is ZUSERS, put "ZUSERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S"&lt;/P&gt;&lt;P&gt;D_SREPOVARI-EXTDREPORT = &amp;lt;Query Name, i.e. "ZQUERY"&amp;gt;&lt;/P&gt;&lt;P&gt;D_SREPOVARI-VARIANT = CUS&amp;amp;&amp;lt;variant&amp;gt; (i.e. "CUS&amp;amp;STANDARD")&lt;/P&gt;&lt;P&gt;D_SREPOVARI-NOSELSCRN = &amp;lt;blank&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should create a tcode that works with your query. The next part is transporting it. With queries, this gets a bit more complex. Generally, it will be easier if you can get your query, user group, and infoset all set up in the Standard Area, then you can use the &lt;EM&gt;Environment... Transports&lt;/EM&gt; option from either SQ02 or SQ03 to write all three into a transport request. Later, when you import the transport request into the target system, you then must go into this same &lt;EM&gt;Environment... Transports&lt;/EM&gt; tool to use the &lt;EM&gt;Import&lt;/EM&gt; option, first for the user group, then for the infoset and query. In this case, list the transport request number as the &lt;EM&gt;Dataset with imports&lt;/EM&gt;. After all this is done, you can create a second transport with your transaction code, so you probably need to get the query transport created first, then the transaction code transport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855040#M1886102</guid>
      <dc:creator>Matt_Fraser</dc:creator>
      <dc:date>2015-01-26T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855041#M1886103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have regenerate the program in Q. That should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 21:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855041#M1886103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-26T21:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855042#M1886104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sylviani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be below steps helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;In SE93, Create a Paramter Transaction&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt; Transaction = Start_report&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt; In default values, give the below details:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_SREPOVARI-REPORTTYPE = AQ&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_SREPOVARI-EXTDREPORT = Name of the Query &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_SREPOVARI-REPORT = User Group&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;You can use below FM to find out Name of the query and user Group by passing program name.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;FM - RSAQ_DECODE_REPORT_NAME &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 08:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855042#M1886104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-27T08:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQVI Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855043#M1886105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to stay on subject, &lt;/P&gt;&lt;P&gt;the blog &lt;A _jive_internal="true" href="https://answers.sap.com/community/erp/60-upgrade/blog/2015/02/24/upgrade-easy-migration-of-aq-report-transactions"&gt;Upgrade – Easy migration of AQ* Report transactions&lt;/A&gt; might help in case of mass conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sqvi-query/m-p/10855043#M1886105</guid>
      <dc:creator>andrea_olivieri</dc:creator>
      <dc:date>2015-02-24T16:37:13Z</dc:date>
    </item>
  </channel>
</rss>

