<?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 tables. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475188#M222840</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;Use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicate entries from itab comparing &amp;lt;field1&amp;gt; &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case field1 is material number and field2 is message type and itab is internal table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also refer to links&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm" target="test_blank"&gt;http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ionelburlacu.ro/abap/ABAPperformance.html" target="test_blank"&gt;http://sap.ionelburlacu.ro/abap/ABAPperformance.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geekinterview.com/question_details/1495" target="test_blank"&gt;http://www.geekinterview.com/question_details/1495&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Jul 2006 11:15:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-29T11:15:07Z</dc:date>
    <item>
      <title>Internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475187#M222839</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;My internal table has 10 fields.First field with material number,second field idoctype ,third field date processed.fourthfield idoc status,fifthfield idoc number.......Table is sorted in descending.&lt;/P&gt;&lt;P&gt;There can be a multiple entries for a same material number on different dates.I need only the fisrt record of each message type for each material.How it would be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;75008845 matmas 22/7/06 53 14532&lt;/P&gt;&lt;P&gt;75008845 matmas 22/7/06 51 14321&lt;/P&gt;&lt;P&gt;75008845 cremas 23/7/06 53 24532&lt;/P&gt;&lt;P&gt;75008845 cremas 22/7/06 51 13452&lt;/P&gt;&lt;P&gt;75008845 zbom   23/7/06 53 12343&lt;/P&gt;&lt;P&gt;75008845 zbom   23/7/06 51 12353&lt;/P&gt;&lt;P&gt;75004321 matmas 23/7/06 53 13432&lt;/P&gt;&lt;P&gt;75004321 cremas 21/7/06 51 12343&lt;/P&gt;&lt;P&gt;75004321 zbom   21/7/06 52 14321&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My int.table looks like above,so i need very first record of each material for each message type.frame the logic.&lt;/P&gt;&lt;P&gt;could anybody help?if anyone need more info.Please revert back.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;P&gt;ponraj_rec@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 11:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475187#M222839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-29T11:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475188#M222840</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;Use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicate entries from itab comparing &amp;lt;field1&amp;gt; &amp;lt;field2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case field1 is material number and field2 is message type and itab is internal table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also refer to links&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/06/aafd54fc4011d195280000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm" target="test_blank"&gt;http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ionelburlacu.ro/abap/ABAPperformance.html" target="test_blank"&gt;http://sap.ionelburlacu.ro/abap/ABAPperformance.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geekinterview.com/question_details/1495" target="test_blank"&gt;http://www.geekinterview.com/question_details/1495&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 11:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475188#M222840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-29T11:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475189#M222841</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;Please use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete Adjacent Duplicate entries from Itab comparing Field1 Field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the following SDN link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="318352"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 11:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475189#M222841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-29T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475190#M222842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the logic below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT itab BY matnr ASCENDING mstyp ASCENDING date ASCENDING idocno DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE FROM itab COMPARING matnr msgtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-KIRAN&lt;/P&gt;&lt;P&gt;*Please mark useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jul 2006 12:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1475190#M222842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-29T12:31:31Z</dc:date>
    </item>
  </channel>
</rss>

