<?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: Hide/Show parameter based on another parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302407#M790703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark in my example above am doing the manipulations only to parameter P_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check another example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_chb AS CHECKBOX USER-COMMAND chb,
            p_file TYPE localfile.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name CP '*P_FILE*'.
      IF p_chb IS INITIAL.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have a better feel, execute in a temporary program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 00:57:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-30T00:57:40Z</dc:date>
    <item>
      <title>Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302403#M790699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to hide the parameters initially on the screen and only showing them when another field is selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when I click on "range" then I want to to display two fields....start date and end date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302403#M790699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T00:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302404#M790700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the selection screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.

IF pa_equip &amp;lt;&amp;gt; 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'I1'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

IF pa_logic &amp;lt;&amp;gt; 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'I2'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You will get many examples if you search the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302404#M790700</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-01-30T00:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302405#M790701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the click you are referring to is on a check box or radio button, yes we can do it. But if selection are to be invoked when you click on label, i think it may not be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example on a possible scenario is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: p_rd1 radiobutton group rad1 default 'X' user-command but,
            p_rd2 radiobutton group rad1,
            p_text type char128 obligatory.

at selection-screen output.

  loop at screen.
     if screen-name CP '*P_TEXT*'.
        if not p_rd1 is initial.
           screen-active = 1.
           screen-required = 1.
        else.
           screen-active = 0.
           screen-required = 0.
        endif.
        modify screen.
     endif.
  endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302405#M790701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T00:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302406#M790702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Eswar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code will hide the entire screen and not the specific fields? How do I hide just the fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302406#M790702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T00:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302407#M790703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark in my example above am doing the manipulations only to parameter P_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check another example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_chb AS CHECKBOX USER-COMMAND chb,
            p_file TYPE localfile.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name CP '*P_FILE*'.
      IF p_chb IS INITIAL.
        screen-active = 0.
      ELSE.
        screen-active = 1.
      ENDIF.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have a better feel, execute in a temporary program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 00:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302407#M790703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T00:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302408#M790704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I got it. I missed online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So initially when the checkbox is not checked the other field does not appear, then when I make it checked can I make the field appear dynamically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 01:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302408#M790704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T01:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302409#M790705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 01:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302409#M790705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T01:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302410#M790706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not appear when I check the box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 01:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302410#M790706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T01:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302411#M790707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 01:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302411#M790707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302412#M790708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MArk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_chb AS CHECKBOX USER-COMMAND chb,&lt;/P&gt;&lt;P&gt;p_sdate LIKE sy-datum MODIF ID mod,&lt;/P&gt;&lt;P&gt;p_edate LIKE sy-datum MODIF ID mod.&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; &lt;/P&gt;&lt;P&gt;IF p_chb NE 'X'.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;   IF screen-group1 EQ 'MOD'.&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_chb NE 'X'.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;   IF screen-group1 EQ 'MOD'.&lt;/P&gt;&lt;P&gt;        screen-active = 1.     &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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 03:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302412#M790708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T03:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hide/Show parameter based on another parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302413#M790709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE frametxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter: cttyp type p0016-cttyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_date for p0016-aedtm NO-extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK block1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: Test as checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: m_run as checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: st_date type p0016-begda MODIF ID MOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: en_date type p0016-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK block2.&lt;/P&gt;&lt;P&gt;*AT SELECTION-SCREEN OUTPUT.&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;  if m_run is initial.&lt;/P&gt;&lt;P&gt;   if Screen-name CP '&lt;STRONG&gt;st_date&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;    Screen-active = 0.&lt;/P&gt;&lt;P&gt;    screen-required = 0.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     screen-active = 1.&lt;/P&gt;&lt;P&gt;   Endif.&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; Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 17:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-show-parameter-based-on-another-parameter/m-p/3302413#M790709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T17:00:22Z</dc:date>
    </item>
  </channel>
</rss>

