<?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: Need to Process Large Internal Tables Efficiently in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906615#M377842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But in t_ekpo table you can have more than 1 record....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 01:59:47 GMT</pubDate>
    <dc:creator>bettinasilveira</dc:creator>
    <dc:date>2007-02-22T01:59:47Z</dc:date>
    <item>
      <title>Need to Process Large Internal Tables Efficiently</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906611#M377838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two internal tables, T_EKKO(for PO Header data) and T_EKPO(for PO Item data). These tables carry data for 10 PO's with at least 1 line item in each one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to write the following fields on the result screen:&lt;/P&gt;&lt;P&gt;     Line 1: PO Number.-       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 2:PO Item, Article Number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the most efficient way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 21:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906611#M377838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T21:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Process Large Internal Tables Efficiently</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906612#M377839</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;You can use parallel processing techinque..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT T_EKPO BY EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_TABIX TYPE SYTABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_EKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / 'PO Number - ', T_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE T_EKPO TRANSPORTING NO FIELDS&lt;/P&gt;&lt;P&gt;                       WITH KEY EBELN = T_EKKO-EBELN&lt;/P&gt;&lt;P&gt;                       BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store the row number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    V_TABIX = SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT T_EKPO FROM V_TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Exit condition.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF T_EKPO-EBELN &amp;lt;&amp;gt; T_EKKO-EBELN.&lt;/P&gt;&lt;P&gt;           EXIT.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         WRITE: / 'PO item', T_EKPO-EBELP.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 21:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906612#M377839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T21:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Process Large Internal Tables Efficiently</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906613#M377840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For small tables like this, it doesn't really matter, but for larger ones, check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 21:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906613#M377840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T21:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Process Large Internal Tables Efficiently</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906614#M377841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;sort t_ekko.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from t_ekko.&lt;/P&gt;&lt;P&gt;sort t_ekpo.&lt;/P&gt;&lt;P&gt;loop at t_ekko.&lt;/P&gt;&lt;P&gt;write: / t_ekko-ebeln.&lt;/P&gt;&lt;P&gt;read table t_ekpo with key ebeln = t_ekko-ebeln&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;write: / t_ekpo-EBELP,t_ekpo-EAN11.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 21:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906614#M377841</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-02-21T21:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Process Large Internal Tables Efficiently</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906615#M377842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But in t_ekpo table you can have more than 1 record....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 01:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-to-process-large-internal-tables-efficiently/m-p/1906615#M377842</guid>
      <dc:creator>bettinasilveira</dc:creator>
      <dc:date>2007-02-22T01:59:47Z</dc:date>
    </item>
  </channel>
</rss>

