Skip to Content
0
Former Member
May 03, 2005 at 04:28 PM

Program closes abnormally after MESSAGE E000 in ALV

848 Views

Hi,

I’ve a program that builds an ALV and shows some data retrieved from a custom table. The problem is that, during the double-click event processing, if I send an error with MESSAGE E000, the program closes abnormally the next time I click on the ALV (any ALV option closes it immediately).

The program creates the ALV based on the standard command:

CALL METHOD grid_itab1->set_table_for_first_display

and defines a handler for the double-click event with:

SET HANDLER lcl_event_handler=>on_double_click FOR grid_itab1.

My event handler tester is very simple:

CLASS lcl_event_handler DEFINITION.

PUBLIC SECTION.

CLASS-METHODS:

on_double_click

FOR EVENT double_click OF cl_gui_alv_grid

IMPORTING

e_row e_column es_row_no.

ENDCLASS.

CLASS lcl_event_handler IMPLEMENTATION.

METHOD on_double_click.

MESSAGE E000 WITH ‘BLA BLA BLA’.

ENDMETHOD.

ENDCLASS.

Does any body know why the program is closing abnormally once the error message is show? I even tried to call the CALL METHOD cl_gui_cfw=>flush before the MESSAGE is sent but it does not solve the problem. A temporary solution I found for the problem was to change from MESSAGE E000 to MESSAGE S000.

Also, when the program stops it does not show any standard ABAP dump screen. In the logs (SM21) the only information I get is roll-back error, Message ID R6 8, on class STSK.

How can I solve this? Is there any method that I have to call before issue the MESSAGE Ennn command?

Thanks

Manuel Dias