Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Change page with new vendor

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

Steve,

It probably has to do with the fact that the GRID functionality is a "control" and not an ABAP List. In this case the control just displays all of the report data. You will not get any page breaks.

When you print the Grid display, it will switch over to "List" mode and you should see your page breaks.

Best Regards,

Chris H.