<?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 manipulation.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667465#M1867753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;try this&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;SORT table BY ptime DESCENDING.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;DELETE table from 2 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 10:18:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-09T10:18:55Z</dc:date>
    <item>
      <title>internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667461#M1867749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hell all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in have an internal table consisting of 4 records ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal table has field called PTIME,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my question is i need to get the record whose PTIME is highest and delete remaining records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i achieve this,...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667461#M1867749</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2014-10-09T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667462#M1867750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinay&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;SORT table BY ptime DESCENDING.&lt;/P&gt;
&lt;P&gt;READ TABLE table INTO wa_table INDEX1.&lt;/P&gt;
&lt;P&gt;DELETE table WHERE ptime &amp;lt;&amp;gt; wa_table-ptime.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667462#M1867750</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2014-10-09T10:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667463#M1867751</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;sort your internal table&amp;nbsp; with PTIME descending,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 index 1.&amp;nbsp;&amp;nbsp; "itab1 : internal table&lt;/P&gt;&lt;P&gt;get data into structur / variable. store data into new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can delete table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667463#M1867751</guid>
      <dc:creator>former_member249399</dc:creator>
      <dc:date>2014-10-09T10:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667464#M1867752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare two workareas wa1 and wa2 of the same type Internal table (PTIME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa1.&lt;/P&gt;&lt;P&gt;read table itab into wa2 with index sy-index + 1.&lt;/P&gt;&lt;P&gt;if wa2-PTIME &amp;gt; wa1-PTIME.&lt;/P&gt;&lt;P&gt;PTIME_HIGHEST = wa2-PTIME.&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;This will give highest PTIME value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE from itab where PTIME &amp;lt;&amp;gt; PTIME_HIGHEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667464#M1867752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-09T10:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667465#M1867753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;try this&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;SORT table BY ptime DESCENDING.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background-position: initial;"&gt;DELETE table from 2 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667465#M1867753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-09T10:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667466#M1867754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;simone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for u r quick reply...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/10667466#M1867754</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2014-10-09T10:22:00Z</dc:date>
    </item>
  </channel>
</rss>

