02-22-2008 10:50 AM
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
02-22-2008 11:21 AM
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..
02-22-2008 11:04 AM
hi,
check this option....
hotspot_fieldname..
hotspot = 'X'
and in layout , key_hotspot...
Regards...
02-22-2008 11:04 AM
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.
02-22-2008 11:09 AM
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.
02-22-2008 11:21 AM
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..