<?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 Dis-abling input field in Selection screen???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358694#M521493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv a selection screen with,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input_fld_1 has the LIST BOX with A, B, C, D, E, F&lt;/P&gt;&lt;P&gt;input_fld_2&lt;/P&gt;&lt;P&gt;input_fld_3 has the LIST BOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my requirement is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects/enters A, B, C, D in input_fld_1, the nexe moment/second (here,  prog. shuld not ask the user to press any button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the input_fld_3 shuld b automatically dis-abled!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Is it possible? If so How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 19:01:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T19:01:55Z</dc:date>
    <item>
      <title>Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358694#M521493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv a selection screen with,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input_fld_1 has the LIST BOX with A, B, C, D, E, F&lt;/P&gt;&lt;P&gt;input_fld_2&lt;/P&gt;&lt;P&gt;input_fld_3 has the LIST BOX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my requirement is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects/enters A, B, C, D in input_fld_1, the nexe moment/second (here,  prog. shuld not ask the user to press any button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the input_fld_3 shuld b automatically dis-abled!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Is it possible? If so How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358694#M521493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358695#M521494</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;What you need to do is attach a user command to your first list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : p_list1 type &amp;lt;whaterver&amp;gt; user-command &amp;lt;&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will trigger the at selection screen event whenever the user enters anything in the first list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if p_list1 eq 'A' or p_list1 = 'B' or ......&lt;/P&gt;&lt;P&gt;if screen-name = p_list3.&lt;/P&gt;&lt;P&gt;  screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;  screen-active = '0'.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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;do this &amp;amp; it shud work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points to all helpful answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358695#M521494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358696#M521495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead, you can check in the AT SELECTION-SCREEN event for the value of input_fld_1, and handle the input accordingly so that the user is aware that the other field will not be relevant (warning message?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  if input_fld_1 eq 'A' or&lt;/P&gt;&lt;P&gt;input_fld_1 eq 'B' or&lt;/P&gt;&lt;P&gt;input_fld_1 eq 'C' or&lt;/P&gt;&lt;P&gt;input_fld_1 eq 'D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if input_fld_3 ne initial.&lt;/P&gt;&lt;P&gt;input_fld_3 = space.&lt;/P&gt;&lt;P&gt;MESSAGE 'Input field 3 is not relevant and will be ignored.' TYPE 'W'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358696#M521495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358697#M521496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel ...&lt;/P&gt;&lt;P&gt;What you say is true that without a user command this is not possible ...&lt;/P&gt;&lt;P&gt;hence while declaring the parameters / select options we need to add the addition USER-COMMAND .&lt;/P&gt;&lt;P&gt;This will trigger teh user command when something is entered in the box, without the user having to press enter button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358697#M521496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358698#M521497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible when user press enter button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use at selection-screen output event.&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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358698#M521497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358699#M521498</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;Gaurav has correctly told that User-command needs to be assigned to the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code mentioned should be in AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;and screen-input = '0' should set if you want to make it input disabled.&lt;/P&gt;&lt;P&gt;To make it invisible, screen-active = '0' would do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358699#M521498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358700#M521499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the example code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:     p_vdatu  LIKE sy-datum OBLIGATORY modif id bel .&lt;/P&gt;&lt;P&gt;select-options : s_vdatu for sy-datum obligatory modif id rel.&lt;/P&gt;&lt;P&gt;select-options : s_arbpl for RC68A-arbpl modif id arb.&lt;/P&gt;&lt;P&gt;select-options : s_mtart for mara-mtart modif id mta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User Dynamic Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from t000md.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;    case screen-group1.&lt;/P&gt;&lt;P&gt;      when 'REL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if not  p_old is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'BEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if not p_new is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'ARB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if  p_new is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          screen-input = '0'.&lt;/P&gt;&lt;P&gt;          screen-required = '0'.&lt;/P&gt;&lt;P&gt;          screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;&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, 15 Jun 2007 19:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358700#M521499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358701#M521500</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;for changing the screen fields dynamically, we provide logic under&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; AT SELECTION-SCREEN OUTPUT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each and every screen fields attributes are stored in SCREEN table.&lt;/P&gt;&lt;P&gt;for modifying screen fields we can also use MODIFY SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
       **here write the logic as per your needs.
       if p_list1 eq 'A' and p_list1 = 'B' and  p_list1 = 'C' and p_list1 = 'D'. 
                     if screen-name = p_list3.
                     screen-invisible = '1'.     "  field is suppresed
                     modify screen.             " it modifies the fields before displaying
                 endif.

       endif.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 19:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358701#M521500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dis-abling input field in Selection screen????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358702#M521501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThanQ Sheshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some way, UR right! &lt;/P&gt;&lt;P&gt;But, at the same time, Prashanth suggestons is working well i.e. no need of ENTER pressing. but as u sadi, it shuld b in AT SELECECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, now, my requirement changed to make it to SELECT-OPTIONS input filed, I dont know, How to get it done? Am opning a new thread, if u hv any clue, pls. respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 03:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-abling-input-field-in-selection-screen/m-p/2358702#M521501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T03:08:53Z</dc:date>
    </item>
  </channel>
</rss>

