<?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: Hyper link in ALV by classes and methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052812#M1174517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;         follow these steps.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) while creating field catalog set the propertiey hotspot = 'X' to the field on which  we click.&lt;/P&gt;&lt;P&gt;2) in local class define method for handling hotspot_click event.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Hotspot clicking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &lt;STRONG&gt;hotspot_click&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;             &lt;STRONG&gt;IMPORTING e_row_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                       &lt;STRONG&gt;e_column_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                       &lt;STRONG&gt;es_row_no,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) in the implementation section provide the logic&lt;/P&gt;&lt;P&gt;  METHOD hotspot_click.&lt;/P&gt;&lt;P&gt;    PERFORM event_hotspot_click&lt;/P&gt;&lt;P&gt;                  USING e_row_id&lt;/P&gt;&lt;P&gt;                        e_column_id.&lt;/P&gt;&lt;P&gt;  ENDMETHOD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form routine contains logic&lt;/P&gt;&lt;P&gt;FORM event_hotspot_click&lt;/P&gt;&lt;P&gt;  USING&lt;/P&gt;&lt;P&gt;    p_row    TYPE lvc_s_row&lt;/P&gt;&lt;P&gt;    p_column TYPE lvc_s_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lv_docnum TYPE kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE i_alv_data INTO v_alv_data INDEX p_row-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_column = 'CUST_ID'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  call a transaction when the cust_id is clicked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SET PARAMETER ID 'AUN' FIELD v_alv_data-cust_id.&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;&lt;/P&gt;&lt;P&gt;ENDFORM.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more information follow this link...............&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.watto.org/program/abap/download/Z_ALV_TEMPLATE.abap" target="test_blank"&gt;http://www.watto.org/program/abap/download/Z_ALV_TEMPLATE.abap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saplab.blogspot.com/2007/10/sample-abap-program-of-alv-grid-control.html" target="test_blank"&gt;http://saplab.blogspot.com/2007/10/sample-abap-program-of-alv-grid-control.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ee/c8e080d52611d2b468006094192fe3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ee/c8e080d52611d2b468006094192fe3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2009 13:16:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-06T13:16:59Z</dc:date>
    <item>
      <title>Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052807#M1174512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developd report using alv report using  classes  cl_gui_alv_grid,cl_gui_custom_container...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output display contains field called as org_crmid..&lt;/P&gt;&lt;P&gt;if i click on org_crmid i have to move to another transaction named BP( its saperate screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me in solving this through classes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 12:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052807#M1174512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052808#M1174513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at this article:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[easy reference for ALV grid control|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In stead of using a hyperlink, use a hotspot or a button click. You will find all of this in the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 12:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052808#M1174513</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-06T12:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052809#M1174514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in field catalog..&lt;/P&gt;&lt;P&gt;set for ur field,&lt;/P&gt;&lt;P&gt; wa_fcat-hotspot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_event_handler DEFINITION .
PUBLIC SECTION .
METHODS:
*--Hotspot click control
handle_hotspot_click
FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_row_id e_column_id es_row_no .
ENDCLASS.

CLASS lcl_event_handler IMPLEMENTATION .
*--Handle Hotspot Click
METHOD handle_hotspot_click .
  READ TABLE itab INDEX eis_row_no e_row_id .
  set paramater...
  call transaction 'X'....
ENDMETHOD .


DATA gr_event_handler TYPE REF TO lcl_event_handler .
CREATE OBJECT gr_event_handler .
*--Registering handler methods to handle ALV Grid events

SET HANDLER gr_event_handler-&amp;gt;handle_hotspot_click FOR gr_alvgrid .

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcelo Ramos on Jan 6, 2009 11:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 12:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052809#M1174514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T12:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052810#M1174515</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;PRE&gt;&lt;CODE&gt;CLASS lcl_event_receiver DEFINITION .
  PUBLIC SECTION .
    METHODS:
*--Hotspot click control
    handle_hotspot_click
      FOR EVENT hotspot_click OF cl_gui_alv_grid
      IMPORTING e_row_id e_column_id es_row_no.

ENDCLASS .                    "lcl_event_handler DEFINITION
*----------------------------------------------------------------------*
*       CLASS lcl_event_handler  IMPLEMENTATIO
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_event_receiver IMPLEMENTATION.

  METHOD handle_hotspot_click .
    PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
  ENDMETHOD .                    "handle_hotspot_click

