Skip to Content
avatar image
Former Member

Different list headers in different list in the same report?

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 24, 2004 at 09:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2004 at 03:53 PM

    Thank you Mart

    Add comment
    10|10000 characters needed characters exceeded