<?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 Double Click event in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143005#M1192089</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 created alv list using contanier, which displays sales order no  &amp;amp; its details.&lt;/P&gt;&lt;P&gt;so after clicking on order no. its calls VA02 transaction.&lt;/P&gt;&lt;P&gt;How to get this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 12:55:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T12:55:56Z</dc:date>
    <item>
      <title>Double Click event in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143005#M1192089</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 created alv list using contanier, which displays sales order no  &amp;amp; its details.&lt;/P&gt;&lt;P&gt;so after clicking on order no. its calls VA02 transaction.&lt;/P&gt;&lt;P&gt;How to get this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143005#M1192089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Double Click event in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143006#M1192090</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;Hope it helps.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_alv_event_rec    TYPE REF TO lcl_eventhandler,

class lcl_eventhandler definition.
PUBLIC SECTION.
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
        IMPORTING
          e_row
          e_column
          es_row_no.

endclass.

CLASS lcl_eventhandler IMPLEMENTATION.

  METHOD handle_double_click.

    CALL TRANSACTION VA02.

  ENDMETHOD.                    "handle_double_click

ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION


CREATE OBJECT w_alv_event_rec.

  SET HANDLER w_alv_event_rec-&amp;gt;handle_double_click FOR w_grid_find. ----&amp;gt;THIS IS THE INSTANCE OF THE CLASS CL_GUI_ALV_GRID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part of the code should be written before you display the values on the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT w_alv_event_rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET HANDLER w_alv_event_rec-&amp;gt;handle_double_click FOR w_grid_find. -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;THIS IS THE INSTANCE OF THE CLASS CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 13:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143006#M1192090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T13:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double Click event in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143007#M1192091</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;Add the below snippet in your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Declare a callback subroutine variable 
DATA: : wa_callback_subroutine TYPE slis_formname,

"intialise the subroutine variable to the routine name handling the user command double click
wa_callback_subroutine = 'USER_COMMAND'.

"simpy Add sunbroutine varibale declared above in the ALV display routine in callback_user_command import parameter
i_callback_user_command           = wa_callback_subroutine

"Define the user_command subroutine as below

FORM user_command  USING okcode    LIKE sy-ucomm
                       lselfield TYPE slis_selfield.
  CASE okcode.
    WHEN '&amp;amp;IC1'. " SAP standard code for double-clicking
      CASE lselfield-sel_tab_field."check if double click is only on
        WHEN '&amp;lt;internaltablename-fieldname&amp;gt;'."aufnr not on any other field
          SET PARAMETER ID 'ANR' FIELD lselfield-value.
          CALL TRANSACTION '&amp;lt;tcode&amp;gt;' AND SKIP FIRST SCREEN.
      ENDCASE.
  ENDCASE.

"OR add the code as required by you but sy-ucomm is &amp;amp;IC1 a

ENDFORM.                    "user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 13:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143007#M1192091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Double Click event in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143008#M1192092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;*when user clicks a order num&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      READ TABLE itab INDEX slis_selfield-tabindex INTO wa_itab.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION wa_itab-tcode.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 13:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143008#M1192092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Double Click event in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143009#M1192093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;METHOD handle_double_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD gcl_alv_grid-&amp;gt;get_current_cell&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       e_row     = lv_row       &lt;/P&gt;&lt;P&gt;       e_value   = lv_value     &lt;/P&gt;&lt;P&gt;       es_col_id = ls_col_info. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user double clicked on the order number, lv_value will have the order number. If not, then lv_row should correspond to the row of data in the it_outtab used to display the ALV grid using &lt;STRONG&gt;call method gcl_alv_grid-&amp;gt;set_table_for_first_display&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_outtab index lv_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set your parameter ID's with order #  and Call Transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 17:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-event-in-module-pool/m-p/5143009#M1192093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T17:15:23Z</dc:date>
    </item>
  </channel>
</rss>

