<?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 Dynamically hiding fields in tabbed block in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840152#M1472977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;I have two probably simple problems. &lt;/P&gt;&lt;P&gt;First - I have selection screen with tabs. On first tab I have select-option field and below the checkbox. How can I dynamically hide the select-option field when I click a checkbox. &lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS s_valid  FOR lv_valid MODIF ID gr1.
PARAMETER p_chkab AS CHECKBOX DEFAULT ' '.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 100.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
TAB (20) t1_en USER-COMMAND push1
DEFAULT SCREEN 100,
TAB (20) t2_partn USER-COMMAND push2
DEFAULT SCREEN 200,
...
END OF BLOCK mytab.
INITIALIZATION.
  t1_en = 'DATES'.
  t2_partn = 'partn'.
  mytab-prog = sy-repid.
  mytab-dynnr = 100.
  mytab-activetab = 'T1_EN'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to use LOOP AT SCREEN but AT SELECTION-SCREEN OUTPUT i do not have access to the fields in tabs (only to the tabs). and this event is not triggered when I checked the checkbox. What can I do to make it works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Apr 2010 11:18:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-16T11:18:45Z</dc:date>
    <item>
      <title>Dynamically hiding fields in tabbed block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840152#M1472977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;I have two probably simple problems. &lt;/P&gt;&lt;P&gt;First - I have selection screen with tabs. On first tab I have select-option field and below the checkbox. How can I dynamically hide the select-option field when I click a checkbox. &lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS s_valid  FOR lv_valid MODIF ID gr1.
PARAMETER p_chkab AS CHECKBOX DEFAULT ' '.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 100.

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
TAB (20) t1_en USER-COMMAND push1
DEFAULT SCREEN 100,
TAB (20) t2_partn USER-COMMAND push2
DEFAULT SCREEN 200,
...
END OF BLOCK mytab.
INITIALIZATION.
  t1_en = 'DATES'.
  t2_partn = 'partn'.
  mytab-prog = sy-repid.
  mytab-dynnr = 100.
  mytab-activetab = 'T1_EN'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to use LOOP AT SCREEN but AT SELECTION-SCREEN OUTPUT i do not have access to the fields in tabs (only to the tabs). and this event is not triggered when I checked the checkbox. What can I do to make it works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840152#M1472977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hiding fields in tabbed block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840153#M1472978</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;You have to use Usercommand Keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER p_chkab AS CHECKBOX DEFAULT ' ' user-command fcode.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it .&lt;/P&gt;&lt;P&gt;Hope it helps.&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>Fri, 16 Apr 2010 11:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840153#M1472978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hiding fields in tabbed block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840154#M1472979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Welcome to SCN/SDN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*PARAMETER p_chkab AS CHECKBOX DEFAULT ' '. 
PARAMETER p_chkab AS CHECKBOX USER-COMMAND ABC DEFAULT ' '. " Add USER-COMMAND
This will trigger automatic PAI/PBO

AT SELECTION-SCREEN OUTPUT.
IF P_CHKAB = 'X'.
loop at screen.
           screen-name = '%_S_VALID_%_APP_%-TEXT' or " Get these from Screen Layout 
           screen-name = 'S_VALID-LOW'            or
           screen-name = 'S_ERDAT-HIGH' .
 SCREEN-ACTIVE = 0.
MODIFY SCREEN.
endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840154#M1472979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hiding fields in tabbed block</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840155#M1472980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use SCREEN-INVISIBLE  = 1, to hide the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of block b1 with frame title text-001.
parameters : rad1 radiobutton group rad default 'X' user-command radio.
parameters : rad2 radiobutton group rad.
parameters : rad3 radiobutton group rad.
selection-screen end of block b1.

selection-screen begin of block b2 with frame title text-005.
parameter : p_file type ibipparms-path modif id m1.
select-options : p_delno for likp-vbeln no intervals modif id m2.
select-options : p_vbeln for likp-vbeln modif id m3.
selection-screen end of block b2.

at selection-screen output.
  loop at screen.
    if rad1 eq 'X'.
      if screen-group1 = 'M1'.
        move 1 to screen-input.
        move 0 to screen-invisible.
      elseif screen-group1 = 'M2'.
        move 0 to screen-input.
        move 1 to screen-invisible.
      elseif screen-group1 = 'M3'.
        move 0 to screen-input.
        move 1 to screen-invisible.
      endif.
    endif.
   modify screen.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 11:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hiding-fields-in-tabbed-block/m-p/6840155#M1472980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-16T11:31:23Z</dc:date>
    </item>
  </channel>
</rss>

