<?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: Module pool : Hide fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342668#M1034308</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;In PAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the subty value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If subty = 'aaaa' .
flag = 'X' .
elseif subty = 'bbbb' .
flag = ' ' .
endif .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign ur table control as Group G1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If flag = 'X' .
Loop at screen
      IF screen-group1 = 'G1'.
        screen-input = 0.
        screen-invisible = 1.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
 Endloop.

elseif flag = ' ' .
Loop at screen
      IF screen-group1 = 'G1'.
        screen-input = 1.
        screen-invisible = 0.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
 Endloop.
endif .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 11:32:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T11:32:41Z</dc:date>
    <item>
      <title>Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342665#M1034305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. I want to hide/display group of fields in module pool. MY requirement is,&lt;/P&gt;&lt;P&gt;    based on the subty value i have to display/hide some fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have a screen in module pool. which has table control and some fields.&lt;/P&gt;&lt;P&gt;   If subty = 'aaaa' i want to display table control and hide fields&lt;/P&gt;&lt;P&gt;   if subty = 'bbbb' i want to display fields and hide table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kanal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Aug 14, 2008 11:04 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 10:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342665#M1034305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342666#M1034306</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;First assign a group name to the all the fields to be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the logic in PAI event&lt;/P&gt;&lt;P&gt;if subty = &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'GRP1'.&lt;/P&gt;&lt;P&gt;  screen-input = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'GRP1'.&lt;/P&gt;&lt;P&gt;  screen-input = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&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;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 10:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342666#M1034306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342667#M1034307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;for this u need to first set some attributes of the screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the screen painter, for the table control field u need to set the "group1" attribute as TBC (say) and for all the other fields in the screen as FLD (say).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the PAI of the screen u can write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
if screen-group1 = 'TBC' and subty = 'aaaa'.
screen-active = 1.
elseif screen-group1 = 'TBC' and subty = 'bbbb'.
screen-active = 0.
if screen-group1 = 'FLD' and subty = 'aaaa'.
screen-active = 0.
elseif screen-group1 = 'FLD' and subty = 'bbbb'.
screen-active = 1.
endif.
modify screen.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 11:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342667#M1034307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T11:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342668#M1034308</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;In PAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the subty value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If subty = 'aaaa' .
flag = 'X' .
elseif subty = 'bbbb' .
flag = ' ' .
endif .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign ur table control as Group G1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If flag = 'X' .
Loop at screen
      IF screen-group1 = 'G1'.
        screen-input = 0.
        screen-invisible = 1.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
 Endloop.

elseif flag = ' ' .
Loop at screen
      IF screen-group1 = 'G1'.
        screen-input = 1.
        screen-invisible = 0.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
 Endloop.
endif .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 11:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342668#M1034308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342669#M1034309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can hide the fileds on the selection screen &lt;/P&gt;&lt;P&gt;by assigning them a group and in the code&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN .&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'HID'.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = 1.&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;If you want to hide the table control, you need to declare that table control inside a subscreen.&lt;/P&gt;&lt;P&gt;And Call the subscreen only if your particular condition satisfy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 11:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342669#M1034309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T11:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342670#M1034310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;to hide fields  use&lt;/STRONG&gt;&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'GRP1'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'GRP1'.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify screen.&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;&lt;U&gt;&lt;STRONG&gt;to hide table control use&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table control name&amp;gt;-INVISIBLE = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 08:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342670#M1034310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool : Hide fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342671#M1034311</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;In PBO, you need to add the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK subty IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.

CASE screen-name.

WHEN 'FIELD1'.

IF subty = 'aaaa'.

SCREEN-INVISIBLE = 'X'.

ELSE.

SCREEN-INVISIBLE = ' '.

ENDIF.

WHEN 'FIELD2'.

IF subty = 'aaaa'.

SCREEN-INVISIBLE = 'X'.

ELSE.

SCREEN-INVISIBLE = ' '.

ENDIF.

WHEN 'TAB_CTRL'.

IF subty = 'aaaa'.

SCREEN-INVISIBLE = ' '.

ELSE.

SCREEN-INVISIBLE = 'X'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the similar code keeping the same logic......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem will be solved...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 09:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-hide-fields/m-p/4342671#M1034311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T09:04:00Z</dc:date>
    </item>
  </channel>
</rss>

