<?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: enable disable UI elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889529#M1326189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. It is working now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want to know, why the event &lt;EM&gt;at selection-screen&lt;/EM&gt; didnt work and &lt;STRONG&gt;at selection-screen output&lt;/STRONG&gt; worked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it like the second event also makes call back to the report UI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for solving the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 14:23:09 GMT</pubDate>
    <dc:creator>arpitgoyal</dc:creator>
    <dc:date>2009-07-08T14:23:09Z</dc:date>
    <item>
      <title>enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889525#M1326185</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;I searched the forum for my problem of enabling and disabling UI elements and got this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7640535"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am not sure why in my code it is not working:&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.
select-options: swcv for p_string.
select-options: namespce for p_string.
parameters: selectal as checkbox default space user-command all.
selection-screen end of block b1.
...
at selection-screen.
  perform validate_form.
...
form validate_form.
  if sy-ucomm eq 'ALL'.
    if selectal eq 'X'.
      loop at screen.
        if screen-name CP 'SWCV*'.
          screen-active = '0'.
        elseif screen-name CP 'NAMESPCE*'.
          screen-active = '0'.
        endif.
        modify screen.
      endloop.
    elseif selectal eq space.
      loop at screen.
        if screen-name CP 'SWCV*'.
          screen-active = '1'.
        elseif screen-name CP 'NAMESPCE*'.
          screen-active = '1'.
        endif.
        modify screen.
      endloop.
    endif.
  endif.
endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried screen-active and also screen-invisible inplace of it. Passed '0' for disabling and '1' to enabling but somehow it doens't work. In debug mode I have seen that the values are changed from 0 to 1 and 1 to 0 and modify screen is also called, but somehow the UI doesn't reflect the changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to disable two select-option field SWCV and NAMESPCE when user checks the SELECTAL checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889525#M1326185</guid>
      <dc:creator>arpitgoyal</dc:creator>
      <dc:date>2009-07-08T14:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889526#M1326186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying using the the AT SELECTION-SCREEN OUTPUT event instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889526#M1326186</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-07-08T14:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889527#M1326187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&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.
SELECT-OPTIONS: swcv FOR p_string MODIF ID a1.
SELECT-OPTIONS: namespce FOR p_string MODIF ID a1 .
PARAMETERS: selectal AS CHECKBOX DEFAULT space USER-COMMAND all.
SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'A1' .
      IF selectal = 'X' .
        screen-input = 0 .
      ELSE.
        screen-input = 1 .
      ENDIF.
      MODIFY SCREEN .
    ENDIF.
  ENDLOOP .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889527#M1326187</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-07-08T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889528#M1326188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for me.  Don't need to check sy-ucomm.&lt;/P&gt;&lt;P&gt;&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.
select-options: swcv for p_string.
select-options: namespce for p_string.
parameters: selectal as checkbox default space user-command all.
selection-screen end of block b1.


at selection-screen output.
  perform validate_form.

form validate_form.

    if selectal eq 'X'.
      loop at screen.
        if screen-name CP 'SWCV*'
          or screen-name CP 'NAMESPCE*'.
          screen-input = '0'.
        endif.
        modify screen.
      endloop.
    elseif selectal eq space.
      loop at screen.
        if screen-name CP 'SWCV*'
          or screen-name CP 'NAMESPCE*'.
          screen-input = '1'.
        endif.
        modify screen.
      endloop.
    endif.

endform.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889528#M1326188</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-07-08T14:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889529#M1326189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all. It is working now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just want to know, why the event &lt;EM&gt;at selection-screen&lt;/EM&gt; didnt work and &lt;STRONG&gt;at selection-screen output&lt;/STRONG&gt; worked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it like the second event also makes call back to the report UI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for solving the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arpit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889529#M1326189</guid>
      <dc:creator>arpitgoyal</dc:creator>
      <dc:date>2009-07-08T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: enable disable UI elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889530#M1326190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT is the PBO, process before output.  We always set screen attributes in the PBO.  The AT SELECTION-SCREEN is the PAI, process after input.  This is triggered after the user clicks something, and the control is then passed back around to the PBO, where again we set the screen attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-disable-ui-elements/m-p/5889530#M1326190</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-07-08T14:37:10Z</dc:date>
    </item>
  </channel>
</rss>

