<?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: Make parameter visible again dynamically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626773#M1441295</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;I know that w/o user interaction nothing can be done.&lt;/P&gt;&lt;P&gt;So Enter is required ....&lt;/P&gt;&lt;P&gt;just try to set a flag and according to flag u call At Selection-Screen Output Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it.&lt;/P&gt;&lt;P&gt;&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;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2010 07:42:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-26T07:42:36Z</dc:date>
    <item>
      <title>Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626770#M1441292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Users are asked to choose value from a custom pop-up list in &lt;STRONG&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xxxx&lt;/STRONG&gt; event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And based on the value returned, some parameters will be set invisible or visible instantly by &lt;STRONG&gt;loop screen&lt;/STRONG&gt; It work well for making parameters invisible instantly. However, I can not make those invisible parameters become visible again at once until ENTER is pressed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss anything important? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 05:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626770#M1441292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T05:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626771#M1441293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try using the Event &lt;STRONG&gt;AT Selection-Screen Output&lt;/STRONG&gt; and manipulate accordingly......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in SAP until a User-Command is entered nothing Works ,so i think according to Your Logic Enter is must so try the above.......&lt;/P&gt;&lt;P&gt;&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;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 06:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626771#M1441293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626772#M1441294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Arbind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact I tried &lt;STRONG&gt;AT Selection-Screen Output&lt;/STRONG&gt; before but neither visible nor invisible change were instant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 07:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626772#M1441294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626773#M1441295</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;I know that w/o user interaction nothing can be done.&lt;/P&gt;&lt;P&gt;So Enter is required ....&lt;/P&gt;&lt;P&gt;just try to set a flag and according to flag u call At Selection-Screen Output Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it.&lt;/P&gt;&lt;P&gt;&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;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 07:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626773#M1441295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-26T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626774#M1441296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a way you could make it work... the "hit_enter" form is the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zsdn_jc_f4_with_refresh.

data:
  g_hide_onoff          type sap_bool.

parameters:
  p_date1               type sy-datum,
  p_date2               type sy-datum,
  p_onoff               type sy-ucomm modif id hid.

at selection-screen output.
  p_onoff = 'This field disappears and reappears'.
  loop at screen.
    if screen-group1 = 'HID'.
      screen-input = '0'.
      if g_hide_onoff = 'X'.
        screen-invisible = '1'.
      endif.
      modify screen.
    endif.
  endloop.

at selection-screen on value-request for p_date1.
* Select a date to un-hide "p_onoff"
  call function 'F4_DATE'
    exporting
      date_for_first_month = sy-datum
    importing
      select_date          = p_date1
    exceptions
      others               = 0.
  g_hide_onoff = ' '.
  perform hit_enter.

at selection-screen on value-request for p_date2.
* Select a date to hide "p_onoff"
  call function 'F4_DATE'
    exporting
      date_for_first_month = sy-datum
    importing
      select_date          = p_date2
    exceptions
      others               = 0.
  g_hide_onoff = 'X'.
  perform hit_enter.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  hit_enter
*&amp;amp;---------------------------------------------------------------------*
form hit_enter.
* Mimic user hitting Enter
  call function 'SAPGUI_SET_FUNCTIONCODE'
    exporting
      functioncode = '=00'
    exceptions
      others       = 0.
endform.                    "hit_enter
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 08:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626774#M1441296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T08:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Make parameter visible again dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626775#M1441297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Johnathan thx for your answer,  &lt;STRONG&gt;SAPGUI_SET_FUNCTIONCODE&lt;/STRONG&gt; just solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noted the &lt;STRONG&gt;hit_enter&lt;/STRONG&gt; also trigger &lt;STRONG&gt;AT SELECTION-SCREEN&lt;/STRONG&gt; event which includes some customized selection validating functions. To skip these functions after changing visibility of parameters, I hv to use a flag for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 08:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-parameter-visible-again-dynamically/m-p/6626775#M1441297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T08:04:37Z</dc:date>
    </item>
  </channel>
</rss>

