Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide Hotspot in ALV tree????

former_member228751
Contributor
0 Kudos

Hi experts,

I have provided a double click event in ALV tree display. As of now I am able to open the transactions when I click on some the fields in output. But now I want to have a hotspot on those fields. See plz help me with this.

This is my catalog:


** get fieldcatalog
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
            i_structure_name = 'ZPP_STR_BAR'
       CHANGING
            ct_fieldcat      = t_fieldcat.

LOOP AT t_fieldcat INTO ls_fieldcat.
    CASE ls_fieldcat-fieldname.
      WHEN 'AUFNR'.
        ls_fieldcat-no_out = 'X'.
        ls_fieldcat-key    = 'X'.
        ls_fieldcat-scrtext_s = text-t21.
        ls_fieldcat-tooltip   = text-t01.
      WHEN 'TXT'.
        ls_fieldcat-outputlen = 40.
**      ls_fieldcat-do_sum = 'X'.
        ls_fieldcat-scrtext_s = text-t22.
        ls_fieldcat-tooltip   = text-t02.
      WHEN 'CHARG'.
        ls_fieldcat-outputlen = 16.
    ENDCASE.
    MODIFY t_fieldcat FROM ls_fieldcat.
ENDLOOP.

Is there any field in field catalog which i need to set?

or is there any event to provide hotspot?

<REMOVED BY MODERATOR>

Thanks in advance,

Sachin

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 2:31 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You can try the following :

IF lv_fieldcat-fieldname = 'ORDNO'.

lv_fieldcat-hotspot = 1.

ENDIF.

where ordno is the fieldname and fieldcat is the internal table for field catalog.

Thanks..

4 REPLIES 4

Former Member
0 Kudos

hi,

check this option....

hotspot_fieldname..

hotspot = 'X'

and in layout , key_hotspot...

Regards...

Former Member
0 Kudos

hi,

You Can give hotspot using the Fieldcatalog.

hotspot_fieldname type slis_fieldname, " fieldname flag hotspot

key_hotspot(1) type c, " keys as hotspot " K_KEYHOT

Hope this helps u,

Reagrds,

Arunsri.

Former Member
0 Kudos

Hi

In fieldcatalog there is an option "HOTSPOT",

you need to use this for each and every field,for which fields u want.

Thanks,

chandu.

Former Member
0 Kudos

Hello,

You can try the following :

IF lv_fieldcat-fieldname = 'ORDNO'.

lv_fieldcat-hotspot = 1.

ENDIF.

where ordno is the fieldname and fieldcat is the internal table for field catalog.

Thanks..