<?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: Event delayed_callback  - ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280225#M152594</link>
    <description>&lt;P&gt;In case you are still looking for a possible solution (after 13 years), &lt;BR /&gt;or more likely, if anyone else might be... (I was)&lt;/P&gt;&lt;P&gt;If you don't need to use the right-click context menu in your ALV grid, you can repurpose the CONTEXT_MENU_REQUEST event...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_event_receiver DEFINITION.
  PUBLIC SECTION.
    METHODS:
      handle_context_menu 
        FOR EVENT context_menu_request OF cl_gui_alv_grid 
          IMPORTING e_object.
ENDCLASS.

CLASS lcl_event_receiver IMPLEMENTATION.
  METHOD handle_context_menu.
*   turn off the context menu options
    CALL METHOD e_object-&amp;gt;clear.
*   handle your particular right-click functionality
    PERFORM handle_context_menu USING e_object.
  ENDMETHOD.
ENDCLASS.
FORM create_grid.
* create and initialize the grid when your program starts
  CREATE OBJECT gw_grid
    EXPORTING
      i_parent      = gw_container
      i_appl_events = 'X'.
  CALL METHOD gw_grid-&amp;gt;set_table_for_first_display
    ...
* set the context menu handler
  SET HANDLER gw_alv_event-&amp;gt;handle_context_menu FOR gw_grid.
ENDFORM. "create_grid
FORM handle_context_menu USING e_object TYPE REF TO cl_ctmenu.
  DATA:
    lt_row_no TYPE lvc_t_roid,
    lw_row    TYPE i,
    lw_value  TYPE c,
    lw_col    TYPE i,
    lw_row_id TYPE lvc_s_row,
    lw_col_id TYPE lvc_s_col,
    lw_row_no TYPE lvc_s_roid.
  FIELD-SYMBOLS:
    &amp;lt;lf_data&amp;gt; LIKE LINE OF gw_data. "pointer to your data table
* get the current cursor row
  CALL METHOD gw_grid_sppr-&amp;gt;get_current_cell
    IMPORTING
      e_row     = lw_row
      e_value   = lw_value
      e_col     = lw_col
      es_row_id = lw_row_id
      es_col_id = lw_col_id
      es_row_no = lw_row_no.
  CHECK lw_row_no-row_id IS NOT INITIAL.
* read your associated data
  READ TABLE gt_data ASSIGNING &amp;lt;lf_data&amp;gt; INDEX lw_row_no-row_id.
  CHECK sy-subrc EQ 0.
