<?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: Query into table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186747#M1823664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding is that you want to call a query from your program to get the results of the query into an internal table. If so you can also use the function RSAQ_REMOTE_QUERY_CALL. Just pass your query name, usergroup, and remember to check SKIP_SELSCREEN and DATA_TO_MEMORY. It's RFC enabled and we use it here to download data but it should work fine internally. The format in the data in the export table doesn't look as friendly as I thought though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 02:57:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-27T02:57:38Z</dc:date>
    <item>
      <title>Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186744#M1823661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help, I have a query, someone knows how to make the result of this query into a internal table , I want to develop a program that makes this. I want to reuse the query already built&amp;nbsp; and then use the data for other purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186744#M1823661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-25T13:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186745#M1823662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;query can be generated as a report. You would need to do this and parse the part where the data is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186745#M1823662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-25T14:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186746#M1823663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Enrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SQ01&amp;nbsp; --&amp;gt; Select the query and goto menu, Query--&amp;gt; more function --&amp;gt; Display report name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto se38 open the report and copy it to your Z* program,&amp;nbsp; internal table %g00 has the final data displayed in the query output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186746#M1823663</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-25T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186747#M1823664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding is that you want to call a query from your program to get the results of the query into an internal table. If so you can also use the function RSAQ_REMOTE_QUERY_CALL. Just pass your query name, usergroup, and remember to check SKIP_SELSCREEN and DATA_TO_MEMORY. It's RFC enabled and we use it here to download data but it should work fine internally. The format in the data in the export table doesn't look as friendly as I thought though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 02:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186747#M1823664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-27T02:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186748#M1823665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get the query name from Goto SQ01&amp;nbsp; --&amp;gt; Select the query and goto menu, Query--&amp;gt; more function --&amp;gt; Display report name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use sumbit report statement. SUBMIT query_prgram_name AND RETURN EXPORTING LIST TO MEMORY. The call the list by FM LIST_FROM_MEMORY into your itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186748#M1823665</guid>
      <dc:creator>tripurari_rai2</dc:creator>
      <dc:date>2014-03-27T03:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186749#M1823666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tripurari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would produce a nicer format than my suggestion but one probelm with this is that the report behind a query is generated by the system so its name can change between development, quality and production environments. If I were to follow this approach to try to get the results of a query into an internal table I wouldn't submit the query program directly but submit the program &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;START_REPORT as similarly as describe. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"START_REPORT with the skip initial screen checked and pass the following parameters to START_REPORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• D_SREPOVARI-REPORTTYPE = AQ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• D_SREPOVARI-REPORT = &amp;lt;USER GROUP in WHICH THE QUERY IS CREATED&amp;gt; G "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an approach we use to avoid problems caused by chaning query report names between environments when we create transaction to wrap around querys but I've not tried it to export a query list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-into-table/m-p/10186749#M1823666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-27T03:25:39Z</dc:date>
    </item>
  </channel>
</rss>

