<?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: Screen fields dynamically... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200650#M1203240</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 will have to use AT SELECTION-SCREEN OUTPUT EVENT and in this event you will have to use LOOP AT SCREEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2009 18:52:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-13T18:52:41Z</dc:date>
    <item>
      <title>Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200648#M1203238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I ahve requirement where the fields on selection screen should be displayed dynamically ? For example there are three fields on screen. Now those fields should be dispalyed on screen only if program matches certain logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that buttons in application toolbar can be displayed dynamically but not sure about screen fields ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 18:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200648#M1203238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200649#M1203239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the Sample Code Below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters: chk1 type c as checkbox,&lt;/P&gt;&lt;P&gt;chk2 type c as checkbox modif id 'ID1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN.&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;if chk1 = 'X'.&lt;/P&gt;&lt;P&gt;screen-invisible = ''.&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;screen-invisible = 'X'.&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;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;Please check the Syntax..Hope this will be Helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Find the LInk Below&lt;/P&gt;&lt;P&gt;[Sample Code|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4341611"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 18:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200649#M1203239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200650#M1203240</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 will have to use AT SELECTION-SCREEN OUTPUT EVENT and in this event you will have to use LOOP AT SCREEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 18:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200650#M1203240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T18:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200651#M1203241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;have to do loop at screen in event at selection-screen output...&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-name eq 'PNPS$MSL'.&lt;/P&gt;&lt;P&gt;    screen-active = 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 18:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200651#M1203241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200652#M1203242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Put your logic in the AT selection-screen output.&lt;/P&gt;&lt;P&gt;Use the ACTIVE field of the structure SCREEN to hide (active = space) or display ( active = 1) the fields on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 18:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200652#M1203242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200653#M1203243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This will resolve your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters: p_rad1 radiobutton group radi  user-command ucomm default 'X',
            p_rad2 radiobutton group radi.

selection-screen begin of block b1.
parameters: field1 type c modifid md1.
parameters: field1 type c modifid md2.
selection-screen end of block b1.


AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF p_rad1 = 'X' .
IF screen-group1 = 'MD2'.
screen-active = 0.
ENDIF.
ElseIF p_rad2 = 'X'.
IF screen-group1 = 'MD1'.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 19:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200653#M1203243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Screen fields dynamically...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200654#M1203244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;make visible the screen field which will come default and other field should be invisible&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN. IF you want to change the screen display, modify the internal table SCREEN of that screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection screen.&lt;/P&gt;&lt;P&gt;if &amp;lt;some condition&amp;gt;&lt;/P&gt;&lt;P&gt; loop at screen.&lt;/P&gt;&lt;P&gt;  if &amp;lt;screen field&amp;gt; = field name.&lt;/P&gt;&lt;P&gt;     invisible = 'x'.&lt;/P&gt;&lt;P&gt;  endif,&lt;/P&gt;&lt;P&gt; modofy screen.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen internal table contains all information regarding screen.&lt;/P&gt;&lt;P&gt;please check and let me know if have found any problrm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 20:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-fields-dynamically/m-p/5200654#M1203244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T20:33:01Z</dc:date>
    </item>
  </channel>
</rss>

