<?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: Handle Check Boxes on ALV using OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154911#M1621653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason if i try placing the button in ALV toolbar the its working. But this is not a perfect answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Aug 2011 18:27:57 GMT</pubDate>
    <dc:creator>ricky_shaw</dc:creator>
    <dc:date>2011-08-21T18:27:57Z</dc:date>
    <item>
      <title>Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154902#M1621644</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 have developed an ALV grid report using OOPS.&lt;/P&gt;&lt;P&gt;I have placed some check boxes in my output display. After the report is displayed for 1st time, the user will check some check boxes and continue further proceesing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one tell me how do i trap the value of which check boxes have been checked(or unchecked). Which event do i need&lt;/P&gt;&lt;P&gt;to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 20:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154902#M1621644</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-17T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154903#M1621645</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;The event is the same event to get all fields having the value changed: DATA_CHANGED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 20:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154903#M1621645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T20:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154904#M1621646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;I am using that event. For some reason my event is not getting triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am clicking oin the check box but the value is not getting updated in the internal table for the check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me where i may be wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt; it_final  : is the internal table displayed on ALV with 1st field for check box values. Its showing empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS LCL_EVENT_HANDLER DEFINITION .
PUBLIC SECTION .
    METHODS:
   refresh_changed_data for event data_changed of cl_gui_alv_grid importing er_data_changed
                                                                           e_ucomm sender,
ENDCLASS.             

CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
METHOD refresh_changed_data.
 data : ls_modified type lvc_s_modi,
            ls_stable type lvc_s_stbl,
           lv_field(10) type c.

    clear:      ls_stable-row, ls_stable-col.
    loop at er_data_changed-&amp;gt;mt_mod_cells into ls_modified.
      clear wa_final.
      read table it_final into wa_final index ls_modified-row_id.
      if sy-subrc eq 0.
        wa_final-process = ls_modified-value.
        modify it_final from wa_final index ls_modified-row_id.
      endif.
      ls_stable-row = 'X'.
      ls_stable-col = 'X'.

      grid-&amp;gt;refresh_table_display( exporting is_stable = ls_stable  ).

    endloop.
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Added code tags&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Please use "code" tags when pasting a code snippet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Aug 18, 2011 9:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 21:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154904#M1621646</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-17T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154905#M1621647</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;Have you set the event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 21:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154905#M1621647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T21:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154906#M1621648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Max,&lt;/P&gt;&lt;P&gt;I am using it before at the time user clicks on the button my user command as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;set handler g_handler-&amp;gt;refresh_changed_data for grid.

      ls_stable-row = 'X'.
      ls_stable-col = 'X'.
      grid-&amp;gt;refresh_table_display( exporting is_stable = ls_stable  ).
      call method grid-&amp;gt;check_changed_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i triigering it in the right place . Pls correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Added Code tags&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Aug 18, 2011 9:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 22:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154906#M1621648</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-17T22:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154907#M1621649</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;The event should be triggered only if you do something, press a button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 23:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154907#M1621649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-17T23:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154908#M1621650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max, I forgot to mention that the button is NOT part of the ALVE grid tool bar. &lt;/P&gt;&lt;P&gt;Its placed on the screen outside of ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that why ist not triggering my event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 00:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154908#M1621650</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-18T00:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154909#M1621651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to call the methd CHECK_CHANGED_DATA in tha user_command of you pai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 06:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154909#M1621651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T06:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154910#M1621652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max, &lt;/P&gt;&lt;P&gt;The events data_changed..etc are working only if i place my button inside ALV  tool bar.&lt;/P&gt;&lt;P&gt;Any clues??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154910#M1621652</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-19T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Check Boxes on ALV using OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154911#M1621653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason if i try placing the button in ALV toolbar the its working. But this is not a perfect answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Aug 2011 18:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-check-boxes-on-alv-using-oops/m-p/8154911#M1621653</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2011-08-21T18:27:57Z</dc:date>
    </item>
  </channel>
</rss>