* do your stuff...
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
ENDFORM. "handle_context_menu
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope that helps. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 17:31:25 GMT</pubDate>
    <dc:creator>bryan_sippel3</dc:creator>
    <dc:date>2019-04-22T17:31:25Z</dc:date>
    <item>
      <title>Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280218#M152587</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;I have alv grid with several functionalities (double click, user command, etc.)&lt;/P&gt;&lt;P&gt;Now I pretend to use the event delayed_callback of the  cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;#146;ve seen the example BCALV_TEST_GRID_EVENTS, and implement the event in my program, but it doesn&amp;#146;t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event is not raised! Can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;class cl_event_receiver_300 definition.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    data: ucomm type sy-ucomm.&lt;/P&gt;&lt;P&gt;    data: selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  delayed callback&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    methods handle_delayed_callback&lt;/P&gt;&lt;P&gt;      for event delayed_callback of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class cl_event_receiver_300 implementation.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;handle delayed_callback&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  method handle_delayed_callback.&lt;/P&gt;&lt;P&gt;    message i000(zm) with 'Delayed'.&lt;/P&gt;&lt;P&gt;  endmethod.                    "delayed_callback&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module alv_300_display output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if g_custom_container_300 is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create container for ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object g_custom_container_300&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;         container_name = 'CUSTOM_CONTROL_300'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if grid_300 is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create Event Receiver&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object event_receiver_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object grid_300&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;         i_appl_events ' ' "selected                    &lt;/P&gt;&lt;P&gt;         i_parent = g_custom_container_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  opt. col. width&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear gs_layout_alv.&lt;/P&gt;&lt;P&gt;    gs_layout_alv-cwidth_opt = selected.&lt;/P&gt;&lt;P&gt;    gs_layout_alv-grid_title = 'Contactos com o Cliente'.&lt;/P&gt;&lt;P&gt;    gs_layout_alv-zebra = 'X'.&lt;/P&gt;&lt;P&gt;    gs_layout_alv-sel_mode = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;exclusão dos botões standard da barra de ferramentas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_fc_graph          to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_fc_help           to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_mb_sum            to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_fc_average        to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_fc_view_crystal   to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;    append cl_gui_alv_grid=&amp;gt;mc_fc_info           to gt_funcoes_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  handle for D'n'D&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   gs_layout_alv-s_dragdrop-row_ddid = g_handle_alv.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  handler for ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    set handler event_receiver_300-&amp;gt;handle_toolbar_set  for grid_300.&lt;/P&gt;&lt;P&gt;    set handler event_receiver_300-&amp;gt;handle_user_command for grid_300.&lt;/P&gt;&lt;P&gt;    set handler event_receiver_300-&amp;gt;handle_double_click for grid_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set handler event_receiver_300-&amp;gt;handle_delayed_callback&lt;/P&gt;&lt;P&gt;        for grid_300.&lt;/P&gt;&lt;P&gt;    call method grid_300-&amp;gt;register_delayed_event&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_delayed_move_curr_cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;criação do catálogo de campos&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform create_fieldcat_cont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;variante&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    variant_alv-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method grid_300-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;         exporting i_save               = 'A'&lt;/P&gt;&lt;P&gt;                   it_toolbar_excluding = gt_funcoes_300[]&lt;/P&gt;&lt;P&gt;                   i_default            = 'X'&lt;/P&gt;&lt;P&gt;                   i_buffer_active      = ' '&lt;/P&gt;&lt;P&gt;                   i_bypassing_buffer   = ' '&lt;/P&gt;&lt;P&gt;                   i_consistency_check  = ' '&lt;/P&gt;&lt;P&gt;         changing  it_outtab            = it_contactos[]&lt;/P&gt;&lt;P&gt;                   it_fieldcatalog      = gt_fieldcat_cont[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  flush&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method cl_gui_control=&amp;gt;set_focus exporting control = grid_300.&lt;/P&gt;&lt;P&gt;    call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if flg_new_300 = selected.&lt;/P&gt;&lt;P&gt;    clear flg_new_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  call with data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method grid_300-&amp;gt;set_frontend_layout&lt;/P&gt;&lt;P&gt;         exporting is_layout = gs_layout_alv.&lt;/P&gt;&lt;P&gt;    call method grid_300-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  flush&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method cl_gui_control=&amp;gt;set_focus exporting control = grid_300.&lt;/P&gt;&lt;P&gt;    call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " alv_300_display  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2006 17:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280218#M152587</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-22T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280219#M152588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure in your case, why are you handling the DELAYED_CALLBACK EVENT rather than the events for which you have set the handles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler event_receiver_300-&amp;gt;handle_toolbar_set for grid_300.&lt;/P&gt;&lt;P&gt;set handler event_receiver_300-&amp;gt;handle_user_command for grid_300.&lt;/P&gt;&lt;P&gt;set handler event_receiver_300-&amp;gt;handle_double_click for grid_300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should write methods for HANDLE_TOOLBAR, HANDLE_USER_COMMAND and HANDLE_DOUBLE_CLICK. I couldn't find the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 03:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280219#M152588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T03:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280220#M152589</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;I'm already using the handles:&lt;/P&gt;&lt;P&gt;handle_toolbar_set for grid_300&lt;/P&gt;&lt;P&gt;handle_user_command for grid_300&lt;/P&gt;&lt;P&gt;handle_double_click for grid_300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I pretend to use the delayed_callback to show a text on the screen at same time the user clicks a cell other than that currently selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280220#M152589</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-24T10:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280221#M152590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the &amp;lt;a href="http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e065d52611d2b468006094192fe3/frameset.htm"&amp;gt;documentation&amp;lt;/a&amp;gt; the event gets triggerred with &amp;lt;i&amp;gt;a delay&amp;lt;/i&amp;gt;. that could have been the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, shouldn't you actually be using the event &amp;lt;b&amp;gt;delayed_changed_sel_callback&amp;lt;/b&amp;gt; for your purpose ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 10:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280221#M152590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280222#M152591</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 delay..., weel the example program BCALV_TEST_GRID_EVENTS, works fine and the documentation says "short delay of 1,5 seconds". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps is there other way of doing what I need, but I don't know how! Can you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 11:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280222#M152591</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-24T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280223#M152592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what exactly is the reason of using the DELAY CALL BACK. The events you have mentioned can used directly by activating them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try removing the DELAYED CALL BACK event and see if you get the desired output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 11:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280223#M152592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T11:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280224#M152593</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;I get the desired output with a command button, for instance - that's easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I will give up this solution! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sincerely I'd like to make it work!!)&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;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 12:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280224#M152593</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2006-03-24T12:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280225#M152594</link>
      <description>&lt;P&gt;In case you are still looking for a possible solution (after 13 years), &lt;BR /&gt;or more likely, if anyone else might be... (I was)&lt;/P&gt;&lt;P&gt;If you don't need to use the right-click context menu in your ALV grid, you can repurpose the CONTEXT_MENU_REQUEST event...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_event_receiver DEFINITION.
  PUBLIC SECTION.
    METHODS:
      handle_context_menu 
        FOR EVENT context_menu_request OF cl_gui_alv_grid 
          IMPORTING e_object.
