<?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 Button on my Interactive ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170180#M754374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report ALV using OO on a Module Pool. by the moment, I have only a screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set a button to see the detail of a row of the report, but I don´t know how to handle the event generated when I push the button, and manage tje content of the row selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody could guide me on this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;Manuel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 17:14:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-11T17:14:40Z</dc:date>
    <item>
      <title>Button on my Interactive ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170180#M754374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report ALV using OO on a Module Pool. by the moment, I have only a screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set a button to see the detail of a row of the report, but I don´t know how to handle the event generated when I push the button, and manage tje content of the row selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody could guide me on this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;Manuel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 17:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170180#M754374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T17:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Button on my Interactive ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170181#M754375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION DEFERRED. "for screen 100&lt;/P&gt;&lt;P&gt;DATA: event_receiver TYPE REF TO lcl_event_receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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;      CLASS lcl_event_receiver DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;        handle_hotspot_click&lt;/P&gt;&lt;P&gt;           FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;           IMPORTING e_row_id e_column_id es_row_no.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;STRONG&gt;----&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_receiver IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD handle_hotspot_click.&lt;/P&gt;&lt;P&gt;    IF e_column_id-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;      IF e_row_id CO c_int.&lt;/P&gt;&lt;P&gt;        READ TABLE it_final INTO wa_final INDEX e_row_id.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          SET PARAMETER ID 'AUN' FIELD wa_final-vbeln.&lt;/P&gt;&lt;P&gt;          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_double_click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to do that along with the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD gc_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_structure_name              = str_report&lt;/P&gt;&lt;P&gt;      i_save                        = 'U'&lt;/P&gt;&lt;P&gt;      is_layout                     = es_layout&lt;/P&gt;&lt;P&gt;      is_variant                    = es_variant&lt;/P&gt;&lt;P&gt;      i_default                     = c_on&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = it_final&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = it_fieldcat&lt;/P&gt;&lt;P&gt;      it_sort                       = it_sort&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;      program_error                 = 2&lt;/P&gt;&lt;P&gt;      too_many_lines                = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT event_receiver.&lt;/P&gt;&lt;P&gt;  SET HANDLER&lt;/P&gt;&lt;P&gt;  event_receiver-&amp;gt;handle_hotspot_click FOR gc_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gc_grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 17:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170181#M754375</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2007-12-11T17:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Button on my Interactive ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170182#M754376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry. I misunderstood i sent it for hotspot. you have to write code under PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the class CL_GUI_ALV_GRID events. take the above example and write the same for double click or menu_button or for user command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 17:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170182#M754376</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2007-12-11T17:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Button on my Interactive ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170183#M754377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM handle_double_click USING 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;&lt;/P&gt;&lt;P&gt;READ TABLE gt_list INDEX is_row_no-row_id .&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0 AND i_column-fieldname = 'MATNR' .&lt;/P&gt;&lt;P&gt;CALL SCREEN 200 . "Details Secondary List&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;ENDFORM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 18:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170183#M754377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Button on my Interactive ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170184#M754378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have set two event handlers, one to the event button_click and other to the event hotspot_click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fixed two breakpoints on the implementation of the classes, but when I press the button, I don´t get the process stop at the breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I have not linked the buttons with the container of the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Manuel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 09:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-my-interactive-alv/m-p/3170184#M754378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T09:48:37Z</dc:date>
    </item>
  </channel>
</rss>

