<?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 single help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846597#M1318943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * &lt;/P&gt;&lt;P&gt;From Table&lt;/P&gt;&lt;P&gt;into itab&lt;/P&gt;&lt;P&gt;and emp = emp_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort Itab by update_time desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Table itab index 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Jun 2009 17:55:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-28T17:55:20Z</dc:date>
    <item>
      <title>Select single help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846596#M1318942</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;&lt;/P&gt;&lt;P&gt;i want to do select single and to get the data that is last updated&lt;/P&gt;&lt;P&gt;how can i get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have entries on table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;employee  last update  and additional data&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;123        17:34:27 &lt;/P&gt;&lt;P&gt;123        17:35:03&lt;/P&gt;&lt;P&gt;123        17:35:48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get the row that last update ,row number 2 ,&lt;/P&gt;&lt;P&gt;how can i get it with select single statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ricardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2009 16:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846596#M1318942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-28T16:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select single help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846597#M1318943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * &lt;/P&gt;&lt;P&gt;From Table&lt;/P&gt;&lt;P&gt;into itab&lt;/P&gt;&lt;P&gt;and emp = emp_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort Itab by update_time desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Table itab index 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2009 17:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846597#M1318943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-28T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select single help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846598#M1318944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Arona&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test the following Sample Code Hope will help you to solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE field1 field2 MAX(field3 ) as field3 " Field3 is Time Field Here
  into CORRESPONDING FIELDS OF it
  from TABLE_NAME
  GROUP BY field1 field2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2009 18:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846598#M1318944</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-06-28T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select single help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846599#M1318945</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;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT single field1
                        FROM &amp;lt;dbtable&amp;gt;
                        INTO lv_time
                        ORDERBY field1
                        DESCENDING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1 ---&amp;gt; would be the time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want for the particular employee, then do a slight change in the code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT single &amp;lt;field1&amp;gt;
                        FROM &amp;lt;dbtable&amp;gt;
                        INTO lv_time
                        WHERE pernr = emp_no
                        ORDERBY field1
                        DESCENDING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sakthi Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 02:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-help/m-p/5846599#M1318945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T02:08:02Z</dc:date>
    </item>
  </channel>
</rss>

