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

Adding Page Numbers to PDF File

Hi,

I am using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF' to get the spool data to the PDF file and this PDF file is send to the user through email.

Now I need to add the page numbers to the PDF so that once the users opens the PDF file he gets the page numbers in the PDF document.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 10:12 AM

    Hi,

    while writing report at top-of-page event

    write sy-pagno this will be printed on spool

    and also PDF will have page count .

    report ztest

    line-count 65.

    *after 65 lines top-of-page is triggered and pageno is

    incremented

    top-of-page.

    write sy-pagno.

    Regards

    amole

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Amol,

      Yeah it worked but one issue that since i have written the sy-pagno in the top of page event the page numbers are coming in the top of page in the PDF document but ideally the page numbering should be in the bottom . How to achieve that ???

      Rgds

      Mohit

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 09:24 AM

    Hi Mohit,

    i think it's not possible. You have to put this Information in the Spool.

    Regards, Dieter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 08:28 AM

    Hi

    You can use <b>END-OF-PAG</b>E event (In list processing when a page ends)

    Regards,

    Raj

    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.