<?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 Attaining Hot spot in ALV Tree Using OOPS concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519157#M1261606</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;In our requirement we are displaying the data in ALV Tree Using OOPS. &lt;/P&gt;&lt;P&gt;We need to achieve hot spot on one of the header field.&lt;/P&gt;&lt;P&gt;I am using  Class &lt;STRONG&gt;'CL_GUI_ALV_TREE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CreditAccnt/ Company codes            DSO    DDSO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;26                                                   15        15&lt;/P&gt;&lt;P&gt;   8000                                              5          5&lt;/P&gt;&lt;P&gt;   8545                                             10        10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example for every credit accnt in header we r displaying the values ( DSO ,DDSO) for all company codes.&lt;/P&gt;&lt;P&gt;Now we require hot spot on Credit Accnt 26. Such that when user clicks on the credit accnt it should navigate to another transaction.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; we havent build any field catalogue for field &lt;STRONG&gt;CreditAccnt/ Company codes&lt;/STRONG&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 06:01:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-24T06:01:54Z</dc:date>
    <item>
      <title>Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519157#M1261606</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;In our requirement we are displaying the data in ALV Tree Using OOPS. &lt;/P&gt;&lt;P&gt;We need to achieve hot spot on one of the header field.&lt;/P&gt;&lt;P&gt;I am using  Class &lt;STRONG&gt;'CL_GUI_ALV_TREE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CreditAccnt/ Company codes            DSO    DDSO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;26                                                   15        15&lt;/P&gt;&lt;P&gt;   8000                                              5          5&lt;/P&gt;&lt;P&gt;   8545                                             10        10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example for every credit accnt in header we r displaying the values ( DSO ,DDSO) for all company codes.&lt;/P&gt;&lt;P&gt;Now we require hot spot on Credit Accnt 26. Such that when user clicks on the credit accnt it should navigate to another transaction.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; we havent build any field catalogue for field &lt;STRONG&gt;CreditAccnt/ Company codes&lt;/STRONG&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 06:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519157#M1261606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T06:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519158#M1261607</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 refer to the tutorial -&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try using the code below-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&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;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;CLASS-METHODS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Hot Spot Click&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;handle_hotspot&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&lt;/P&gt;&lt;P&gt;e_column_id&lt;/P&gt;&lt;P&gt;es_row_no,&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Implementation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Method handle_hotspot&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This method is called when the user clicks on a hotspot to drill down.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The following types are exported from the ALV&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LVC_S_ROW&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LVC_S_COL&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LVC_S_ROID&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;METHOD handle_hotspot.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The hotspot processing coded in the form below.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM f9802_handle_hotspot USING e_row_id&lt;/P&gt;&lt;P&gt;e_column_id&lt;/P&gt;&lt;P&gt;es_row_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Form f9802_handle_hotspot&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This form is called when the user clicks on a hotspot on the ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The parameters are of type&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;P_E_ROW text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;P_E_COL text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;P_E_ROID text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;FORM f9802_handle_hotspot USING p_row&lt;/P&gt;&lt;P&gt;p_col&lt;/P&gt;&lt;P&gt;p_roid.&lt;/P&gt;&lt;P&gt;DATA: lw_output LIKE LINE OF i_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE i_output INDEX p_row INTO lw_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MAT' FIELD lw_output-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " f9802_handle_hotspot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f9300_modify_field_cat TABLES p_fieldcat STRUCTURE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field-symbols: &amp;lt;lfs_fieldcat&amp;gt; TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT p_fieldcat ASSIGNING &amp;lt;lfs_fieldcat&amp;gt;.&lt;/P&gt;&lt;P&gt;CASE &amp;lt;lfs_fieldcat&amp;gt;-fieldname.&lt;/P&gt;&lt;P&gt;WHEN 'MATNR'.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-hotspot = c_x.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_fieldcat&amp;gt;-key = c_x.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, &lt;/P&gt;&lt;P&gt;module STATUS_9001 output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set handlers for events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SET HANDLER o_eventreceiver-&amp;gt;handle_hotspot FOR o_Alvgrid.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 06:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519158#M1261607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T06:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519159#M1261608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply...&lt;/P&gt;&lt;P&gt;But ,My case is ALV Tree. In  Class &lt;STRONG&gt;'cl_gui_alv_tree'&lt;/STRONG&gt; There is no event for Hotspot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 06:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519159#M1261608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T06:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519160#M1261609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz chk this link for hotspot in cl_gui_alv_tree:&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="67729"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 06:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519160#M1261609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519161#M1261610</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 must be using g_alv-&amp;gt;set_table_for_first_display , then pass fieldcatalog .&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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data :  g_alv              TYPE REF TO cl_gui_alv_tree.

  DATA: ls_fieldcatalog TYPE lvc_s_fcat,
            gt_fieldcatalog TYPE lvc_t_fcat..

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
*      i_structure_name = 'ZORDER'        " if u have stucture then give the name
    CHANGING
      ct_fieldcat      = gt_fieldcatalog.

  LOOP AT gt_fieldcatalog INTO ls_fieldcatalog.
    CASE ls_fieldcatalog-fieldname.

      WHEN 'EBELN'.    " in ur case  ' CreditAccnt ' .      change field name as per ur requirement
        ls_fieldcatalog-hotspot = 'X'.
    ENDCASE.

    MODIFY gt_fieldcatalog FROM ls_fieldcatalog.
  ENDLOOP.

  CALL METHOD g_alv-&amp;gt;set_table_for_first_display
    EXPORTING
      is_hierarchy_header = l_hierarchy_header
    CHANGING
      it_fieldcatalog     = gt_fieldcatalog       " fill fieldcatalog.
      it_outtab           = gt_ekpo. "table must be empty !


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 07:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519161#M1261610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519162#M1261611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use this&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/Object" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/Object&lt;/A&gt;&lt;EM&gt;Model&lt;/EM&gt;ALV&lt;EM&gt;-&lt;/EM&gt;Interactive&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Example" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Example&lt;/A&gt;&lt;EM&gt;about&lt;/EM&gt;ALV+Tree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 07:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519162#M1261611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T07:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attaining Hot spot in ALV Tree Using OOPS concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519163#M1261612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2009 09:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attaining-hot-spot-in-alv-tree-using-oops-concept/m-p/5519163#M1261612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-25T09:56:36Z</dc:date>
    </item>
  </channel>
</rss>

