Skip to Content
0
Former Member
Dec 05, 2005 at 10:36 AM

ALV Program errors

417 Views

Hello all,

I've have a strange error, when trying to use buttons from top of an ALV list(eg. print). An error message appear with text "Program errors", but only when one button is used, in rest the list is ok.

Do you have an ideea why?

Thank you!

Bogdan

Here is the code, if is helping:

IF g_cont_alv2 IS INITIAL.

CREATE OBJECT g_cont_alv2

EXPORTING container_name = 'G_CONT_ALV2'.

CREATE OBJECT g_grid2

EXPORTING i_parent = g_cont_alv2.

ENDIF.

l_layout-cwidth_opt = 'X'.

l_layout-sel_mode = 'D'.

l_layout-totals_bef = 'X'.

CALL METHOD g_grid2->set_table_for_first_display

EXPORTING is_variant = l_variant

i_save = 'A'

i_default = 'X'

is_layout = l_layout

  • it_toolbar_excluding = lt_exclude

CHANGING it_outtab = lt_stats

it_fieldcatalog = lt_fcat.

LEAVE TO SCREEN 200.