06-16-2009 7:39 AM
Hi...
I want to enable hot spot for particular column of ALV grid which is created using class(CL_GUI_ALV_GRID)
As i structure instead am not creating field catalog so how i can create hot spot ...
Thanks & Regards ..
...Ashish
06-16-2009 7:46 AM
Create an entry for this fields only at fieltcatalog table and pass the hotspot parameter.
06-16-2009 7:46 AM
Create an entry for this fields only at fieltcatalog table and pass the hotspot parameter.
06-16-2009 7:48 AM
06-16-2009 7:50 AM
Hi,
you can send the column name and the hotspot option available in the field catalog.
f_cat-FIELDNAME = 'XXX'.
f_cat-hotspot = 'X'.
append f_cat to t_fcat.
use the event HOTSPOT_CLICK.
As you wanted it for a particular column check the field when clicks the field with an if condition and then trigger the event.
set handler lcl_event_handler=>hotspot for grid.
[check this wiki|https://wiki.sdn.sap.com/wiki/x/mIDvB]
Thanks&Regards
Sarves
06-16-2009 8:06 AM
Hi,
* Handle hotspot_click event for grid
METHODS : handle_hotspot_click FOR EVENT hotspot_click OF
cl_gui_alv_grid
IMPORTING
e_row_id e_column_id es_row_no.
* In the field catalog specigy this...
ls_fldcat-fieldname = 'KUNNR'.
ls_fldcat-col_pos = '4'.
ls_fldcat-coltext = text-t05.
ls_fldcat-hotspot = 'X'.
ls_fldcat-intlen = 10.
You can then handle your hot spot as you want..
06-16-2009 8:04 AM
Hi,
Try this
field-symbols: <ls_fcat> type lvc_s_fcat.
read table it_fcat assigning <ls_fcat>
with key fieldname = 'FIELD1'.
if sy-subrc eq 0.
<ls_fcat>-style = cl_gui_alv_grid=>mc_style_hotspot.
endif.
Regards
06-16-2009 8:27 AM
06-16-2009 8:32 AM
In case I m not creating field catalog as i am assigning name of standard structure to attribute I_STRUCTURE_NAME ... how to create hot spot?
06-16-2009 8:48 AM
Hi,
Create a field catalog internal table using the function module
LVC_FIELDCATALOG_MERGE
and modify the internal table content to have hotspot and use that internal table in ALV funtion.
Thanks and regards,
Venkat.
07-17-2009 8:49 AM