<?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: Fetching latest record in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680430#M619457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amit,&lt;/P&gt;&lt;P&gt;its working...thanku very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 07:36:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T07:36:36Z</dc:date>
    <item>
      <title>Fetching latest record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680428#M619455</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;can anyone tell me how to fetch the latest record from ldb for an employee .But i need to get the old record also if the contents inside  two particular columns are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.i should get only the 2nd record if p0014-lgart and p000-betrg same(latest one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;u&amp;gt;p0000-pernr.......p000-vorna .......p0000-nachn.......p0014-lgart.....p0014-betrg&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;               1........................ x..........................y ...........................z..................9.00 &lt;/P&gt;&lt;P&gt;               1........................ x..........................d ...........................z..................9.00         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i should get all the records if it is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;u&amp;gt;p0000-pernr.......p000-vorna .......p0000-nachn.......p0014-lgart.....p0014-betrg&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;               1........................ x..........................y ...........................z..................9.00 &lt;/P&gt;&lt;P&gt;               1........................ x..........................d ...........................t...................9.00 &lt;/P&gt;&lt;P&gt;               1........................ x..........................d ...........................t...................5.00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 06:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680428#M619455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T06:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching latest record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680429#M619456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally we fetch the latest record by using macro RP_PROVIDE_FROM_LAST but for your requirement I will suggest to use SELECT and gett all the records for an employee in the date range in an internal table.&lt;/P&gt;&lt;P&gt;SORT in descending based on BEGDA.&lt;/P&gt;&lt;P&gt;Now use READ statement.&lt;/P&gt;&lt;P&gt;Read t_0015 into wa1 index 1.&lt;/P&gt;&lt;P&gt;read t_0015 into wa2 index 2. now compare required values in wa1 &amp;amp; wa2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 07:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680429#M619456</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-08-16T07:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching latest record</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680430#M619457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amit,&lt;/P&gt;&lt;P&gt;its working...thanku very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 07:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-latest-record/m-p/2680430#M619457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T07:36:36Z</dc:date>
    </item>
  </channel>
</rss>

