<?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 an itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511907#M236025</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;  If shkzg , budat also changes, sort by those fields also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   sort itab by sernr mblnr descending &lt;/P&gt;&lt;P&gt;                      shkzg descending &lt;/P&gt;&lt;P&gt;                      budat descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   delete adjacent duplicates from itab &lt;/P&gt;&lt;P&gt;                   comparing sernr mblnr shkzg budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Did this meet your requirement now?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 04:27:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-24T04:27:46Z</dc:date>
    <item>
      <title>processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511904#M236022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi SDNs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing problem with deleting records from the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;situation is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 13 fields in my internal table. here i am getting multiple serial numbers (sernr). among the fields..&lt;/P&gt;&lt;P&gt;mblnr , budat, shkzg...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i want latest document for each serial number. and duplicate serial numbers has to be deleted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for these i have to sort by internal table by following fields:&lt;/P&gt;&lt;P&gt;mblnr, shkzg and budat in DESCENDING ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement won't fulfill i do that. it is not possible..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mblnr         shkzg        budat       sernr&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;  4             s            8 say       a&lt;/P&gt;&lt;P&gt;  2             s            7 say       a&lt;/P&gt;&lt;P&gt;  3             h            8 say       a&lt;/P&gt;&lt;P&gt;  1             s            5 say       a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1             h            8 say       b       &lt;/P&gt;&lt;P&gt;  2             s            8 say       b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider these are the conditions:,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so first based on budat (latest doc), i have to decrease. sothat i will get latest doc in the first line. and(if budats are same) then check for mblnr, same desc order. and take which is having heighest value. and based on records shkzg should be sorted in desc order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so  keep the first record as itis  and delete (using delete adjacent compring &amp;lt;b&amp;gt;sernr&amp;lt;/b&amp;gt;)&lt;/P&gt;&lt;P&gt;so that i will get the latest doc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;this is my requirement. but i am unable to write code for this one, could any one help me out! what to do? &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 17:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511904#M236022</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-23T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511905#M236023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama krishna,&lt;/P&gt;&lt;P&gt;Your requirement is to get latest document for each serial no based on BUDAT or MBLNR? As there can be multiple documents for one SERNR No for same date so you can not get latest document based on date.&lt;/P&gt;&lt;P&gt;You need to get latest document based on MBLNR no which is latest for each SERNR.&lt;/P&gt;&lt;P&gt;Sort ITAB on SERNR MBLNR IN DESCENDING ORDER.&lt;/P&gt;&lt;P&gt;Then use DELETE ADJACENT DUPLCIATES FROM ITAB COMPARING SERNR. This will delete duplicate SERNR which are found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since table will have latest MBLNR as first record for each SERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before sort&lt;/P&gt;&lt;P&gt; mblnr shkzg budat sernr&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;1 s 8 say a&lt;/P&gt;&lt;P&gt;2 s 7 say a&lt;/P&gt;&lt;P&gt;3 h 8 say a&lt;/P&gt;&lt;P&gt;4 s 5 say a&lt;/P&gt;&lt;P&gt;1 h 8 say b &lt;/P&gt;&lt;P&gt;2 s 8 say b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after sort&lt;/P&gt;&lt;P&gt; mblnr shkzg budat sernr&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;4 s 8 say a&lt;/P&gt;&lt;P&gt;3 s 7 say a&lt;/P&gt;&lt;P&gt;2 h 8 say a&lt;/P&gt;&lt;P&gt;1 s 5 say a&lt;/P&gt;&lt;P&gt;2 h 8 say b &lt;/P&gt;&lt;P&gt;1 s 8 say b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent will give you output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 s 8 say a&lt;/P&gt;&lt;P&gt;2 h 8 say b &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will give your required result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 17:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511905#M236023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511906#M236024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sunil Sawaiker  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here some times mblnr repeats and sometimes budat repeats..&lt;/P&gt;&lt;P&gt;in that cases what u said is always not correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other method other than sort?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 01:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511906#M236024</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2006-08-24T01:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511907#M236025</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;  If shkzg , budat also changes, sort by those fields also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   sort itab by sernr mblnr descending &lt;/P&gt;&lt;P&gt;                      shkzg descending &lt;/P&gt;&lt;P&gt;                      budat descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   delete adjacent duplicates from itab &lt;/P&gt;&lt;P&gt;                   comparing sernr mblnr shkzg budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Did this meet your requirement now?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 04:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511907#M236025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T04:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511908#M236026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramakrishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the table and use &amp;lt;b&amp;gt;DELETE ADJACENT DUPLICATES FROM ITAB COMPARING SERNR MBNLR BUDAT SHKZG.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 04:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511908#M236026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T04:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: processing an itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511909#M236027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IN UR INTERNAL TABLE PUT THE FIRST 4 FIELDS AS SERNR BUDAT SHKZG MBLNR...

SORT ITAB BY SERNR DESCENDING BUDAT DESCENDING SHKZG  DESCENDING MBLNR DESCENDING.

DELETE ADJACENT DUPLICATES COMPARING SERNR .&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 04:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-an-itab/m-p/1511909#M236027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T04:36:24Z</dc:date>
    </item>
  </channel>
</rss>

