Skip to Content
2
Former Member
Jul 10, 2007 at 03:56 PM

ALV Change page with new vendor

30 Views

hi xprts,

I'm developing a report wich needs to change to a new page with a new vendor, i'm using the function 'REUSE_ALV_GRID_DISPLAY'. i typed the following code in the events :

READ TABLE rt_events WITH KEY name = 'BEFORE_LINE_OUTPUT'

INTO ls_event.

IF sy-subrc = 0.

MOVE g_before_line TO ls_event-form.

MODIFY rt_events INDEX sy-tabix FROM ls_event.

ENDIF.

FORM BEFORE_LINE USING P_C TYPE SLIS_LINEINFO.

break-point.

CHECK P_C-TABNAME = 'T_INF'.

READ TABLE T_INF INDEX P_C-TABINDEX.

CHECK SY-SUBRC EQ 0.

IF T_INF-LIFNR <> D_LIFNR AND P_C-TABINDEX NE 1.

D_LIFNR = T_INF-LIFNR.

Refresh: gt_list_top_of_page.

PERFORM comment_build USING gt_list_top_of_page[].

NEW-PAGE.

ENDIF.

But it does'nt works, never going to the breakpoint. but if i use 'REUSE_ALV_LIST_DISPLAY' function, the page change correctly. any ideas ?.

Regards,

Steve.