<?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 - requirement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948944#M390949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;press f4 for date-low and then press enter or execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options:  s_date    for   sy-datum.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_date-low.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_DATE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_FOR_FIRST_MONTH               = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FACTORY_CALENDAR_ID                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GREGORIAN_CALENDAR_FLAG            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HOLIDAY_CALENDAR_ID                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGNAME_FOR_FIRST_MONTH           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SELECT_DATE                        = s_DATE-low&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK                        = SELECT_WEEK&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK_BEGIN                  = SELECT_WEEK_BEGIN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK_END                    = SELECT_WEEK_END&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CALENDAR_BUFFER_NOT_LOADABLE       = 1&lt;/P&gt;&lt;P&gt;   DATE_AFTER_RANGE                   = 2&lt;/P&gt;&lt;P&gt;   DATE_BEFORE_RANGE                  = 3&lt;/P&gt;&lt;P&gt;   DATE_INVALID                       = 4&lt;/P&gt;&lt;P&gt;   FACTORY_CALENDAR_NOT_FOUND         = 5&lt;/P&gt;&lt;P&gt;   HOLIDAY_CALENDAR_NOT_FOUND         = 6&lt;/P&gt;&lt;P&gt;   PARAMETER_CONFLICT                 = 7&lt;/P&gt;&lt;P&gt;   OTHERS                             = 8&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CALCULATE_DATE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   DAYS              = '28'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MONTHS            = '0'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   START_DATE        = s_date-low&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RESULT_DATE       = s_date-high .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 02:39:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T02:39:56Z</dc:date>
    <item>
      <title>selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948940#M390945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report with a date range at the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-options:  s_date    for   afko-gltrp obligatory.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do something like this. At the selection screen when I pick any start date for s_date-low I should get the date 4 weeks from s_date-low into s_date-high. For example if I select 02/01/2007 for s_date-low, I should get 02/28/2007 into s_date-high. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 01:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948940#M390945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T01:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948941#M390946</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 out with writing the code in AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;Check this link for usage -&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3003965"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948941#M390946</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-02-21T02:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948942#M390947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the AT SELECTION-SCREEN event,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_date.&lt;/P&gt;&lt;P&gt;s_date-high = s_date-low + 28.&lt;/P&gt;&lt;P&gt;modify s_date.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus after entering the low value if you press enter, the respective high value will appear in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948942#M390947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948943#M390948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS S_DATE FOR SY-DATUM MODIF ID ABC.

DATA: DUR TYPE PSEN_DURATION_DEC.

AT SELECTION-SCREEN OUTPUT.

  IF NOT S_DATE-LOW IS INITIAL.
     DUR-CALDD = 28.
     CALL FUNCTION 'HR_SEN_CALE_DAYS_DATE'
       EXPORTING
         ID_DATE                        = S_DATE-LOW
         ID_OPERATOR                    = '+'
         IS_DURATION                    = DUR
      IMPORTING
        ED_DATE                        = S_DATE-HIGH
      EXCEPTIONS
        CONVERSION_NOT_SPECIFIED       = 1
        CONVERSION_NOT_POSSIBLE        = 2
        OTHERS                         = 3.
     MODIFY S_DATE INDEX 1.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948943#M390948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948944#M390949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;press f4 for date-low and then press enter or execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;select-options:  s_date    for   sy-datum.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for s_date-low.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_DATE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DATE_FOR_FIRST_MONTH               = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FACTORY_CALENDAR_ID                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GREGORIAN_CALENDAR_FLAG            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HOLIDAY_CALENDAR_ID                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGNAME_FOR_FIRST_MONTH           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SELECT_DATE                        = s_DATE-low&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK                        = SELECT_WEEK&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK_BEGIN                  = SELECT_WEEK_BEGIN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECT_WEEK_END                    = SELECT_WEEK_END&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CALENDAR_BUFFER_NOT_LOADABLE       = 1&lt;/P&gt;&lt;P&gt;   DATE_AFTER_RANGE                   = 2&lt;/P&gt;&lt;P&gt;   DATE_BEFORE_RANGE                  = 3&lt;/P&gt;&lt;P&gt;   DATE_INVALID                       = 4&lt;/P&gt;&lt;P&gt;   FACTORY_CALENDAR_NOT_FOUND         = 5&lt;/P&gt;&lt;P&gt;   HOLIDAY_CALENDAR_NOT_FOUND         = 6&lt;/P&gt;&lt;P&gt;   PARAMETER_CONFLICT                 = 7&lt;/P&gt;&lt;P&gt;   OTHERS                             = 8&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CALCULATE_DATE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   DAYS              = '28'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MONTHS            = '0'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   START_DATE        = s_date-low&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RESULT_DATE       = s_date-high .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 02:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948944#M390949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T02:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen - requirement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948945#M390950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF you select the date ,no event will get fire.so your logic never works.What i mean is whenever you select the date into "low " based  on your date "high" date has to calculate.for that one event has to get trigger.But here no event will get trigger.So change your requiremnet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 03:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-requirement/m-p/1948945#M390950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T03:07:48Z</dc:date>
    </item>
  </channel>
</rss>

