<?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 query for date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831352#M921282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your are selecting and comparing from same table EKKO, this is not possible!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ebeln eq ekko-ebeln.&lt;/P&gt;&lt;P&gt;1. ekko-vbeln was previously filled in another select.&lt;/P&gt;&lt;P&gt;2. ekko-vbeln should be replaced by parameter or variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 12, 2008 7:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 05:58:22 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-05-12T05:58:22Z</dc:date>
    <item>
      <title>select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831350#M921280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   i am facing a problem with my slect statement. i need to get details greater than the date given in select stmt, but i'm not geting it. please do help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln&lt;/P&gt;&lt;P&gt;       bsart&lt;/P&gt;&lt;P&gt;       aedat&lt;/P&gt;&lt;P&gt;       ernam&lt;/P&gt;&lt;P&gt;       lifnr&lt;/P&gt;&lt;P&gt;       from ekko&lt;/P&gt;&lt;P&gt;       into table it_ekko&lt;/P&gt;&lt;P&gt;       where ebeln eq ekko-ebeln&lt;/P&gt;&lt;P&gt;       and aedat gt '20080424'&lt;/P&gt;&lt;P&gt;       and bsart &amp;lt;&amp;gt; 'AN'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      '20080424'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       and frggr is null or frgsx is null or frgke eq '1'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 05:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831350#M921280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T05:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831351#M921281</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;u can do 1 thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : dat type sy-datum.&lt;/P&gt;&lt;P&gt;dat =  '20080424'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln&lt;/P&gt;&lt;P&gt;bsart&lt;/P&gt;&lt;P&gt;aedat&lt;/P&gt;&lt;P&gt;ernam&lt;/P&gt;&lt;P&gt;lifnr&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;into table it_ekko&lt;/P&gt;&lt;P&gt;where ebeln eq ekko-ebeln&lt;/P&gt;&lt;P&gt;and aedat gt dat&lt;/P&gt;&lt;P&gt;and bsart 'AN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether it wrk.&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;Rohan Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 05:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831351#M921281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T05:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831352#M921282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your are selecting and comparing from same table EKKO, this is not possible!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ebeln eq ekko-ebeln.&lt;/P&gt;&lt;P&gt;1. ekko-vbeln was previously filled in another select.&lt;/P&gt;&lt;P&gt;2. ekko-vbeln should be replaced by parameter or variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 12, 2008 7:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 05:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831352#M921282</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-12T05:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831353#M921283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_date like ekko-aedat value '20080424'. 

select ebeln
bsart
aedat
ernam
lifnr
from ekko
into table it_ekko
where 
*ebeln eq ekko-ebeln
and aedat gt v_date
and bsart 'AN'
and ( frggr is null or 
        frgsx is null or 
        frgke eq '1' ) .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 06:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831353#M921283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T06:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831354#M921284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Micky Oestreich  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u have to check ur code &lt;/P&gt;&lt;P&gt;y r u using the same table again and again &lt;/P&gt;&lt;P&gt;even  do my 1 ans is appropriate but goin to same table again n again is not appropriate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rohan Shetty on May 12, 2008 8:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 06:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831354#M921284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T06:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831355#M921285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you are selecting the data from the ekko table and in ur where condition ur giving it as where ebeln = ekko-ebeln .&lt;/P&gt;&lt;P&gt;in ekko-ebeln there is no value this will not give you what u are looking for. Please check this out..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 06:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831355#M921285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T06:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: select query for date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831356#M921286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually there is no need to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ebeln eq ekko-ebeln in where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u friends,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 07:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-date/m-p/3831356#M921286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T07:48:19Z</dc:date>
    </item>
  </channel>
</rss>

