<?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: ALV CLASS-METHODS on_double_click in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652658#M1666794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked in the sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i implented this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method on_double_click.&lt;/P&gt;&lt;P&gt;    perform show_cell_info using row column.&lt;/P&gt;&lt;P&gt;  endmethod.                    "on_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i still cant see how to get cell data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do i then have to loop on my itab and then get the data my self using row and column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or can i directly get the value in the selected cell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 11:56:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-01T11:56:39Z</dc:date>
    <item>
      <title>ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652653#M1666789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented:&lt;/P&gt;&lt;P&gt;    CLASS-METHODS on_double_click                 " DOUBLE_CLICK&lt;/P&gt;&lt;P&gt;       FOR EVENT if_salv_events_actions_table~double_click&lt;/P&gt;&lt;P&gt;         OF cl_salv_events_table&lt;/P&gt;&lt;P&gt;           IMPORTING row&lt;/P&gt;&lt;P&gt;                     column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I get the the selected field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like the equivalent to the non oop:&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I got column and row, but I need the cell where the user doubleclicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 09:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652653#M1666789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T09:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652654#M1666790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for get_selected_cells methode or something like that...&lt;/P&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: w_text TYPE char100.
  CALL METHOD o_ref_grid-&amp;gt;get_selected_cells
    IMPORTING
      et_cell = i_sel_cell.
  READ TABLE i_sel_cell INDEX 1 INTO s_sel_cell.
  CONCATENATE 'Row - Column' ' ' s_sel_cell-row_id '-' s_sel_cell-col_id INTO w_text RESPECTING BLANKS.
  MESSAGE w_text TYPE 'I'.
  CALL METHOD o_ref_grid-&amp;gt;refresh_table_display.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 09:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652654#M1666790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652655#M1666791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is o_ref_grid my alv ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 09:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652655#M1666791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652656#M1666792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please go through below  code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_count TYPE i VALUE 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Getting Selected rows into internal table gt_rowid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gcl_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_index_rows = gt_rowid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ET_ROW_NO     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_rowid LINES lv_count.&lt;/P&gt;&lt;P&gt;  IF lv_count IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE text-001 TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  SORT gt_rowid DESCENDING BY index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_rowid INTO gs_rowid.&lt;/P&gt;&lt;P&gt;    READ TABLE gt_final&lt;/P&gt;&lt;P&gt;           INDEX gs_rowid-index&lt;/P&gt;&lt;P&gt;           INTO gs_final.&lt;/P&gt;&lt;P&gt;    gs_purch-matnr = gs_final-matnr.&lt;/P&gt;&lt;P&gt;    gs_purch-werks = gs_final-werks.&lt;/P&gt;&lt;P&gt;    gs_purch-matkl = gs_final-matkl.&lt;/P&gt;&lt;P&gt;    APPEND gs_purch TO p_gt_purch.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;DEL&gt;If it is help give me reward points&lt;/DEL&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 1, 2012 4:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 10:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652656#M1666792</guid>
      <dc:creator>kirankumar_gutti</dc:creator>
      <dc:date>2012-03-01T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652657#M1666793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kenneth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example provided above is not relevant in your case (since you're using the SALV technique).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like you use the standard i/face of the user-command callback routine( &lt;EM&gt;I_CALLBACK_USER_COMMAND&lt;/EM&gt; ) of the REUSE* FMs, you've to use the i/face of the class event viz., &lt;EM&gt;DOUBLE_CLICK&lt;/EM&gt; which are - &lt;EM&gt;ROW&lt;/EM&gt; &amp;amp; &lt;EM&gt;COLUMN&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Refer to the demo program &lt;EM&gt;SALV_DEMO_TABLE_EVENTS&lt;/EM&gt; to get an idea on how to &lt;EM&gt;handle&lt;/EM&gt; these events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 11:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652657#M1666793</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-03-01T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652658#M1666794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked in the sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i implented this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method on_double_click.&lt;/P&gt;&lt;P&gt;    perform show_cell_info using row column.&lt;/P&gt;&lt;P&gt;  endmethod.                    "on_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i still cant see how to get cell data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do i then have to loop on my itab and then get the data my self using row and column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or can i directly get the value in the selected cell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 11:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652658#M1666794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652659#M1666795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solved it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE &amp;lt;MYTAB&amp;gt; INDEX i_row INTO &amp;lt;MYSTRUCT&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE i_column.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;lt;COLUMN&amp;gt;'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;   WHEN OTHERS.&lt;/P&gt;&lt;P&gt;  ENDCASE.&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>Thu, 01 Mar 2012 12:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652659#M1666795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T12:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652660#M1666796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Demonstration program &lt;STRONG&gt;SALV_DEMO_TABLE_EVENTS&lt;/STRONG&gt; shows how this is handled.   There are a variety of these and they are excellent for seeing how SALV is written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Substitute your logic for the " perform show_cell_info using row column text-i07."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 12:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652660#M1666796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV CLASS-METHODS on_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652661#M1666797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can avoid 'CASE' statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lv_col TYPE string.
FIELD-SYMBOLS : &amp;lt;fs_col&amp;gt; TYPE ANY.

READ TABLE &amp;lt;MYTAB&amp;gt; into &amp;lt;MYSTRUCT&amp;gt; INDEX row
IF sy-subrc eq 0.
      CONCATENATE '&amp;lt;MYSTRUCT&amp;gt;-' column INTO lv_col.
      ASSIGN (lv_col) TO &amp;lt;fs_col&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field symbol &amp;lt;fs_col&amp;gt; will return the value of current cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 12:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-methods-on-double-click/m-p/8652661#M1666797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-01T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

