<?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: Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233048#M139874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to delete all the records from IT_RIR with comparing BUDAT With the select option S_BUDAT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE IT_RIR WHERE BUDAT NOT IN S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement will delete all the records of IT_RIR by comparing budat with S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each IT_RIR-BUDAT, if a record does not exists in s_budat , it will delete that record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its a single statement, no need to put it in any loop.&lt;/P&gt;&lt;P&gt;in single shot does the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Apr 2006 09:27:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-22T09:27:29Z</dc:date>
    <item>
      <title>Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233044#M139870</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;I have an Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_RIR OCCURS 0,&lt;/P&gt;&lt;P&gt;      MBLNR LIKE MSEG-MBLNR,&lt;/P&gt;&lt;P&gt;      BWART LIKE MSEG-BWART,&lt;/P&gt;&lt;P&gt;      ERFMG LIKE MSEG-ERFMG,&lt;/P&gt;&lt;P&gt;      BUDAT LIKE MKPF-BUDAT,&lt;/P&gt;&lt;P&gt;      END OF IT_RIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well a selection option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS   :   S_BUDAT FOR MKPF-BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare IT_RIR-BUDAT with S_BUDAT and if true then do further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How this comparision can be done?&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;Pratibha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 09:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233044#M139870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233045#M139871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort IT_RIR by BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read IT_RIR into wa_rir with key BUDAT = S_BUDAT-low binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Successful do further processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Please mark helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 09:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233045#M139871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T09:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233046#M139872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_RIR OCCURS 0,&lt;/P&gt;&lt;P&gt;MBLNR LIKE MSEG-MBLNR,&lt;/P&gt;&lt;P&gt;BWART LIKE MSEG-BWART,&lt;/P&gt;&lt;P&gt;ERFMG LIKE MSEG-ERFMG,&lt;/P&gt;&lt;P&gt;BUDAT LIKE MKPF-BUDAT,&lt;/P&gt;&lt;P&gt;END OF IT_RIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_BUDAT FOR MKPF-BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on s_budat.&lt;/P&gt;&lt;P&gt;select single budat from mkpf into v_budat.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; raise an Error.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;      MBLNR&lt;/P&gt;&lt;P&gt;      BWART &lt;/P&gt;&lt;P&gt;      ERFMG &lt;/P&gt;&lt;P&gt;      BUDAT &lt;/P&gt;&lt;P&gt;      into table it_rir&lt;/P&gt;&lt;P&gt;      from mseg inner join mkpf&lt;/P&gt;&lt;P&gt;      on mseg-mblnr = mkpf-mblnr&lt;/P&gt;&lt;P&gt;      where mkpf-budat in s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 09:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233046#M139872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233047#M139873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_rir.&lt;/P&gt;&lt;P&gt;   if NOT it_rir-budat in s_budat.&lt;/P&gt;&lt;P&gt;      &amp;lt;stop further processing&amp;gt;.&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, 22 Apr 2006 09:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233047#M139873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233048#M139874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to delete all the records from IT_RIR with comparing BUDAT With the select option S_BUDAT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE IT_RIR WHERE BUDAT NOT IN S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement will delete all the records of IT_RIR by comparing budat with S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each IT_RIR-BUDAT, if a record does not exists in s_budat , it will delete that record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its a single statement, no need to put it in any loop.&lt;/P&gt;&lt;P&gt;in single shot does the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 09:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1233048#M139874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T09:27:29Z</dc:date>
    </item>
  </channel>
</rss>

