Skip to Content
0
Former Member
Dec 06, 2006 at 12:05 PM

ALV GRID + Program Errors

592 Views

Hello Friends,

I have written a program which calls a function module ( for further processing ), and at the end this function moduels displays the ALV-GRID. Everything looks okey, and the ALV Gribd is also displayed fine, But after the ALV Grid is displayed, and when I try to select one of the table entry and try to use the tool-bar functions ( details, sort, find, or filter ) the program shows me the error message, stating "STOP Program errors" and then program exits, any idea what's going on ?

Here is my code for ALV GRID.

DATA:

lv_custom_cont TYPE REF TO

cl_gui_custom_container,

galv_sel TYPE REF TO cl_gui_alv_grid,

ps_layout TYPE lvc_s_layo,

/cla/zz_lo_error TYPE dd02l-tabname,

ls_variant TYPE disvariant.

  • output ALV List

IF galv_sel IS INITIAL.

CREATE OBJECT galv_sel

EXPORTING i_parent = lv_custom_cont.

ls_variant-report = sy-repid.

ls_variant-username = sy-uname.

CALL METHOD

galv_sel->set_table_for_first_display

EXPORTING

i_structure_name = '/CLA/ZZ_LO_ERROR'

is_layout = ps_layout

is_variant = ls_variant

i_save = 'A'

CHANGING

it_outtab = it_update[].

  • it_fieldcatalog = pt_fieldcat

  • it_sort = pt_sort.

ELSE.

CALL METHOD galv_sel->refresh_table_display.

ENDIF.

Regards,

null

Message was edited by:

Haider Zaidi