<?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: Reg: Date ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189806#M1001581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marreddy,&lt;/P&gt;&lt;P&gt;                          Do like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbak-erdat is create date.&lt;/P&gt;&lt;P&gt;vbak-eadat is date on last change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;erdat a&lt;SUB&gt;eadat a&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;matnr b&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;into coressponding fields of table it_vbak&lt;/P&gt;&lt;P&gt;from vbak as a inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where a&lt;SUB&gt;vbeln in lr_vbeln and ( a&lt;/SUB&gt;erdat = sy-datum or a~eadat = sy-datum ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 16:38:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T16:38:31Z</dc:date>
    <item>
      <title>Reg: Date ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189805#M1001580</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;there is a problem in date ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to fecth data based on create date and  date on last change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbak-erdat is create date.&lt;/P&gt;&lt;P&gt;vbak-eadat is date on last change&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 created 2 sales orders yestday.&lt;/P&gt;&lt;P&gt;- today i created 2 sales orders .&lt;/P&gt;&lt;P&gt;-but i have modfiy yestdays sales orders also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need to get  today what have created and what i have modfiy data  . so know it should get 4 sales orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;erdat a&lt;SUB&gt;eadat a&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;         b&lt;SUB&gt;matnr b&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;         into coressponding  fields of table it_vbak&lt;/P&gt;&lt;P&gt;        from vbak as a inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;        where a~vbeln in lr_vbeln and date ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how to write code for date range based on on create date and  date on last change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls can you help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 16:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189805#M1001580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Date ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189806#M1001581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marreddy,&lt;/P&gt;&lt;P&gt;                          Do like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbak-erdat is create date.&lt;/P&gt;&lt;P&gt;vbak-eadat is date on last change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;erdat a&lt;SUB&gt;eadat a&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;matnr b&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;into coressponding fields of table it_vbak&lt;/P&gt;&lt;P&gt;from vbak as a inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where a&lt;SUB&gt;vbeln in lr_vbeln and ( a&lt;/SUB&gt;erdat = sy-datum or a~eadat = sy-datum ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 16:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189806#M1001581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T16:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Date ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189807#M1001582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~vbeln a~erdat a~eadat a~kunnr
b~matnr b~werks
into coressponding fields of table it_vbak
from vbak as a inner join vbap as b on a~vbeln = b~vbeln
where a~vbeln in lr_vbeln 
and ( a~erdat in S_date_range or a~eadat in s_date_range)    "&amp;lt;&amp;lt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 16:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-date-ranges/m-p/4189807#M1001582</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-07-18T16:39:00Z</dc:date>
    </item>
  </channel>
</rss>

