<?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: Dynamically hide a block in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3855000#M926703</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;Loop at screen.&lt;/P&gt;&lt;P&gt;If screen-group3 = 'BLK'.&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;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Reward points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 05:26:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T05:26:55Z</dc:date>
    <item>
      <title>Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854995#M926698</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;Can we hide a whole block in a selection screen dynamically.&lt;/P&gt;&lt;P&gt;If so, then how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar Tripathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854995#M926698</guid>
      <dc:creator>Bhaskar_Tripath</dc:creator>
      <dc:date>2008-05-23T05:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854996#M926699</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;Refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_select_report&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_select_report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ( p_post  EQ c_chk ).&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 ( screen-group1 EQ 'MD1' ) OR&lt;/P&gt;&lt;P&gt;         ( screen-group1 EQ 'MD2' ) OR&lt;/P&gt;&lt;P&gt;         ( screen-group1 EQ 'MD3' ) OR&lt;/P&gt;&lt;P&gt;         ( screen-group1 EQ 'MD4' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        screen-input   = c_ok.&lt;/P&gt;&lt;P&gt;        screen-active  = c_ok.&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;      IF ( screen-group1 EQ 'MD5' ) OR&lt;/P&gt;&lt;P&gt;         ( screen-group1 EQ 'MD6' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        screen-input   = c_1.&lt;/P&gt;&lt;P&gt;        screen-active  = c_1.&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;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF p_rpt EQ c_chk.&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 ( screen-group1 EQ 'MD5' ) OR&lt;/P&gt;&lt;P&gt;         ( screen-group1 EQ 'MD6' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        screen-input   = c_ok.&lt;/P&gt;&lt;P&gt;        screen-active  = c_ok.&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;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;ENDFORM.                    " sub_select_report&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854996#M926699</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-05-23T05:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854997#M926700</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;Make sure you hide your comment lines with the MODIF ID as well. &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block processing with frame title text-030.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen position 1.&lt;/P&gt;&lt;P&gt;parameters pa_xmanu like rm08mrbr-manu default 'X'&lt;/P&gt;&lt;P&gt;radiobutton group val modif id id1.&lt;/P&gt;&lt;P&gt;selection-screen comment 3(30) text-040 for field pa_xmanu modif id id1. "&amp;lt;--- Here&lt;/P&gt;&lt;P&gt;selection-screen position 40.&lt;/P&gt;&lt;P&gt;parameters pa_xauto like rm08mrbr-auto&lt;/P&gt;&lt;P&gt;radiobutton group val modif id id1.&lt;/P&gt;&lt;P&gt;selection-screen comment 43(30) text-050&lt;/P&gt;&lt;P&gt;for field pa_xauto modif id id1. "&amp;lt;--- Here&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters: pa_xskto like rm08mrbr-skto as checkbox modif id id1.&lt;/P&gt;&lt;P&gt;selection-screen comment 3(30) text-055&lt;/P&gt;&lt;P&gt;for field pa_xskto modif id id1. "&amp;lt;--- Here&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block processing.&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;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'ID1'.&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;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can hide the block using:&lt;/P&gt;&lt;P&gt;In Initialization event.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = &amp;lt;f1&amp;gt; and screen-name = &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;screen-input = 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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854997#M926700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854998#M926701</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;We can hide the block in the selection screen depends upon the user selection using the LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen : begin of block b1 with frame no intervals.
parameter : p_plant radiobutton group g1 user-command radio default 'X',
                  p_mrp   radiobutton group g1.
selection-screen end of block b1.

selection-screen begin of block b2 with frame no intervals.
parameter : p_werks type marc-werks modif id sp1.
selection-screen end of block b2.

selection-screen begin of block b3 with frame no intervals.
parameter : p_berid type smdma-berid modif id sp2.
selection-screen end of block b3.

at selection-screen output.

  loop at screen.

    check screen-group1 = 'SP1' or
          screen-group1 = 'SP2'.

    if p_plant = 'X'.
      if screen-group1 = 'SP2'.
        screen-input = 0.
        screen-active = 0.
        screen-required = 1.
        modify screen.
      endif.
    else.
      if screen-group1 = 'SP1'.
        screen-input = 0.
        screen-active = 0.
        screen-required = 1.
        modify screen.
      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;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854998#M926701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854999#M926702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets take an example here,if u click a check box 'Check' then it should hide a block with a parameter S_Werks and select options S_Lgort should get hidden.For that u need to write this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_matnr for mard-matnr modif id xyz.

parameters : s_werks like mard-werks modif id abc.

select-options: s_lgort for mard-lgort modif id abc.

parameters check as checkbox user-command check.

at selection-screen output.
if check eq 'X'.
loop at screen.
if screen-group1 = 'ABC'.
screen-input = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace all elements of the block u want to hide with Modif ID ABC in the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward If found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3854999#M926702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically hide a block in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3855000#M926703</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;Loop at screen.&lt;/P&gt;&lt;P&gt;If screen-group3 = 'BLK'.&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;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Reward points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 05:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-hide-a-block-in-selection-screen/m-p/3855000#M926703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T05:26:55Z</dc:date>
    </item>
  </channel>
</rss>

