<?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: Delayed_changed_sel_callback event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291958#M1220687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inherited method SET_DELAY_CHANGE_SELECTION of CL_GUI_ALV_GRID sets the delay time. However, this method is &lt;EM&gt;protected&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look up the class hierarchy you find a &lt;EM&gt;public&lt;/EM&gt; method IF_CACHED_PROP~SET_PROP of class CL_GUI_OBJECT which is available in CL_GUI_ALV_GRID, too.&lt;/P&gt;&lt;P&gt;Thus, I would first call method IF_CACHED_PROP&lt;SUB&gt;GET_PROP to retrieve the current setting of the delay time and then change its value using method *IF_CACHED_PROP&lt;/SUB&gt;SET_PROP*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property name is: 'DelayTimeChangedSelectionEvent'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD SET_DELAY_CHANGE_SELECTION .
  CALL METHOD SET_PROPERTY
   EXPORTING
     PROPERTY = 'DelayTimeChangedSelectionEvent'
     VALUE = TIME
       EXCEPTIONS
         OTHERS = 1.
    IF SY-SUBRC NE 0.
      RAISE ERROR.
    ENDIF.

ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&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>Wed, 18 Mar 2009 04:21:41 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-03-18T04:21:41Z</dc:date>
    <item>
      <title>Delayed_changed_sel_callback event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291957#M1220686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;How can I do to reduce the delay time?&lt;/P&gt;&lt;P&gt;Now is next to two seconds ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 21:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291957#M1220686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T21:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delayed_changed_sel_callback event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291958#M1220687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inherited method SET_DELAY_CHANGE_SELECTION of CL_GUI_ALV_GRID sets the delay time. However, this method is &lt;EM&gt;protected&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look up the class hierarchy you find a &lt;EM&gt;public&lt;/EM&gt; method IF_CACHED_PROP~SET_PROP of class CL_GUI_OBJECT which is available in CL_GUI_ALV_GRID, too.&lt;/P&gt;&lt;P&gt;Thus, I would first call method IF_CACHED_PROP&lt;SUB&gt;GET_PROP to retrieve the current setting of the delay time and then change its value using method *IF_CACHED_PROP&lt;/SUB&gt;SET_PROP*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Property name is: 'DelayTimeChangedSelectionEvent'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD SET_DELAY_CHANGE_SELECTION .
  CALL METHOD SET_PROPERTY
   EXPORTING
     PROPERTY = 'DelayTimeChangedSelectionEvent'
     VALUE = TIME
       EXCEPTIONS
         OTHERS = 1.
    IF SY-SUBRC NE 0.
      RAISE ERROR.
    ENDIF.

ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&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>Wed, 18 Mar 2009 04:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291958#M1220687</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-18T04:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delayed_changed_sel_callback event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291959#M1220688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I test the method but I couldn't because is protected too.&lt;/P&gt;&lt;P&gt;Thanks  any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291959#M1220688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T18:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delayed_changed_sel_callback event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291960#M1220689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps my previous answer was misleading you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" First call GET method to see the current value
CALL METHOD go_grid-&amp;gt;IF_CACHED_PROP~GET_PROP
  ...

" Then call SET method to change the value
CALL METHOD go_grid-&amp;gt;IF_CACHED_PROP~SET_PROP
  ...
&lt;/CODE&gt;&lt;/PRE&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, 24 Mar 2009 19:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291960#M1220689</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-24T19:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delayed_changed_sel_callback event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291961#M1220690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other way should be just inheriting it into a local class and use its protected method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reduce the time to 10 millisecond and it is working!! test code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
CLASS lcl_alv_wrapper DEFINITION INHERITING FROM cl_gui_alv_grid.
  PUBLIC SECTION.
    METHODS : constructor,
              set_delay_time,
              click FOR EVENT delayed_changed_sel_callback OF cl_gui_alv_grid.
ENDCLASS.                    "lcl_alv_wrapper DEFINITION

*----------------------------------------------------------------------*
CLASS lcl_alv_wrapper IMPLEMENTATION.
  METHOD constructor.
    super-&amp;gt;constructor( i_parent = cl_gui_container=&amp;gt;default_screen ).
    SET HANDLER me-&amp;gt;click FOR ALL INSTANCES.
  ENDMETHOD.                    "constructor
  METHOD set_delay_time.
    me-&amp;gt;set_delay_change_selection( 10 ).
  ENDMETHOD.                    "set_delay_time
  METHOD click.
    MESSAGE 'Hi' TYPE 'I'.
  ENDMETHOD.                    "click
ENDCLASS.                    "lcl_alv_wrapper IMPLEMENTATION

DATA : grid    TYPE REF TO lcl_alv_wrapper,
       table   TYPE STANDARD TABLE OF makt.


PARAMETER dummy.

AT SELECTION-SCREEN OUTPUT.

  CREATE OBJECT grid.

  SELECT * FROM makt INTO CORRESPONDING FIELDS OF TABLE table UP TO 27 ROWS.

  grid-&amp;gt;set_table_for_first_display( EXPORTING i_structure_name = 'MAKT'
                                      CHANGING it_outtab       = table ).
  grid-&amp;gt;register_delayed_event( i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_delayed_change_select ).
  grid-&amp;gt;set_delay_time( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 15:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delayed-changed-sel-callback-event/m-p/5291961#M1220690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T15:35:57Z</dc:date>
    </item>
  </channel>
</rss>

