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: 

hotspot in alv

Former Member
0 Kudos

hi all

how can we keep hotspot in alv,what function module we should we use

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

hi pavan

i have used Reuse_alv_list_display.there i could not able to find hotspot parameter

0 Kudos

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

Former Member
0 Kudos

IF ls_fieldcatalog-fieldname = 'LABST'.

<b>ls_fieldcatalog-hotspot = 'X'.</b>

ENDIF.

Former Member
0 Kudos

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.