<?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 SELECTION SCREEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854691#M926577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;how can we handle the selection screen to disable the second field if we have two fields in selection screen &amp;amp; one of them is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly give me the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 06:56:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T06:56:53Z</dc:date>
    <item>
      <title>SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854691#M926577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;how can we handle the selection screen to disable the second field if we have two fields in selection screen &amp;amp; one of them is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly give me the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 06:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854691#M926577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T06:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854692#M926578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;1.For select-options:&lt;/P&gt;&lt;P&gt;... NO INTERVALS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If you specify this addition, the second input screen is not created on the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The user can only specify a single comparison in the first line in the selection table on the selection screen. The dialog box for multiple selections still allows interval selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Declaration of a selection criterion for which a single comparison is possible on the selection screen, but multiple selection isnot possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA spfli_wa TYPE spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_carrid FOR spfli_wa-carrid &lt;/P&gt;&lt;P&gt;NO-EXTENSION  NO-INTERVALS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.For screens:&lt;/P&gt;&lt;P&gt;Depending on the flag, enable/disable the screen elements in your AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;At selection-screen output is the last event triggered before selection screen displayed.&lt;/P&gt;&lt;P&gt;at selection screen on output is used to set screen attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION_SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;if VIEW = 'X' " View radio button selects&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME = 'PR1'.&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;IF SCREEN-NAME = 'PR2'.&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854692#M926578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854693#M926579</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 this -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS sscr.&lt;/P&gt;&lt;P&gt;Tables: KOMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-Options:&lt;/P&gt;&lt;P&gt;s_prod for komg-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA restrict TYPE sscr_restrict.&lt;/P&gt;&lt;P&gt;DATA : optlist TYPE sscr_opt_list,&lt;/P&gt;&lt;P&gt;ass type sscr_ass.&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;optlist-name = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;optlist-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;APPEND optlist TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;ass-name = 'S_PROD'.&lt;/P&gt;&lt;P&gt;ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;ass-op_main = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;APPEND ass TO restrict-ass_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;restriction = restrict&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;TOO_LATE = 1&lt;/P&gt;&lt;P&gt;REPEATED = 2&lt;/P&gt;&lt;P&gt;SELOPT_WITHOUT_OPTIONS = 3&lt;/P&gt;&lt;P&gt;SELOPT_WITHOUT_SIGNS = 4&lt;/P&gt;&lt;P&gt;INVALID_SIGN = 5&lt;/P&gt;&lt;P&gt;EMPTY_OPTION_LIST = 6&lt;/P&gt;&lt;P&gt;INVALID_KIND = 7&lt;/P&gt;&lt;P&gt;REPEATED_KIND_A = 8&lt;/P&gt;&lt;P&gt;OTHERS = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854693#M926579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854694#M926580</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;It is posible. but you need to press ENTER after entering the value in the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_char type c,&lt;/P&gt;&lt;P&gt;            p_num  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt; loop at screen.&lt;/P&gt;&lt;P&gt;   if screen-name = 'P_NUM'.&lt;/P&gt;&lt;P&gt;    if not p_char is initial.&lt;/P&gt;&lt;P&gt;     screen-input = 0.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;     screen-input = 1.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854694#M926580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854695#M926581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write the logic to disable/enable the selection screen fields in the event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;screen field&amp;gt;-input = 1; Input input-enabled field &lt;/P&gt;&lt;P&gt;&amp;lt;screen field&amp;gt;-output = 1;  Output display field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details on Loop at screen, refer sap help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854695#M926581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854696#M926582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned in my earlier post, your requirement will not be possible without any user intervention like chosing the radiobutton, checkbox, or Enter.. &lt;/P&gt;&lt;P&gt;If u wnt to use enter you can go with this code, but you have to Press ENTER after entering the value in either of the fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETER        : p_one(10) TYPE c.
PARAMETER        : p_two(10) TYPE c.


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF NOT p_one IS INITIAL.
      IF screen-name = 'P_TWO'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ELSEIF NOT p_two IS INITIAL.
      IF screen-name = 'P_ONE'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;P&gt;P.S: Avoid using duplicate threads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854696#M926582</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-05-16T07:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854697#M926583</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;enter the value in first field and press enter then the second field will get disappeared.if the first field is empty the second field will stay as it is.&lt;/P&gt;&lt;P&gt;check this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:mat LIKE mara-matnr,
           mtyp like mara-mtart.

DATA:flag.

AT SELECTION-SCREEN on mat.
IF mat is NOT INITIAL.
  flag = 1.
ELSE.
  flag = 0.
ENDIF.

AT SELECTION-SCREEN OUTPUT.
IF flag = 1.
  LOOP AT SCREEN.
    IF screen-name = 'MTYP' or screen-name = '%_MTYP_%_APP_%-TEXT'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854697#M926583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTION SCREEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854698#M926584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks gopi...&lt;/P&gt;&lt;P&gt;its solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 08:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/3854698#M926584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T08:54:05Z</dc:date>
    </item>
  </channel>
</rss>

