<?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: How to de-activate a button in webdynpro dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997296#M955006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if sy-ucomm eq 'ENTE'&lt;/P&gt;&lt;P&gt;if &amp;lt;put ur condition wen u want to activate the button &amp;gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'NAME1'.&lt;/P&gt;&lt;P&gt;        screen-active = '1'.&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;else&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'NAME1'.&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;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the condition is changed u hit enter...then the activation or deactivation of the button will ocuur..&lt;/P&gt;&lt;P&gt;(Here NAME1 is the name of the button , that u wanna activate or deactivate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the above ans is useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 03:16:42 GMT</pubDate>
    <dc:creator>former_member195383</dc:creator>
    <dc:date>2008-06-20T03:16:42Z</dc:date>
    <item>
      <title>How to de-activate a button in webdynpro dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997295#M955005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;How to de-activate a button and checkbox in webdynpro dynamically depending upon some condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 22:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997295#M955005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T22:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to de-activate a button in webdynpro dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997296#M955006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if sy-ucomm eq 'ENTE'&lt;/P&gt;&lt;P&gt;if &amp;lt;put ur condition wen u want to activate the button &amp;gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'NAME1'.&lt;/P&gt;&lt;P&gt;        screen-active = '1'.&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;else&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-name EQ 'NAME1'.&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;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the condition is changed u hit enter...then the activation or deactivation of the button will ocuur..&lt;/P&gt;&lt;P&gt;(Here NAME1 is the name of the button , that u wanna activate or deactivate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the above ans is useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 03:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997296#M955006</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-20T03:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to de-activate a button in webdynpro dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997297#M955007</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;to de-activate or disable a button, lets say u want to disable SAVE button once it is clicked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the method where u write code for SAVE button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;  elem_btn_disable-&amp;gt;set_attribute(&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          name =  `DIS_SAVE`&lt;/P&gt;&lt;P&gt;          value = abap_false ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;DIS_SAVE should be of type WDY_BOOLEAN in the context.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;abap_false means deactivating the button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;if you want to HIDE a button, then type should be WDY_VISIBILITY  or WDY_UI_ELEMENT_VISIBLE &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;amp; value = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to do this before screen loads, then do it in the INBOUND plug method of in tht WDDOINIT method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 03:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997297#M955007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T03:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to de-activate a button in webdynpro dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997298#M955008</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;Create an attribute of type WDY_BOOLEAN in context. In Layout bind the enable property of button to that attribute. Based on your condition&lt;/P&gt;&lt;P&gt;set the attribute.Here is the example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wd_context-&amp;gt;set_attribute( exporting name = 'INP_FIELDS' value = 'X').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here INP_FIELDS is the attributein context.&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;Asmitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-de-activate-a-button-in-webdynpro-dynamically/m-p/3997298#M955008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:42:52Z</dc:date>
    </item>
  </channel>
</rss>

