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

How to print on last paze of main window?

Hello

I need to print some text in the bottom of the main window.

the main window data can flow in to 2 to 3 pazes, but i need to print the text on last paze only

i have tried with page = form pages and next page = 0, these commands are not working on main window.

can i use bottom and endbottom here? but i think it will print text in all pazes including last page.

But i want the text to be printed on main window last paze

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 10:08 AM

    Hi.

    You can use the events on the condition tab, i.e Only After End of Main window.

    Please close the thread, if solved

    Regards,

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 10:08 AM

    Hi!

    Try it somehow like this:

    CALL FUNCTION 'WRITE_FORM'
      EXPORTING
        ELEMENT                        = 'MY_BOTTOM_ELEMENT '
        FUNCTION                       = 'SET'
        TYPE                           = 'BOTTOM'
        WINDOW                         = 'MAIN'.

    Regards

    Tamá

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 27, 2010 at 10:09 AM

    Hi,

    &NEXTPAGE& = 0 will not work in MAIN window, what you can do is,

    1) Identify the last TEXT ELEMENT which is getting printed in MAIN window.

    2)Create a TEXT element, and write the logic to print that in driver program.

    3)Then add the created TEXT element and the text to be printed, after all the other TEXT elements are printed, you can give that TEXT element in the BOTTOM and ENDBOTTOM, as this TEXT element will trigger only when all other data is filled in the MAIN window.

    Regards

    Bala Krishna

    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.