<?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: Select Query !!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367002#M181379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anshul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the explicit index of the table in the select query and see the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    SELECT COUNT(*)
    FROM crmd_orderadm_h
    WHERE process_type IN git_t_type
    AND object_type = gc_subobject
    AND object_id IN git_t_no
    %_HINTS ORACLE 'INDEX("CRMD_ORDERADM_H" "CRMD_ORDERADM_H~OID")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 06:56:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-30T06:56:38Z</dc:date>
    <item>
      <title>Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1366999#M181376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A select query has to select very large amount of data from the table ( based on some condition ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, because of that and also because of time taken in the network communication, the program is getting timed-out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in which we can select the data in &amp;lt;b&amp;gt;PACKETS&amp;lt;/b&amp;gt; from the table WITHOUT CHANGING THE SELECT QUERY i.e. WITHOUT CHANGING THE WHERE CLAUSE ETC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I repeat the requirement once more:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be no change in the select query except few minor changes which might be needed in the same as a part of the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anshul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1366999#M181376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367000#M181377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anshul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. U already have the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The syntax is also very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just copy paste to get a taste of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : ctr TYPE i.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : a TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;SELECT * FROM t001&lt;/P&gt;&lt;P&gt;  INTO TABLE t001&lt;/P&gt;&lt;P&gt;  PACKAGE SIZE 5 .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ctr = ctr + 1.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; '----&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;Loop Pass # ' , ctr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT t001.&lt;/P&gt;&lt;P&gt;      WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; t001-bukrs , t001-butxt.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367000#M181377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367001#M181378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;syntex..&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;  FROM mara&lt;/P&gt;&lt;P&gt;  INTO TABLE itab&lt;/P&gt;&lt;P&gt;  PACKAGE SIZE 10&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;  APPEND LINES OF itab TO itab1.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367001#M181378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367002#M181379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anshul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the explicit index of the table in the select query and see the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    SELECT COUNT(*)
    FROM crmd_orderadm_h
    WHERE process_type IN git_t_type
    AND object_type = gc_subobject
    AND object_id IN git_t_no
    %_HINTS ORACLE 'INDEX("CRMD_ORDERADM_H" "CRMD_ORDERADM_H~OID")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367002#M181379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367003#M181380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: itab TYPE STANDARD TABLE OF SCARR WITH NON-UNIQUE &lt;/P&gt;&lt;P&gt;                 DEFAULT KEY INITIAL SIZE 10. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; TYPE scarr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE itab PACKAGE SIZE 20 FROM scarr. &lt;/P&gt;&lt;P&gt;  LOOP AT itab ASSIGNING &amp;lt;FS&amp;gt;. &lt;/P&gt;&lt;P&gt;    WRITE: / &amp;lt;FS&amp;gt;-carrid, &amp;lt;FS&amp;gt;-carrname. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like ... INTO wa, except that the selected data is not placed in the internal table itab line by line, but in packets of n lines. The old contents of itab are overwritten. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n &amp;lt;= 0 causes a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally, n is placed in a type I field. Here, the usual conversion rules apply (see MOVE). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After leaving the processing loop, the contents of the internal table itab are undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the result of the selection is a table, the data is retrieved in a processing loop introduced by SELECT and concluded by ENDSELECT. The processing passes through the loop once for each line read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points and close the thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367003#M181380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367004#M181381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Amit !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It really works !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anshul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367004#M181381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query !!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367005#M181382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add "PACKAGE SIZE - n" in your Select statement,ie:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM MARA
INTO TABLE IT_MARA
PACKAGE SIZE 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For more information, just click &amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3605358411d1829f0000e829fbfe/frameset.htm"&amp;gt;here&amp;lt;/a&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 07:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1367005#M181382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T07:09:23Z</dc:date>
    </item>
  </channel>
</rss>

