Application Development and Automation 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: 
Read only

dynamic fotspot

Former Member
0 Likes
591

i use this CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = l_program

i_callback_user_command = 'G_USER_COMMAND'

i_callback_top_of_page = 'TOP_OF_PAGE'

is_layout = ls_layout

it_fieldcat = alv_fldcat

  • it_sort = lt_sort

i_save = 'A'

i_grid_title = lvc_title

is_print = ls_print

it_events = ls_event

is_variant = ls_variant

TABLES

t_outtab = <dyn_table>. (imard)

and i want --HOTSPOT

FORM g_user_command USING r_comm TYPE sy-ucomm

rs_selfield TYPE slis_selfield.

****----


IF r_comm = '&IC1' .

IF rs_selfield-fieldname EQ 'MATNR'.

READ TABLE imard INDEX rs_selfield-tabindex.

SET PARAMETER ID 'MAT' FIELD imard-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .

ENDIF.

ENDIF.

<b>what is wrong</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

Hello,

In th fieldcat of the fiels set the <b>HOTSPOT = 'X'.</b>

If useful reward.

Vasanth

3 REPLIES 3
Read only

Former Member
0 Likes
561

Hello,

In th fieldcat of the fiels set the <b>HOTSPOT = 'X'.</b>

If useful reward.

Vasanth

Read only

Former Member
0 Likes
560

In the internal table alv_fldcat, against the entry for field MATNR set the field HOTSPOT as 'X'. You will get a hot-spot when the cursor is positioned over that item.

Read only

Former Member
0 Likes
560

Hi ,

Consider this code ,if you need a hot spot please include the under lined statement .Hope this helps .

WA_A2-COL_POS = 2.

WA_A2-FIELDNAME = 'WERKS'.

WA_A2-TABNAME = 'IT_A1'.

WA_A2-REF_FIELDNAME = 'WERKS'.

WA_A2-REF_TABNAME = 'MARC'.

<u><b>WA_A2-HOTSPOT = 'X'.</b></u>

APPEND WA_A2 TO IT_A2.

CLEAR WA_A2.