<?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: Read Data Based On Latest Document Change Date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468824#M1058675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab1. sort itab2.
loop at itab2.
  at end of 'info record no'.
    read table itab1 with key 'info record no' = itab2-'info record no'.
    if sy-subrc = 0.
      write: itab1-'info record no',
             itab1-'vendor',
             itab1-'material',
             itab1-'value'.
    endif.
  endat.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2008 04:39:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-18T04:39:50Z</dc:date>
    <item>
      <title>Read Data Based On Latest Document Change Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468823#M1058674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to pull data based on latest date and print it out.&lt;/P&gt;&lt;P&gt;Now I having 2 internal table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab1&lt;/STRONG&gt; having &lt;EM&gt;info record no, vendor, material, and value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab2&lt;/STRONG&gt; having &lt;EM&gt;info record no and info record change date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both info record no. came from different field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the latest date in itab2 and pull out the data from itab1 based on the date?  Can you please give me a sample code? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know to get latest date is sort itab2 descending and read itab2 index 1, but  how should I pull data from itab1 based on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards point will be given for helpful answer. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 01:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468823#M1058674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T01:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Based On Latest Document Change Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468824#M1058675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort itab1. sort itab2.
loop at itab2.
  at end of 'info record no'.
    read table itab1 with key 'info record no' = itab2-'info record no'.
    if sy-subrc = 0.
      write: itab1-'info record no',
             itab1-'vendor',
             itab1-'material',
             itab1-'value'.
    endif.
  endat.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 04:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468824#M1058675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T04:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data Based On Latest Document Change Date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468825#M1058676</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 itab1.&lt;/P&gt;&lt;P&gt;SORT itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;   read table itab2 WITH KEY &lt;/P&gt;&lt;P&gt;                             'info record no' = wa_itab1'infozecord no'.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     write : / itab2-'info record change date'.&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;regards,&lt;/P&gt;&lt;P&gt;Bhupal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 04:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-data-based-on-latest-document-change-date/m-p/4468825#M1058676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T04:55:02Z</dc:date>
    </item>
  </channel>
</rss>

