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

reports

Hi..

could some tell me how to get a header and footer on a report, do we need to write any include program.

cheers

Srikanth

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2005 at 01:43 PM

    Hi There,

    If I'm not wrong you are talking about ABAP report.

    In ABAP report there is no concept of Header & Detail as such. You have to program in the way to make a set of data as Header & Detail.

    Say eg.

    DATA : wa_ekko LIKE EKKO,

    wa_ekpo LIKE EKPO,

    ist_ekpo LIKE STANDARD TABLE OF EKPO.

    SELECT * FROM EKKO

    INTO CORRESPONDING FIELDS OF wa_ekko

    WHERE EBELN = 1.

    SELECT * FROM EKPO

    INTO CORRESPONDING FIELDS OF TABLE ist_ekpo

    WHERE EBELN = 1.

    WRITE : wa_ekko-ebeln.

    LOOP AT ist_ekpo INTO wa_ekpo.

    WRITE : wa_ekpo-ebeln, wa_ekpo-ebelp.

    ENDLOOP.

    Regards,

    Deva.

    Add a comment
    10|10000 characters needed characters exceeded

    • Here is a sample.....pay close attention to the LINE-COUNT statement.

      
      report zrich_0003
            no standard page heading
            line-size 132
            <b>line-count 65(3).</b>
      
      
      start-of-selection.
      
        do  100 times.
          write:/ sy-index.
        enddo.
      
      top-of-page.
      
        write:/ 'This is the header'.
      
      
      end-of-page.
      
      
        write:/ 'This is the footer'.
      
      
      

      If this was helpful, please remember to award points accordingly. Thanks.

      Regards,

      Rich Heilman

  • Posted on Aug 03, 2005 at 01:40 PM

    Use events. TOP-OF-PAGE and END-Of-PAGE.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2005 at 01:55 PM

    Hi Srikanth,

    Have a look at demo programs

    DEMO_LIST_PAGE_HEADING

    DEMO_LIST_END_OF_PAGE

    Thanks

    Lakshman

    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.