‎2008 Nov 26 12:05 PM
Hi all,
I have an internal table filled with report output. I am displaying the data in it from half of the first page till end. I wrote the report header in top-of-page event. It is printing report header in every page, so while scrolling down the report sometimes in a page two headers are seen. Is it possible to display a constant header and when scrolled down the header is constant at the top, only data is scrolled down. After displaying the internal table data I am displaying some other info as well. So the header should start from half of the first page continue till end of the loop iteration and after internal table data printed header should not be displayed. Please advise.
My current report output is as below, which has header in each page, instead when moved to second page, the header should stand at the top and only data should scroll down. After loop iteration, there should not be header displayed again.
Thanks in advance.
-
page1----
line 1----
line 2----
line 3----
-header-
loop at t_out.
report output data--
report output data--
report output data--
report output data--
end of page 1.
-page 2-
-header-
report output data--
report output data--
report output data--
end of page 2.
-page 3-
-header-
report output data--
report output data--
endloop.
line----
line----
end of page 3.
-page 4
no header
line---
line---
end of page 4.
‎2008 Nov 26 12:18 PM
FORM top_of_page.
SKIP 1 .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_list_top_of_page.
ENDFORM. " TOP_OF_PAGE
FORM fill_events.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 1
IMPORTING
et_events = g_events_tab.
*--- allocate form for top-of-page -
READ TABLE g_events_tab WITH KEY name = slis_ev_top_of_page
INTO h_event.
IF sy-subrc = 0.
MOVE g_form_top_of_page TO h_event-form.
APPEND h_event TO g_events_tab.
ENDIF.
‎2008 Nov 26 12:33 PM
Hi,
I am not using alv, just simple report. Will this work?
Regards,
Suresh
‎2008 Nov 26 1:41 PM
Hi,
You want header to be printed only once so within LOOP use AT FIRST to print the header.
loop at t_out.
at first.
-header-
endat.
report output data--
report output data--
report output data--
report output data--
........................
endloop.
‎2009 Mar 23 1:42 PM