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: 

REUSE_ALV_GRID_DISPLAY - Dump when using F4 (Matchcode)

luis_rod
Participant
0 Kudos
452

Hi all,

I am getting an error when using the REUSE_ALV_GRID_DISPLAY_LVC function. The program displays the ALV OK but, if a do a F4 (Matchcode) on a particular column, the program dumps with a message (GETWA_NOT_ASSIGNED). The dump seems to suggest an unassigned field symbol in a system program (CL_GUI_ALV_GRID).

The ALV has some editable columns (as check boxes). If I disable the edit value in the field catalog the F4 works OK. As far as I can check, the field catalog values are the same in both cases (excepting the edit allowed column, of course).

The REUSE_ALV function is as follows:

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = gv_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'
is_layout_lvc = w_layout
it_fieldcat_lvc = i_fieldcat
i_save = 'A' "permite salvar el layout
TABLES
t_outtab = gt_alv
EXCEPTIONS
program_error = 1
OTHERS = 2.

Any ideas?

Thanks in advance,

Luis

2 REPLIES 2

luis_rod
Participant
0 Kudos
352

BTW, The F4 is assigned to a non-editable column...

luis_rod
Participant
352

Ok.

Problem Solved!!

By mistake, I had the following line when defining the layout:

w_layout-stylefname = 'FIELD_STYLE'.

Deleted it and the program is running ok.