ENDCLASS.

CLASS lcl_event_receiver IMPLEMENTATION.
  METHOD handle_context_menu.
*   turn off the context menu options
    CALL METHOD e_object-&amp;gt;clear.
*   handle your particular right-click functionality
    PERFORM handle_context_menu USING e_object.
  ENDMETHOD.
ENDCLASS.
FORM create_grid.
* create and initialize the grid when your program starts
  CREATE OBJECT gw_grid
    EXPORTING
      i_parent      = gw_container
      i_appl_events = 'X'.
  CALL METHOD gw_grid-&amp;gt;set_table_for_first_display
    ...
* set the context menu handler
  SET HANDLER gw_alv_event-&amp;gt;handle_context_menu FOR gw_grid.
ENDFORM. "create_grid
FORM handle_context_menu USING e_object TYPE REF TO cl_ctmenu.
  DATA:
    lt_row_no TYPE lvc_t_roid,
    lw_row    TYPE i,
    lw_value  TYPE c,
    lw_col    TYPE i,
    lw_row_id TYPE lvc_s_row,
    lw_col_id TYPE lvc_s_col,
    lw_row_no TYPE lvc_s_roid.
  FIELD-SYMBOLS:
    &amp;lt;lf_data&amp;gt; LIKE LINE OF gw_data. "pointer to your data table
* get the current cursor row
  CALL METHOD gw_grid_sppr-&amp;gt;get_current_cell
    IMPORTING
      e_row     = lw_row
      e_value   = lw_value
      e_col     = lw_col
      es_row_id = lw_row_id
      es_col_id = lw_col_id
      es_row_no = lw_row_no.
  CHECK lw_row_no-row_id IS NOT INITIAL.
* read your associated data
  READ TABLE gt_data ASSIGNING &amp;lt;lf_data&amp;gt; INDEX lw_row_no-row_id.
  CHECK sy-subrc EQ 0.
* do your stuff...
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
ENDFORM. "handle_context_menu
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope that helps. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 17:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280225#M152594</guid>
      <dc:creator>bryan_sippel3</dc:creator>
      <dc:date>2019-04-22T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event delayed_callback  - ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280226#M152595</link>
      <description>&lt;P&gt;Hi &lt;A href="https://answers.sap.com/users/582399/bryansippel3.html"&gt;Bryan Sippel&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply. The issue has been resolved.&lt;/P&gt;&lt;P&gt;For now I have another task &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 09:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-delayed-callback-alv-grid/m-p/1280226#M152595</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2019-04-24T09:14:32Z</dc:date>
    </item>
  </channel>
</rss>

