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: 

Different list headers in different list in the same report?

Former Member
0 Kudos

Hi everyone.

I have two questions.

1) I have a report where I display a list at the very beginning of the program. Then, after calling a screen, I call the leave-processing event and display another list.

The problem is, if I create a list header for the first list that header appears in the second list and

vise versa. It doesn't matter if one is a normal list header and the other one is a top-of-page.

2) I want to know if is possible to display variables in the list header.

Thanks in advance.

FIDEL PERALTA.

2 REPLIES 2

Former Member
0 Kudos

One way to do this is to not use the list heading functionality. Remove this by Adding the following code to your report statement:

REPORT ZREPORT NO STANDARD PAGE HEADING.

Then you can use the write statements to produce your own page headings based on a specific variable. One way to do this would be within the top-of-page event, this is call at the start of every new page:

i.e:

  • Top of page event

TOP-OF-PAGE.

case gd_heading.

when '1'.

write: 'heading 1'.

when '2'.

write: 'heading 2'.

endcase.

Hope this helps

regards

Mart

Former Member
0 Kudos

Thank you Mart