<?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: Problem with oops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051004#M1352368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Handle_double_click event has only three parameters.i.e. row, column and row number.&lt;/P&gt;&lt;P&gt;Sendor is not a parameter of this event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 12:41:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-04T12:41:39Z</dc:date>
    <item>
      <title>Problem with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051003#M1352367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI GURU'S,&lt;/P&gt;&lt;P&gt;                 WHAT IS THE TYPE ASSOCIATED WITH SENDER. PLEASE CHECK THE FOLLOWING CODE FOR REFERRENCE.&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;                                  &lt;STRONG&gt;sender.&lt;/STRONG&gt;&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;AND PLEASE LET ME  KNOW WILL THIS CODE WORK?&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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR I HAVE TO ASSIGN SOME TYPE TO THE SENDER IF YES, HOW TO FIND THAT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS &amp;amp; REGARDS,&lt;/P&gt;&lt;P&gt;TAPODIPTA KHAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 12:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051003#M1352367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T12:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051004#M1352368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Handle_double_click event has only three parameters.i.e. row, column and row number.&lt;/P&gt;&lt;P&gt;Sendor is not a parameter of this event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 12:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051004#M1352368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051005#M1352369</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&lt;/P&gt;&lt;P&gt;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;PRE&gt;&lt;CODE&gt;&lt;P&gt;If the formal parameter sender is defined for an event handler, this is automatically supplied with the reference to the triggering object when instance events are triggered. It cannot be explicity specified after EXPORTING.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Example : suppose there are two alv grids at screen, created via CREATE OBJECT grid1 PARENT... and CREATE OBJECT grid2...  each work on its own internal table, In a common method for Handle_double_click you may have a code like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CLASS lcl_application DEFINITION.
    PUBLIC SECTION.
      METHODS:
        handle_node_double_click
          FOR EVENT node_double_click
            OF cl_gui_alv_grid
            IMPORTING e_column es_row_no sender,..

  CREATE OBJECT grid1 ...
  CALL METHOD grid1-&amp;gt;set_table_for_first_display ...

  CREATE OBJECT grid2 ...
  CALL METHOD grid2-&amp;gt;set_table_for_first_display ...

  CLASS lcl_application IMPLEMENTATION.
    METHOD handle_node_double_click.
      CASE SENDER.
      WHEN grid1.
"     read itab1
      WHEN grid2.
"     read itab2
    ENDCASE.
"   common part of code&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 12:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051005#M1352369</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-08-04T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with oops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051006#M1352370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      FORM  USER_COMMAND&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MOVING SCREEN TO TRANSACTION MM03 ON DOUBLE CLICK.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     P_UCOMM      TEXT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PS_SELFIELD  TEXT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING p_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;        ps_selfield TYPE slis_selfield .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_ucomm EQ '&amp;amp;IC1'.                                "DOUBLECLICK       here u can give the value u have assigned &lt;/P&gt;&lt;P&gt;    CASE ps_selfield-fieldname.&lt;/P&gt;&lt;P&gt;      WHEN 'MATNR'.                                       here u can give ur field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF NOT ps_selfield-value IS INITIAL.     &lt;/P&gt;&lt;P&gt;          SET PARAMETER ID 'MAT' FIELD  ps_selfield-value.&lt;/P&gt;&lt;P&gt;          CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 12:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-oops/m-p/6051006#M1352370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T12:52:02Z</dc:date>
    </item>
  </channel>
</rss>

