02-13-2007 1:19 PM
hi all
how can we keep hotspot in alv,what function module we should we use
02-13-2007 1:22 PM
we dont use separate function module for it.
in ALV_LIST function module, in declaration of field-catalog, we have a parameter like HOTSPOT. we just need to pass 'X' value to that parameter of the field for which we need hotspot.
thx
pavan
02-13-2007 1:22 PM
we dont use separate function module for it.
in ALV_LIST function module, in declaration of field-catalog, we have a parameter like HOTSPOT. we just need to pass 'X' value to that parameter of the field for which we need hotspot.
thx
pavan
02-13-2007 1:27 PM
hi pavan
i have used Reuse_alv_list_display.there i could not able to find hotspot parameter
02-13-2007 1:30 PM
See this code sample
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-hotspot = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
* fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
The fieldcatalog type is of slis_...
This condtains the hotspot.
types: begin of slis_fieldcat_alv_spec,
key_sel(1) type c, " field not obligatory
no_sum(1) type c, " do not sum up
sp_group(4) type c, " group specification
reprep(1) type c, " selection for rep/rep
input(1) type c, " input
edit(1) type c, " internal use only
hotspot(1) type c, " hotspot
end of slis_fieldcat_alv_spec.
types: begin of slis_fieldcat_alv.
include type slis_fieldcat_main.
include type slis_fieldcat_alv_spec.
types: end of slis_fieldcat_alv.
http://www.sapdevelopment.co.uk/reporting/alv/alvlist_code.htm
Message was edited by:
Judith Jessie Selvi
02-13-2007 1:23 PM
IF ls_fieldcatalog-fieldname = 'LABST'.
<b>ls_fieldcatalog-hotspot = 'X'.</b>
ENDIF.
02-13-2007 1:27 PM
hi,
do this
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-SELTEXT_L = 'BILLING DOC'.
WA_FIELDCAT-TABNAME = 'IT_VBRP'.
WA_FIELDCAT-COL_POS = 1.
WA_FIELDCAT-HOTSPOT = 'X'.
APPEND WA_FIELDCAT TO IT_FIELDCAT1.
CLEAR WA_FIELDCAT.
do reward if it helps,
regards,
priya.