2023 Feb 17 6:51 PM
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
2023 Feb 17 7:56 PM
2023 Feb 17 8:16 PM
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.