ENDCLASS .                    "lcl_event_handler DEFINITION

DATA       g_event_receiver TYPE REF TO lcl_event_receiver, "Event Receiver

      CREATE OBJECT g_event_receiver.
      SET HANDLER g_event_receiver-&amp;gt;handle_hotspot_click FOR g_alv_grid.



  g_fieldcat-hotspot      = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: avinash kodarapu on Jan 6, 2009 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 13:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052810#M1174515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052811#M1174516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the only possible event within a row then I would recommend to activate the event DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a sample report have a look at &lt;STRONG&gt;ZUS_SDN_THREE_ALV_GRIDS&lt;/STRONG&gt; in thread &lt;SPAN __jive_macro_name="thread" id="286895"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*---------------------------------------------------------------------*
*       CLASS lcl_eventhandler IMPLEMENTATION
*---------------------------------------------------------------------*
*
*---------------------------------------------------------------------*
CLASS lcl_eventhandler IMPLEMENTATION.
 
  METHOD handle_double_click.
*   define local data
    DATA:
      ls_knb1      TYPE knb1,
      ls_vbak      TYPE vbak,
      ls_vbap      TYPE vbap.
 
 
    CASE sender.
      WHEN go_grid1.
...
 
 
      WHEN go_grid2.
...
 
 
 
      WHEN go_grid3.
        READ TABLE gt_vbap INTO ls_vbap INDEX e_row-index.
        CHECK ( ls_vbap-matnr IS NOT INITIAL ).
 
        SET PARAMETER ID 'MAT' FIELD ls_vbap-matnr.
        CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
 
      WHEN OTHERS.
        RETURN.
    ENDCASE.
 
  ENDMETHOD.                    "handle_double_click
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 13:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052811#M1174516</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-06T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052812#M1174517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;         follow these steps.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) while creating field catalog set the propertiey hotspot = 'X' to the field on which  we click.&lt;/P&gt;&lt;P&gt;2) in local class define method for handling hotspot_click event.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Hotspot clicking&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &lt;STRONG&gt;hotspot_click&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           &lt;STRONG&gt;FOR EVENT hotspot_click OF cl_gui_alv_grid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;             &lt;STRONG&gt;IMPORTING e_row_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                       &lt;STRONG&gt;e_column_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                       &lt;STRONG&gt;es_row_no,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3) in the implementation section provide the logic&lt;/P&gt;&lt;P&gt;  METHOD hotspot_click.&lt;/P&gt;&lt;P&gt;    PERFORM event_hotspot_click&lt;/P&gt;&lt;P&gt;                  USING e_row_id&lt;/P&gt;&lt;P&gt;                        e_column_id.&lt;/P&gt;&lt;P&gt;  ENDMETHOD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form routine contains logic&lt;/P&gt;&lt;P&gt;FORM event_hotspot_click&lt;/P&gt;&lt;P&gt;  USING&lt;/P&gt;&lt;P&gt;    p_row    TYPE lvc_s_row&lt;/P&gt;&lt;P&gt;    p_column TYPE lvc_s_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lv_docnum TYPE kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE i_alv_data INTO v_alv_data INDEX p_row-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_column = 'CUST_ID'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  call a transaction when the cust_id is clicked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SET PARAMETER ID 'AUN' FIELD v_alv_data-cust_id.&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;&lt;/P&gt;&lt;P&gt;ENDFORM.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more information follow this link...............&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.watto.org/program/abap/download/Z_ALV_TEMPLATE.abap" target="test_blank"&gt;http://www.watto.org/program/abap/download/Z_ALV_TEMPLATE.abap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saplab.blogspot.com/2007/10/sample-abap-program-of-alv-grid-control.html" target="test_blank"&gt;http://saplab.blogspot.com/2007/10/sample-abap-program-of-alv-grid-control.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ee/c8e080d52611d2b468006094192fe3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ee/c8e080d52611d2b468006094192fe3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 13:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052812#M1174517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hyper link in ALV by classes and methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052813#M1174518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u all vry much &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 15:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hyper-link-in-alv-by-classes-and-methods/m-p/5052813#M1174518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T15:16:38Z</dc:date>
    </item>
  </channel>
</rss>

