Skip to Content
0
Former Member
Nov 23, 2005 at 11:19 AM

Error when pressing the buttons in ALV

435 Views

Hi all,

I have written a report using ALV by using FM REUSE_ALV_GRID_DISPLAY

layout-coltab_fieldname = 'FARBE'.

layout-f2code = 'DISPLAY'.

layout-zebra = 'X'.

layout-box_fieldname = 'BOX'.

event_exit-ucomm = '&XP1'.

event_exit-before = 'X'.

APPEND event_exit.

variant-report = repid.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_INTERFACE_CHECK = check_flag

I_CALLBACK_PROGRAM = repid

I_STRUCTURE_NAME = 'ITAB'

is_layout = layout

it_fieldcat = fieldcat

it_excluding = excluding

it_special_groups = gruppen[]

it_sort = sorttab[]

it_filter = filttab[]

i_save = 'X'

is_variant = variant

it_events = events[]

TABLES

T_OUTTAB = ITAB

EXCEPTIONS

program_error = 1

OTHERS = 2.

The ALV grid is shown successfully after executing the program. But when I press the button like 'Print Preview', 'SpreadSheet' which are provided by the ALV. I got the following error:

Assignment error: Overwriting a protected field.

What happened?

Error in ABAP application program.

The current ABAP program "SAPLSLVC_FULLSCREEN" had to be terminated because one of the statements could not be executed.

This is probably due to an error in the ABAP program.

Any one has idea how to solve it? Thanks!