<?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 enable pushbutton dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906726#M1597372</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;&lt;/P&gt;&lt;P&gt;Capture the lead selection of table control .,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in PAI set the flag.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO., &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 flag = 'X'.&lt;/P&gt;&lt;P&gt;if screen-group = 'SC1'  " screen group which u assigned to Push button&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 08:57:29 GMT</pubDate>
    <dc:creator>Kiran_Valluru</dc:creator>
    <dc:date>2011-05-24T08:57:29Z</dc:date>
    <item>
      <title>how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906725#M1597371</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;&lt;/P&gt;&lt;P&gt;             i have developed a module pool program with 2 sub-screens, where one of the sub-screens is having table control&lt;/P&gt;&lt;P&gt;            and a few push buttons. Well, my requirement is, once i populate the table control with some records and choose&lt;/P&gt;&lt;P&gt;            or perform line selection against any record  on table control, push button 'EDIT'  must be in enabled mode so that i can&lt;/P&gt;&lt;P&gt;            edit the data and save it to Ztable back.  Initially, the push button 'EDIT'  is in disable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out........&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;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 07:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906725#M1597371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T07:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906726#M1597372</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;&lt;/P&gt;&lt;P&gt;Capture the lead selection of table control .,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in PAI set the flag.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO., &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 flag = 'X'.&lt;/P&gt;&lt;P&gt;if screen-group = 'SC1'  " screen group which u assigned to Push button&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 08:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906726#M1597372</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-05-24T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906727#M1597373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello  K K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               as you gave me the logic , i followed that and even its working too. But the problem is after performing line selection&lt;/P&gt;&lt;P&gt;              on table control, the push button is not getting enabled automatically but getting enabled when i press enter key or&lt;/P&gt;&lt;P&gt;             provide any input after line selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, can we use  line selection button as push button ...?&lt;/P&gt;&lt;P&gt;Or do we have some other way to do so ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i user don't want to press any key or button. push button  must be enabled soon after choosing one or more record&lt;/P&gt;&lt;P&gt; using line selection on table control..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with best regards.&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 12:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906727#M1597373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T12:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906728#M1597374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i user don't want to press any key or button. push button must be enabled soon after choosing one or more record&lt;/P&gt;&lt;P&gt;using line selection on table control..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you must trigger a roundtrip to refresh the screen display.  Selecting a table control line does not do that.  The program itself doesn't even know which line is selected until a roundtrip is triggered.  Why don't you double-click to edit or keep the button enabled and message the user if it's clicked without selecting a row?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 13:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906728#M1597374</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-24T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906729#M1597375</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 Web Dynpro ABAP it is possible., we have Events like OnLeadSelect for Table in WDA., but Unfortunately there are no such events in table control in module pool. You have to press any button or Enter Key to trigger the event or to refresh.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 15:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906729#M1597375</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-05-24T15:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906730#M1597376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Praveen, &lt;/P&gt;&lt;P&gt;                 As mentioned by Kiran, that is the only trigger. on lead selection event automatic recogonization is not handled in ABAP Module Pool programming. User has to press the enter button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 16:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906730#M1597376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable pushbutton dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906731#M1597377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its definitely possible to hide/unhide pushbutton from application toolbar, based on line selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just adapt the logic from below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Data:gt_ucomm         TYPE TABLE OF sy-ucomm,

REFRESH gt_ucomm.
  READ TABLE gt_data INTO gs_data WITH KEY chk = 'X'.
  IF sy-subrc NE 0.
    APPEND 'T&amp;amp;C' TO gt_ucomm.
  ENDIF.

  SET PF-STATUS 'STATUS_9003' EXCLUDING gt_ucomm.
  SET TITLEBAR 'TITLE' WITH text-004.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here T&amp;amp;C is the function code assigned to the pushbutton.&lt;/P&gt;&lt;P&gt;Write this logic in the module status*, in PBO module.&lt;/P&gt;&lt;P&gt;Hope you will be able to resolve your issue by above method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do appreciate if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vinit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 11:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-enable-pushbutton-dynamically/m-p/7906731#M1597377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-27T11:15:17Z</dc:date>
    </item>
  </channel>
</rss>

