<?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-Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934814#M386689</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define my own F4 Input help processing for a field on the selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the event AT SELECTION-SCREEN ON VALUE REQUEST FOR  for defining your own input help for selection screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_Sample TYPE c LENGTH 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE REQUEST FOR p_Sample.&lt;/P&gt;&lt;P&gt;BREAK-POINT. " don´t forget to remove&lt;/P&gt;&lt;P&gt;"Do your processing here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to top&lt;/P&gt;&lt;P&gt;How can I set the initial values for SELECT OPTIONS at the start of the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the event INITIALIZATION you could set the initial values for the selection screen fields. For SELECT OPTIONS you should fill the SIGN, OPTION, LOW, HIGH fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Set the date field with starting day of the month to last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_date FOR sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  s_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_date-option = 'BT'.&lt;/P&gt;&lt;P&gt;  date+6(2) = '01'.&lt;/P&gt;&lt;P&gt;  s_date-low = sy-datum.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      day_in            = sy-datum&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      last_day_of_month = s_date-high&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      day_in_no_date    = 1.&lt;/P&gt;&lt;P&gt;  APPEND s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to top&lt;/P&gt;&lt;P&gt;How can we change screen fields on run time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters and radio button selection at Selection screen can be changed as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_mypar TYPE C LENGTH 15,&lt;/P&gt;&lt;P&gt;  rd1     TYPE flag RADIOBUTTON group g1 default 'X' MODIF ID ID1 ,&lt;/P&gt;&lt;P&gt;  rd2     TYPE flag RADIOBUTTON group g1 MODIF ID ID2 ,&lt;/P&gt;&lt;P&gt;  rd3     TYPE flagRADIOBUTTON group g1 MODIF ID ID3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN output.&lt;/P&gt;&lt;P&gt;  PERFORM sub_Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_Outout.&lt;/P&gt;&lt;P&gt;  IF p_mypar = ''.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'ID1' OR screen-group1 = 'ID2' OR screen-group1 = 'ID3' .&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Feb 2007 07:01:24 GMT</pubDate>
    <dc:creator>p291102</dc:creator>
    <dc:date>2007-02-17T07:01:24Z</dc:date>
    <item>
      <title>Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934812#M386687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;     Can we have Select-options in screens.&lt;/P&gt;&lt;P&gt;When we are going to screen and when we are going to selection-screen?&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 06:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934812#M386687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-17T06:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934813#M386688</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;Yes we can have select-options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 07:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934813#M386688</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-02-17T07:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934814#M386689</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define my own F4 Input help processing for a field on the selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the event AT SELECTION-SCREEN ON VALUE REQUEST FOR  for defining your own input help for selection screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: p_Sample TYPE c LENGTH 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE REQUEST FOR p_Sample.&lt;/P&gt;&lt;P&gt;BREAK-POINT. " don´t forget to remove&lt;/P&gt;&lt;P&gt;"Do your processing here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to top&lt;/P&gt;&lt;P&gt;How can I set the initial values for SELECT OPTIONS at the start of the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the event INITIALIZATION you could set the initial values for the selection screen fields. For SELECT OPTIONS you should fill the SIGN, OPTION, LOW, HIGH fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Set the date field with starting day of the month to last day of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_date FOR sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  s_date-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_date-option = 'BT'.&lt;/P&gt;&lt;P&gt;  date+6(2) = '01'.&lt;/P&gt;&lt;P&gt;  s_date-low = sy-datum.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LAST_DAY_OF_MONTHS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      day_in            = sy-datum&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      last_day_of_month = s_date-high&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      day_in_no_date    = 1.&lt;/P&gt;&lt;P&gt;  APPEND s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back to top&lt;/P&gt;&lt;P&gt;How can we change screen fields on run time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters and radio button selection at Selection screen can be changed as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_mypar TYPE C LENGTH 15,&lt;/P&gt;&lt;P&gt;  rd1     TYPE flag RADIOBUTTON group g1 default 'X' MODIF ID ID1 ,&lt;/P&gt;&lt;P&gt;  rd2     TYPE flag RADIOBUTTON group g1 MODIF ID ID2 ,&lt;/P&gt;&lt;P&gt;  rd3     TYPE flagRADIOBUTTON group g1 MODIF ID ID3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN output.&lt;/P&gt;&lt;P&gt;  PERFORM sub_Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_Outout.&lt;/P&gt;&lt;P&gt;  IF p_mypar = ''.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'ID1' OR screen-group1 = 'ID2' OR screen-group1 = 'ID3' .&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 07:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934814#M386689</guid>
      <dc:creator>p291102</dc:creator>
      <dc:date>2007-02-17T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select-Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934815#M386690</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;Yes we can have select-options in a screen.&lt;/P&gt;&lt;P&gt;In the same way that you can define a screen as a subscreen in the Screen Painter, it is now possible to define selection screens as subscreens in an ABAP program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF SCREEN &amp;lt;scrn&amp;gt; AS SUBSCREEN .&lt;/P&gt;&lt;P&gt;                                            &lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF SCREEN &amp;lt;scrn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selection screen defined so, can be called on a screen&lt;/P&gt;&lt;P&gt;in a subscreen area using CALL SUBSCREEN statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for more clarity&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/87/56d00722c011d2954a0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/87/56d00722c011d2954a0000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2007 05:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/1934815#M386690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-18T05:35:45Z</dc:date>
    </item>
  </channel>
</rss>

