<?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: change screen directly after input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152571#M992923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much prasanth, this worked well!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 08:08:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T08:08:35Z</dc:date>
    <item>
      <title>change screen directly after input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152569#M992921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined an input field on my selection screen as a Listbox:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters p_mode type c length 3 as listbox visible length 25 default 'BIN' obligatory.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I filled the Listbox with the two Values 'BIN' and 'ASC', they are displayed and everything works fine.&lt;/P&gt;&lt;P&gt;Now I have two more fields which depend on the current value of p_mode, they should only be displayed if p_mode = 'ASC' and mustn't be displayed if p_mode = 'BIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I use the event AT SELECTION SCREEN OUTPUT, where I put this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" show/hide options for text mode
  loop at screen.
    if p_mode = 'ASC'.
      if screen-group1 = 'G_1'.
        screen-active = 1.
        modify screen.
      endif.

    elseif p_mode = 'BIN'
      if screen-group1 = 'G_1'.
        screen-active = 0.
        modify screen.
      endif.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also working, but this event is only triggered if the user submits his input by pressing ENTER. As this input field is a Listbox, in my opinion there is no need to press enter to submit a input, this would be a bad user interface design. Is is somehow possible to change the visibility of the depending fields on the fly, just when the user changes the value of the listbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 07:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152569#M992921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: change screen directly after input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152570#M992922</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;&amp;gt; parameters p_mode type c length 3 as listbox visible length 25 default 'BIN' obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the addition user command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;gt; parameters p_mode type c length 3 as listbox visible length 25 USER-COMMAND ucomm default 'BIN' obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 07:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152570#M992922</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-07-21T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: change screen directly after input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152571#M992923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much prasanth, this worked well!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-screen-directly-after-input/m-p/4152571#M992923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T08:08:35Z</dc:date>
    </item>
  </channel>
</rss>

