<?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: selection screen design in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-design/m-p/3227466#M769815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"nightly (travel date range: tomorrow&amp;#146;s date to 60 days later) and
"weekly (travel date range: 61days after of tomorrow to 6 month after of today&amp;#146;s date).

SELECT-OPTIONS : s_nigtly FOR sy-datum.
SELECT-OPTIONS : s_weekly FOR sy-datum.

INITIALIZATION.
s_nigtly-sign = 'I'.
s_nigtly-option = 'BT'.
s_nigtly-low = sy-datum + 1. "tommorrows date
s_nigtly-high = sy-datum + 60. "60 days later.
APPEND s_nigtly.

s_weekly-sign = 'I'.
s_weekly-option = 'BT'.
s_weekly-low = s_nigtly-low + 61 . "61days after of tomorrow

CALL FUNCTION 'MONTH_PLUS_DETERMINE'
  EXPORTING
    months        = '6'
    olddate       = sy-datum
 IMPORTING
   NEWDATE       = s_weekly-high. "6 month after of today&amp;#146;s date
APPEND s_weekly.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 11:07:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T11:07:52Z</dc:date>
    <item>
      <title>selection screen design</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-design/m-p/3227465#M769814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnds,&lt;/P&gt;&lt;P&gt;                 Can anyone hlep me how to write the selection screen for the stuff below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zavail(program name) , create parameter selection to run by travel dates. Must have ability to run nightly (travel date range: tomorrow&amp;#146;s date to 60 days later) and weekly (travel date range: 61days after of tomorrow to 6 month after of today&amp;#146;s date).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me frnds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 10:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-design/m-p/3227465#M769814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen design</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-design/m-p/3227466#M769815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"nightly (travel date range: tomorrow&amp;#146;s date to 60 days later) and
"weekly (travel date range: 61days after of tomorrow to 6 month after of today&amp;#146;s date).

SELECT-OPTIONS : s_nigtly FOR sy-datum.
SELECT-OPTIONS : s_weekly FOR sy-datum.

INITIALIZATION.
s_nigtly-sign = 'I'.
s_nigtly-option = 'BT'.
s_nigtly-low = sy-datum + 1. "tommorrows date
s_nigtly-high = sy-datum + 60. "60 days later.
APPEND s_nigtly.

s_weekly-sign = 'I'.
s_weekly-option = 'BT'.
s_weekly-low = s_nigtly-low + 61 . "61days after of tomorrow

CALL FUNCTION 'MONTH_PLUS_DETERMINE'
  EXPORTING
    months        = '6'
    olddate       = sy-datum
 IMPORTING
   NEWDATE       = s_weekly-high. "6 month after of today&amp;#146;s date
APPEND s_weekly.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 11:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-design/m-p/3227466#M769815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T11:07:52Z</dc:date>
    </item>
  </channel>
</rss>

