Skip to Content
author's profile photo Former Member
Former Member

Header display in ALV to appear only on one page in spool

Hi,

I have used ALV to display my report output. Now, when I run the report in background and check the spool , the header that I am printing using gt_list_top_of_page[] , repeats on all the pages.

How can I stop this in ALV? I just want the header to appear once in the spool.

Thanks & Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2008 at 11:37 AM

    Please go through the document in the below link...

    http://www.erpgenie.com/sapgenie/docs/Using%20ALV.pdf

    you will get all the relevant information.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2008 at 11:40 AM

    In ur top of page routine u a static variable to control it.

    Pl. see this code block:

    FORM top_of_page.

    • Local variable declaration*

    STATICS: l_comm TYPE i. " Store user command

    l_comm = l_comm + 1.

    • Check for print or print preview

    IF ( sy-ucomm = c_prin OR

    sy-ucomm = c_rnt_prev OR

    sy-ucomm = c_rnt ).

    IF l_comm = 1.

    • Write top of page info

    ENDIF. " l_comm <> sy-ucomm

    else. " << This is for normal display

    • Write top of page info

    ENDIF.

    ENDFORM. " top_of_page

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      thanks!!

      it worked !!

      Just need one more thing - user does not want the column names also to appear on each page. Basically he just wants column names to appear only once on starting of the list display in the spool.

      Is it feasible to handle this in ALV?

      Thanks & Regards

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 04:56 AM

    Did any body got the answer for this.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.