<?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: HELP REQ IN SIMPLE CODE TO RETRIEVE DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512706#M236350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a range for this and build it on the fly.  The only question is how far back do you want to go.  I mean, how many dates to add to the range.  Here I'm only adding 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

&amp;lt;b&amp;gt;ranges: r_datum for sy-datum.

r_datum-sign = 'I'.
r_datum-option = 'EQ'.
r_datum-low  = sy-datum.  append r_datum.
do 10 times.
  r_datum-low  = r_datum-low - 2.  append r_datum.
enddo.&amp;lt;/b&amp;gt;


select .....
          &amp;lt;b&amp;gt;where datum in r_datum&amp;lt;/b&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 17:48:29 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-14T17:48:29Z</dc:date>
    <item>
      <title>HELP REQ IN SIMPLE CODE TO RETRIEVE DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512704#M236348</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 need to retrieve data from an internal TABLE whose date field is multiple of 2 days behind from current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like todays date is 14/08/06 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need records of date 12/08/06,10/08/06,8/8/06,6/8/06,4/8/06 .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 17:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512704#M236348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T17:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: HELP REQ IN SIMPLE CODE TO RETRIEVE DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512705#M236349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't sy-datum - 2 help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 17:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512705#M236349</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-08-14T17:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: HELP REQ IN SIMPLE CODE TO RETRIEVE DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512706#M236350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a range for this and build it on the fly.  The only question is how far back do you want to go.  I mean, how many dates to add to the range.  Here I'm only adding 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

&amp;lt;b&amp;gt;ranges: r_datum for sy-datum.

r_datum-sign = 'I'.
r_datum-option = 'EQ'.
r_datum-low  = sy-datum.  append r_datum.
do 10 times.
  r_datum-low  = r_datum-low - 2.  append r_datum.
enddo.&amp;lt;/b&amp;gt;


select .....
          &amp;lt;b&amp;gt;where datum in r_datum&amp;lt;/b&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 17:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-in-simple-code-to-retrieve-data/m-p/1512706#M236350</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-14T17:48:29Z</dc:date>
    </item>
  </channel>
</rss>

