<?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 ALV Using Method &amp; Classes  -- Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869296#M1138430</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;1. I need the event for selecting a row in ALV Grid, which I am calling through method,  means is there any way that when I select a row , I can do any processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Can Check box be displayed in ALV grid using method, if yes how and how to use that check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2008 09:31:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-25T09:31:56Z</dc:date>
    <item>
      <title>ALV Using Method &amp; Classes  -- Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869296#M1138430</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;1. I need the event for selecting a row in ALV Grid, which I am calling through method,  means is there any way that when I select a row , I can do any processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Can Check box be displayed in ALV grid using method, if yes how and how to use that check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bobby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 09:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869296#M1138430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T09:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Using Method &amp; Classes  -- Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869297#M1138431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bobby&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding (1) have a look at thread &lt;SPAN __jive_macro_name="thread" id="1133996"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Regarding (2) have a look at thread &lt;SPAN __jive_macro_name="thread" id="1136016"&gt;&lt;/SPAN&gt;.&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 11:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869297#M1138431</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-11-25T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Using Method &amp; Classes  -- Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869298#M1138432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You can use the following things for solution of your problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)   for your first problem, (see standard report called by transaction WE02 - IDoc Monitor). As a template for event handling you can take my sample report ZUS_SDN_TWO_ALV_GRIDS&lt;/P&gt;&lt;P&gt;in thread alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the DOUBLE-CLICK event you may define a column as hotspot (raises event HOTSPOT_CLICK) or you can register event DELAYED_CHANGED_SEL_CALLBACK by calling method go_grid-&amp;gt;REGISTER_DELAYED_EVENT.&lt;/P&gt;&lt;P&gt;If you are using the delayed event then you must disable multiple selection of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  For your second problem,if you want Check box to be  displayed in ALV grid using method, then you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to declare a field in your internal table which you can use as check box and manipulations later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_alv.&lt;/P&gt;&lt;P&gt;        include structure zrfid.&lt;/P&gt;&lt;P&gt;types:  chb type char1,&lt;/P&gt;&lt;P&gt;       end of t_alv.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;data: i_alv type standard table of t_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After field catalog population via FM, you can add check box field to the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;  i_structure_name = 'ZRFID'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;  ct_fieldcat      = lt_fct1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR ls_fcat.&lt;/P&gt;&lt;P&gt;ls_fcat-fieldname = 'CHB'.&lt;/P&gt;&lt;P&gt;ls_fcat-CHECKBOX = 'X'.&lt;/P&gt;&lt;P&gt;ls_fcat-EDIT = 'X'.&lt;/P&gt;&lt;P&gt;ls_fcat-outputlen = 2.&lt;/P&gt;&lt;P&gt;APPEND ls_fcat TO lt_fct1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now display data w.r.t your field catalog:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_structure_name              = 'ZRFID'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  is_layout                     = gs_layout&lt;/P&gt;&lt;P&gt;  it_toolbar_excluding          = lt_exclude&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;  it_outtab                     = lt_alv&lt;/P&gt;&lt;P&gt;  it_fieldcatalog               = lt_fct1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;  invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;  program_error                 = 2&lt;/P&gt;&lt;P&gt;  too_many_lines                = 3&lt;/P&gt;&lt;P&gt;  OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So later on when the function SELECT_ALL is selected you can set the value for CHB as 'X' and refresh display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you and solve your query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 12:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-using-method-classes-problem/m-p/4869298#M1138432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T12:00:27Z</dc:date>
    </item>
  </channel>
</rss>

