<?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: latest date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159772#M120088</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;  I didn't understand the problem. Could you explain more details regarding the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nama Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2006 04:48:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-16T04:48:06Z</dc:date>
    <item>
      <title>latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159771#M120087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; In table FPLT-AFDAT corresponds to Billing date.If there are more than one billing date for the corresponding VBELN(say line item) ,take the latest date and sum of the percentages of the fields FPROZ.&lt;/P&gt;&lt;P&gt; Kindly provide even the coding which would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Points will be given for coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 04:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159771#M120087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T04:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159772#M120088</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;  I didn't understand the problem. Could you explain more details regarding the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nama Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 04:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159772#M120088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T04:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159773#M120089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FOR A CORRESPONDING SALES ORDER NUMBER, I NEED TO FIND THE LATEST BILLING DATE TAKEN FROM TABLE FPLT - AFDAT.&lt;/P&gt;&lt;P&gt;The link for this ,take the FPLNR from FPLA based on the corresponding VBELN.then with this FPLNR, i take the AFDAT from table FPLT.Now i need to find the latest date&lt;/P&gt;&lt;P&gt;KINDLY HELP ME TO DO SO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 04:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159773#M120089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T04:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159774#M120090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use ORDER BY  to get the latest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;           FROM &amp;lt;db table&amp;gt; &lt;/P&gt;&lt;P&gt;           INTO TABLE &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;           ORDER BY AFDAT descending .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the first record of th itab now will be the latest date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternate approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the records into an itab and sort it descnding by date and read the first record which will be the latest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 05:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159774#M120090</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-01-16T05:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159775#M120091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayasree,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Below query will help u to catch latest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select max( AFDAT ) &lt;/P&gt;&lt;P&gt; from FPLT&lt;/P&gt;&lt;P&gt; into MAXDATE&lt;/P&gt;&lt;P&gt; where &amp;lt;condition 1&amp;gt;....&amp;lt;condition n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Digesh Panchal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note : Please reward points if it solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 06:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159775#M120091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159776#M120092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the followings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT FPLNR MAX( AFDAT ) SUM( FPROZ )&lt;/P&gt;&lt;P&gt;   INTO (itab-fplnr, itab-afdat, itab-fproz)&lt;/P&gt;&lt;P&gt;   FROM FPLT&lt;/P&gt;&lt;P&gt;  WHERE &amp;lt;cond&amp;gt; = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt; GROUP BY FPLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Good Luck..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 06:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159776#M120092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: latest date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159777#M120093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance may be affected if you use aggregate functions on the database directly. Instead get all the records satisfying the VBELN condition into one internal table, sort it by date descending and then read the first record. That will give you the latest date. At the same time you can sum up the field that you wanted to add and use the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 06:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/latest-date/m-p/1159777#M120093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-16T06:30:14Z</dc:date>
    </item>
  </channel>
</rss>

