<?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: double click on OOPS grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046980#M1351778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sender is a "formal parameter" an OBJECT reference like the object you used to create your Grid in CREATE OBJECT (TYPE REF TO class).  It is the object which triggers the event - it is automatically defined as soon as it is defined as parameter. Look at [IMPORTING p1 p2 ... sender|http://help.sap.com/abapdocu_70/en/ABAPMETHODS_EVENT_HANDLER.htm#!ABAP_ADDITION_1@1@] in [METHODS - FOR EVENT |http://help.sap.com/abapdocu_70/en/ABAPMETHODS_EVENT_HANDLER.htm] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code should look like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM handle_double_click USING
  i_row TYPE lvc_s_row
  i_column TYPE lvc_s_col
  is_row_no TYPE lvc_s_roid
  sender.
  CASE sender.
    WHEN o_grid.
      READ TABLE gt_sum_copa INDEX i_row-index.
      IF sy-subrc = 0.
        CALL SCREEN 9100 .
      ENDIF .
    WHEN o_grid2.
      READ TABLE gt_fi INDEX i_row-index.
      IF sy-subrc = 0.
        CALL SCREEN 9100 .
      ENDIF .
    WHEN o_grid_final.
      READ TABLE gt_final_copa INDEX i_row-index.
      IF sy-subrc = 0.
        CALL TRANSACTION 'KE24'.
      ENDIF .
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please, close the thread &lt;SPAN __jive_macro_name="thread" id="1433936"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 14:08:26 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2009-08-04T14:08:26Z</dc:date>
    <item>
      <title>double click on OOPS grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046978#M1351776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I have 3 grids , like the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET HANDLER gr_event_handler-&amp;gt;handle_double_click FOR o_grid.  "GT_SUM_COPA.&lt;/P&gt;&lt;P&gt;SET HANDLER gr_event_handler-&amp;gt;handle_double_click FOR o_grid2.&lt;/P&gt;&lt;P&gt;SET HANDLER gr_event_handler-&amp;gt;handle_double_click FOR o_grid_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION .&lt;/P&gt;&lt;P&gt;*Handle Double Click&lt;/P&gt;&lt;P&gt;METHOD handle_double_click .&lt;/P&gt;&lt;P&gt;PERFORM handle_double_click USING e_row&lt;/P&gt;&lt;P&gt;                                  e_column&lt;/P&gt;&lt;P&gt;                                  es_row_no&lt;/P&gt;&lt;P&gt;                                  sender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how i can use the double click event using sender?&lt;/P&gt;&lt;P&gt;right now it is like the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_double_click USING&lt;/P&gt;&lt;P&gt;       i_row TYPE lvc_s_row&lt;/P&gt;&lt;P&gt;    i_column TYPE lvc_s_col&lt;/P&gt;&lt;P&gt;   is_row_no TYPE lvc_s_roid&lt;/P&gt;&lt;P&gt;      sender TYPE lvc_s_sender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE GT_sum_COPA INDEX I_ROW-INDEX.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL SCREEN 9100 .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;READ TABLE GT_FI INDEX I_ROW-INDEX.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL SCREEN 9100 .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;READ TABLE GT_FINAL_COPA INDEX I_ROW-INDEX.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'KE24'.&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;ENDFORM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 11:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046978#M1351776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T11:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: double click on OOPS grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046979#M1351777</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;but how i can use the double click event using sender?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What do you mean by this? &lt;STRONG&gt;SENDER&lt;/STRONG&gt; is a reference to your ALV instance which triggers that double click event. So this is just for distinguishing which ALV your are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide more information maybe we can help you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 13:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046979#M1351777</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-04T13:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: double click on OOPS grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046980#M1351778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sender is a "formal parameter" an OBJECT reference like the object you used to create your Grid in CREATE OBJECT (TYPE REF TO class).  It is the object which triggers the event - it is automatically defined as soon as it is defined as parameter. Look at [IMPORTING p1 p2 ... sender|http://help.sap.com/abapdocu_70/en/ABAPMETHODS_EVENT_HANDLER.htm#!ABAP_ADDITION_1@1@] in [METHODS - FOR EVENT |http://help.sap.com/abapdocu_70/en/ABAPMETHODS_EVENT_HANDLER.htm] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code should look like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM handle_double_click USING
  i_row TYPE lvc_s_row
  i_column TYPE lvc_s_col
  is_row_no TYPE lvc_s_roid
  sender.
  CASE sender.
    WHEN o_grid.
      READ TABLE gt_sum_copa INDEX i_row-index.
      IF sy-subrc = 0.
        CALL SCREEN 9100 .
      ENDIF .
    WHEN o_grid2.
      READ TABLE gt_fi INDEX i_row-index.
      IF sy-subrc = 0.
        CALL SCREEN 9100 .
      ENDIF .
    WHEN o_grid_final.
      READ TABLE gt_final_copa INDEX i_row-index.
      IF sy-subrc = 0.
        CALL TRANSACTION 'KE24'.
      ENDIF .
  ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please, close the thread &lt;SPAN __jive_macro_name="thread" id="1433936"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 14:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046980#M1351778</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-08-04T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: double click on OOPS grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046981#M1351779</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;Refer the below wiki code by me:-&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Using" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Using&lt;/A&gt;&lt;EM&gt;basic&lt;/EM&gt;events&lt;EM&gt;in&lt;/EM&gt;OOPs+ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This explains how to use the double click event in OO ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this heslp you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 19:48:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-on-oops-grid/m-p/6046981#M1351779</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-08-04T19:48:17Z</dc:date>
    </item>
  </channel>
</rss>

