<?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 help me in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771842#M645892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts, i have written the following code.&lt;/P&gt;&lt;P&gt;itab contains the data including budat.my requirement is&lt;/P&gt;&lt;P&gt;i need to pick the budat from the itab which should be the most recent date with satisfying the below condition. i dont want to read from table once more, bcoz already read and stored in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i solve this, pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table itab with key kdauf = it_final-kdauf kdpos = it_final-kdpos.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    it_final-budat = itab-budat.&lt;/P&gt;&lt;P&gt;    modify it_final.&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;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 06:00:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-04T06:00:00Z</dc:date>
    <item>
      <title>help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771842#M645892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts, i have written the following code.&lt;/P&gt;&lt;P&gt;itab contains the data including budat.my requirement is&lt;/P&gt;&lt;P&gt;i need to pick the budat from the itab which should be the most recent date with satisfying the below condition. i dont want to read from table once more, bcoz already read and stored in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i solve this, pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table itab with key kdauf = it_final-kdauf kdpos = it_final-kdpos.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    it_final-budat = itab-budat.&lt;/P&gt;&lt;P&gt;    modify it_final.&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;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 06:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771842#M645892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T06:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771843#M645893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by KDAUF descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;loop at itab where  kdauf = it_final-kdauf and kdpos = it_final-kdpos.&lt;/P&gt;&lt;P&gt;it_final-budat = itab-budat.&lt;/P&gt;&lt;P&gt;modify it_final.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 06:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771843#M645893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: help me</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771844#M645894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajaram..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the correct code: Try it..&lt;/P&gt;&lt;P&gt;Note: Since the Itab is sorted based on Descending order on BUDAT it will give the Most recent date first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort itab by kdauf kdpos budat descending. "Here only budat is descending&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key kdauf = it_final-kdauf kdpos = it_final-kdpos  &lt;/P&gt;&lt;P&gt;transporting budat&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;it_final-budat = itab-budat.&lt;/P&gt;&lt;P&gt;modify it_final.&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 06:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me/m-p/2771844#M645894</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-04T06:07:07Z</dc:date>
    </item>
  </channel>
</rss>

