<?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: Calling a Transaction from ALV Grid Using OO method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819154#M350304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navaneeth,&lt;/P&gt;&lt;P&gt;Check this thread with same requirement.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2742379"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks to Uwe  for sample program&lt;/P&gt;&lt;P&gt;Check this link for another simple program with screen shots&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.4ap.de/abap/alv_listausgabe_oo.php" target="test_blank"&gt;http://www.4ap.de/abap/alv_listausgabe_oo.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Search the forum with HANDLE_HOTSPOT_CLICK&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2007 15:03:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-04T15:03:31Z</dc:date>
    <item>
      <title>Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819149#M350299</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;My requirement is as follows....&lt;/P&gt;&lt;P&gt;I have an ALV grid with columns such as PO no., GR no., Invoice no., etc...&lt;/P&gt;&lt;P&gt;When I double click on any of these cells it should take me to the respective Transaction (say ME23n for PO no.) with the cell content as input in the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Navaneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 13:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819149#M350299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819150#M350300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;1.   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
    I_CALLBACK_PROGRAM                = W_REPID
    I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
    I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'


2. FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
  DATA : L_REP_MODE.                "report mode
  CASE P_UCOMM.

    WHEN '&amp;amp;IC1'.    "Double click
      READ TABLE ITAB INDEX P_SELFLD-TABINDEX.
      set parameter id 'XXX' field  ITAB-field.
      call transaction 'XXXX'
    endcase.
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819150#M350300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819151#M350301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chndrasekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur response...&lt;/P&gt;&lt;P&gt;But I need it using Object Oriented Method.&lt;/P&gt;&lt;P&gt;Ive been using the factory method to display my ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Navaneeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819151#M350301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819152#M350302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi,

  then u can write the code in HANDLE_DOUBLE_CLICK method

 CLASS LCL_EVENT_RECEIVER DEFINITION.
  PUBLIC SECTION.
    METHODS:
*method used for double click
    HANDLE_DOUBLE_CLICK
        FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
            IMPORTING E_ROW E_COLUMN,
*
ENDCLASS.                    "LCL_EVENT_RECEIVER DEFINITION


CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
*implementation of the method double click
*when document no is double clicked in ALV GRID , its value is sent to
*transaction FPE3 and the corresponding values of the document are
*displayed
  METHOD HANDLE_DOUBLE_CLICK.
    CLEAR WA_WRT_OFF_FLDS.
    IF E_COLUMN = 'OPBEL'.
      READ TABLE ITAB INTO WA_IAB INDEX E_ROW-INDEX.
           set parameter....
           call transaction...
      endif.
       ENDMETHOD.                    "handle_double_click
*method to remove unwanted icons from toolbar
endclass.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819152#M350302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819153#M350303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navaneeth , &lt;/P&gt;&lt;P&gt;  You will have to create a class with methods to handle event in the alv and create handlers for them.&lt;/P&gt;&lt;P&gt;Please refer to the program &amp;lt;b&amp;gt;BCALV_GRID_02&amp;lt;/b&amp;gt;. In this the class &amp;lt;b&amp;gt;lcl_event_receiver&amp;lt;/b&amp;gt; is used to handled event , see the method &amp;lt;b&amp;gt;handle_double_click&amp;lt;/b&amp;gt;, it is used to handle double click.&lt;/P&gt;&lt;P&gt;You will have to do some thing similar , but in the method call the transaction , using the command CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do remeber to set handlers , other wise the events will not be triggered. See line no 212 of the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward points if reply is helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819153#M350303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Transaction from ALV Grid Using OO method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819154#M350304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navaneeth,&lt;/P&gt;&lt;P&gt;Check this thread with same requirement.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2742379"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks to Uwe  for sample program&lt;/P&gt;&lt;P&gt;Check this link for another simple program with screen shots&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.4ap.de/abap/alv_listausgabe_oo.php" target="test_blank"&gt;http://www.4ap.de/abap/alv_listausgabe_oo.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Search the forum with HANDLE_HOTSPOT_CLICK&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 15:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-transaction-from-alv-grid-using-oo-method/m-p/1819154#M350304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T15:03:31Z</dc:date>
    </item>
  </channel>
</rss>

