<?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: select statment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611908#M1278792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE a~wadat_ist
INTO billing_dat
FROM likp AS a JOIN lips AS b
ON a~vbeln EQ b~vbeln
WHERE a~kunag = iest0-customer
AND b~matnr = iest1-material 
ORDER BY a~wadat descending.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert back....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 12:52:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-20T12:52:07Z</dc:date>
    <item>
      <title>select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611907#M1278791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select the latest billing doc date .How do I use the order by clause and select single&lt;/P&gt;&lt;P&gt;in below select statment.Please guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  a~wadat_ist &lt;/P&gt;&lt;P&gt;    INTO billing_dat&lt;/P&gt;&lt;P&gt;    FROM likp AS a JOIN lips AS b&lt;/P&gt;&lt;P&gt;      ON a&lt;SUB&gt;vbeln EQ b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;   WHERE a~kunag = iest0-customer&lt;/P&gt;&lt;P&gt;   AND   b~matnr = iest1-material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611907#M1278791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T12:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611908#M1278792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE a~wadat_ist
INTO billing_dat
FROM likp AS a JOIN lips AS b
ON a~vbeln EQ b~vbeln
WHERE a~kunag = iest0-customer
AND b~matnr = iest1-material 
ORDER BY a~wadat descending.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert back....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611908#M1278792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: select statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611909#M1278793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use max keyword. I hope it may be useful to pick the latest record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT max(wadat_ist) FROM likp WHERE kunag = iest0-customer and matnr = iest1-material.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 13:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statment/m-p/5611909#M1278793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T13:27:38Z</dc:date>
    </item>
  </channel>
</rss>

