Skip to Content
0
Former Member
Jul 18, 2009 at 07:08 AM

Interactiva alv problem

27 Views

Hi Friends,

i have developed ALV . but when double click on particular record in the output, it is not triggering For user_command.

please let me know if you know.

CONSTANTS: formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',

formname_ucomm TYPE slis_formname VALUE 'USER_COMMAND'.

READ TABLE p_events WITH KEY name = slis_ev_user_command

INTO wa_event.

IF sy-subrc = 0.

MOVE formname_ucomm TO wa_event-form.

MODIFY P_EVENTS FROM WA_EVENT TRANSPORTING FORM

WHERE NAME = WA_EVENT-FORM.

FORM F_UCOMM_ALL_ITEMS USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

IF r_ucomm = '&IC1' OR r_ucomm = '&ETA'. "for double click

CASE rs_selfield-tabname.

WHEN 'IT_OUT'.

READ TABLE it_out INDEX rs_selfield-tabindex.

wa_out = it_out.

IF wa_out-kotabnr BETWEEN 911 AND 914 AND wa_out-kzbzg = 'C'.

EXPORT: wa_out TO MEMORY ID 'ZMEM',

w_country TO MEMORY ID 'LAND',

w_region TO MEMORY ID 'REG'.

CALL TRANSACTION 'ZSCALE' .

ELSEIF wa_out-kotabnr BETWEEN 911 AND 914 AND wa_out-kzbzg <> 'C'.

MESSAGE e016.

ELSE.

MESSAGE e017.

ENDIF.

  • SET PARAMETER ID '' FIELD it_OUT-KNUMH. "rs_selfield-value.

  • CALL TRANSACTION '' AND SKIP FIRST SCREEN.

  • perform scale_exists.

ENDCASE.

ENDIF.

ENDFORM. "F_UCOMM_ALL_ITEMS

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • i_background_id = 'ALV_BACKGROUND'

i_callback_program = repname

i_callback_user_command = 'F_UCOMM_ALL_ITEMS'

i_structure_name = 'IT_OUT'

is_layout = layout

it_fieldcat = fieldtab_1

i_default = 'A'

it_events = events[]

it_sort = it_sort[]

TABLES

t_outtab = it_out.