<?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: Processing in 2 internal tables -Performance wise better option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411326#M1645717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking to sort itab2 based on psphi and amount but that would be risky ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jan 2012 03:57:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-07T03:57:37Z</dc:date>
    <item>
      <title>Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411322#M1645713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have 2 internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 and ITAB2  both are sorted by PSPHI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 has PSPHI  some more fields INVOICE DATE  and AMT&lt;/P&gt;&lt;P&gt;ITAB2 has PSPHI  some more fields amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both itab1 and itab2 will always have same amount of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to filter data from ITAB2 based invoice date given on selection screen.since ITAB2 doesnt have invoice date field.&lt;/P&gt;&lt;P&gt;i am doing further processing to filter the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have thought of below processing logic and wanted to know if there is a better option performance wise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ITAB1 into wa where invoice_date &amp;gt; selection screen date. (table which has invoice date)&lt;/P&gt;&lt;P&gt;lv_index = sy-tabix.&lt;/P&gt;&lt;P&gt;read table itab2 where psphi = wa-psphi and index = lv_index.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;delete itab2 index lv_index.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 01:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411322#M1645713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T01:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411323#M1645714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete itab1 where invoice_date &amp;lt;= selection-screen date. &lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt; delete itab2 where psphi = itab1-psphi.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 03:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411323#M1645714</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2012-01-07T03:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411324#M1645715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Bhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try in this way.You have a b c in itab1 ,a,d,e in itab2.After loop you have data in first table.As per your requirement you need data in second table depends on first one.delete the data from first table in that selection.Now your first itab1 with the data what you need ,depends on this get fom itab2..&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;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 03:45:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411324#M1645715</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-01-07T03:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411325#M1645716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;My Requirement is as below could you please advice on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1 &lt;/P&gt;&lt;P&gt;Field   1 PSPHI ,    FIELD 2 INVOICE,  FIELD 3 INVOICE_DATE , FIELD4 AMT &lt;/P&gt;&lt;P&gt;             15245,                       INV1,                           02/2011  ,  400&lt;/P&gt;&lt;P&gt;              15245                       INV2                            02/2012  ,  430&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB2&lt;/P&gt;&lt;P&gt;   Field   1 PSPHI ,    FIELD 2 PSNR,      FIELD 3 MATNR  , FIELD4 AMT &lt;/P&gt;&lt;P&gt;             15245,                       PSNR1,                   X .          430&lt;/P&gt;&lt;P&gt;              15245                       IPSNR2                    Y,          400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user enteres date on sel screen as 02/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to delete the data from itab1 and itab2 for invoice date greater then 02/2011/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i delere ITAB1 for date &amp;gt; selection screen date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop itab1.&lt;/P&gt;&lt;P&gt;delete itab2 where psphi in itab1 will delete both rows in above example because the field psphi which is common can be mutiple.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you advice ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 03:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411325#M1645716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T03:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411326#M1645717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was thinking to sort itab2 based on psphi and amount but that would be risky ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 03:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411326#M1645717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T03:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411327#M1645718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no risk.You check the report with all the features what you can keep.That will be a good practice and learn some new things,then only possible to learn new keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 04:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411327#M1645718</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-01-07T04:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411328#M1645719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete itab2 where date is greater than entered date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read itab1 with key psphi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not found delete itab2 index&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;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 05:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411328#M1645719</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-07T05:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411329#M1645720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use TRANSPORTING NO FIELDS whiling reading ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at ITAB1 into wa where invoice_date &amp;gt; selection screen date. (table which has invoice date)
    read table itab2 with key psphi = wa-psphi TRANSPORTING NO FIELDS.
    if sy-subrc = 0.
        delete itab2 index sy-tabix.
    endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 07:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411329#M1645720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-07T07:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411330#M1645721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bhanu,&lt;/P&gt;&lt;P&gt;Your requirement vl be met by using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nabheet-changing ur code a lil &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab1 where inv_date gt so_date.&lt;/P&gt;&lt;P&gt;Loop at itab2 into wa.&lt;/P&gt;&lt;P&gt;L_index = sy-tabix.&lt;/P&gt;&lt;P&gt;Read itab1 into wa1 with key psphi = wa-psphi&lt;/P&gt;&lt;P&gt;       inv_amt = wa-amt transporting no fields.&lt;/P&gt;&lt;P&gt;If sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;Delete itab2 index l_index.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 07:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411330#M1645721</guid>
      <dc:creator>Harsh_Bansal</dc:creator>
      <dc:date>2012-01-07T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Processing in 2 internal tables -Performance wise better option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411331#M1645722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for for your response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-in-2-internal-tables-performance-wise-better-option/m-p/8411331#M1645722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-09T14:59:26Z</dc:date>
    </item>
  </channel>
</rss>

