<?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: Handle Event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132193#M111992</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;you can handle that event in user_command event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at line-selection is equal to double click.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in user_command event form.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**-ALV list Display
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM       = SY-REPID
  &amp;lt;b&amp;gt;    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'
      I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&amp;lt;/b&amp;gt;
      IS_LAYOUT                = X_LAYOUT
      IT_FIELDCAT              = IT_FIELDCAT
      IT_EVENTS                = IT_EVENTS
    TABLES
      T_OUTTAB                 = IT_FINAL
    EXCEPTIONS
      PROGRAM_ERROR            = 1
      OTHERS                   = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM PF_STATUS_SET USING    P_EXTAB TYPE SLIS_T_EXTAB.
  SET PF-STATUS 'STANDARD' EXCLUDING P_EXTAB.
ENDFORM.                    "PF_STATUS_SET&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND1 USING UCOMM LIKE SY-UCOMM SELFIELD TYPE
                                                         SLIS_SELFIELD.
case UCOMM.
when '&amp;amp;IC1'.
"do what ever you want..


endcase.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above things are must..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2006 16:05:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-01T16:05:01Z</dc:date>
    <item>
      <title>Handle Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132189#M111988</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 would know if exist a way like at line-selection to know wich event has been triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to build a class only to handle event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm using ALVGRID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 15:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132189#M111988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T15:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132190#M111989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually when working with ALV Grid, we use event handlers  to handle the events of the ALV Grid.  I don't believe that there is any built in mechisum that would tell you at any given point which event is fired without being inside of the event handler(did that make sense? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;).   Any  you can handle the events using a local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 15:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132190#M111989</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-01T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132191#M111990</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;If you are using OO:&lt;/P&gt;&lt;P&gt;Please review SAP Test program : BCALV_EDIT_05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for doubleclick Event and event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ALV Grid :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The folloing events avialable:&lt;/P&gt;&lt;P&gt;Please check : SLIS_T_EVENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define these events while calling the function module "REUSE_ALV_GRID_DISPLAY" by filling the table IT_EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lanka Murthy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 15:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132191#M111990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132192#M111991</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;Like AT-line selection you can use&lt;/P&gt;&lt;P&gt; DBLCLICK_ROW_COL events of the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 16:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132192#M111991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Handle Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132193#M111992</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;you can handle that event in user_command event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at line-selection is equal to double click.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in user_command event form.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**-ALV list Display
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM       = SY-REPID
  &amp;lt;b&amp;gt;    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'
      I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&amp;lt;/b&amp;gt;
      IS_LAYOUT                = X_LAYOUT
      IT_FIELDCAT              = IT_FIELDCAT
      IT_EVENTS                = IT_EVENTS
    TABLES
      T_OUTTAB                 = IT_FINAL
    EXCEPTIONS
      PROGRAM_ERROR            = 1
      OTHERS                   = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM PF_STATUS_SET USING    P_EXTAB TYPE SLIS_T_EXTAB.
  SET PF-STATUS 'STANDARD' EXCLUDING P_EXTAB.
ENDFORM.                    "PF_STATUS_SET&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND1 USING UCOMM LIKE SY-UCOMM SELFIELD TYPE
                                                         SLIS_SELFIELD.
case UCOMM.
when '&amp;amp;IC1'.
"do what ever you want..


endcase.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above things are must..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 16:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-event/m-p/1132193#M111992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-01T16:05:01Z</dc:date>
    </item>
  </channel>
</rss>

