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

Need a classical report with header and footer

Hi,

I need to develop a report (classical .not ALV)

How to implement Header and footer in that.

In header i want,

client,

report name,

page no

username,

(the width of the header shd be adjusted with the page width)

and a footerwith the foolwing field

coyright ....reg no ... etc

Advance thanks

Kannal

Edited by: SAP user on Jun 16, 2008 1:06 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Jun 16, 2008 at 11:10 AM

    Check the ABAP events:

    TOP-OF-PAGE

    END-OF-PAGE

    matt

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:10 AM

    In TOP-OF-PAGE event:

    CONCATENATE

    'CLIENT:' sy-mandt

    'REPORT NAME:' sy-repid

    'PAGE NO:' sy-pagno

    'USER NAME:' sy-uname

    INTO gs_string separated by space.

    write: gs_string.

    In the END-OF-PAGE also write similarly,

    Regards

    Kannaiah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:11 AM

    Hi,

    You can use the TOP-OF-PAGE and END-OF-PAGE events for getting header and footer.

    
    top-of-page.
    write : 
    
    end-of-page.
    write:
    

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:18 AM

    Hi,

    Use

    top-of-page

    write :sy-clnt,

    SY-REPID,

    sy-uname,

    sy-pageno.

    end-of-page.

    write text-001.

    Hope it helps u

    Regards

    Manjari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:21 AM

    hiii

    you can do it by using following code

    TOP-OF-PAGE .
    
    
      ULINE.
    
      WRITE:/1(85) '' COLOR 1,
      5 'Customer Number' COLOR 1,
      25 'Customer Name' COLOR 1,
      45 'Sales Document' COLOR 1.
      ULINE.

    reward if useful

    thx

    twinkal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 11:42 AM

    hi,

    initially allocate some space for end of page to trigger to do that.

    report <reportname> line-size 20(3). Here 3 lines are reserved for footer.

    so using top-of-page u can give header.

    top-of-page.

    write :

    end-of-page.

    write:

    Rgds.,

    subash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 12:36 PM

    Hi.

    Use TOP-OF-PAGE Event for header details. Write all the required details of header under this event.

    Use END-OF-PAGE Event for footer details. Write all the required details of footer under this event.

    Award points, if helpful.

    Regards.

    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.