Application Development and Automation 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: 
Read only

Constant report header

Former Member
0 Likes
585

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.

4 REPLIES 4
Read only

Former Member
0 Likes
557

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.

Read only

0 Likes
557

Hi,

I am not using alv, just simple report. Will this work?

Regards,

Suresh

Read only

Former Member
0 Likes
557

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.

Read only

Former Member
0 Likes
557

no comments