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

SAP SCRIPT NEW PAGE

Hi ,

I have a typical problem with SAP SCRIPT

where in i have to generate the form in 2 pages

first page consist of Goods Issue material documnet number

Second page should consist of serial number s for that document number

where i am print the first page but unable to print the second

i have taken all mandt action like

PAGES

first-> second

second->second

then i have given /: NEW PAGE <page> in main window

then the footer shifts to the next becoz the footer window is after the main window

then i have given the same in footer window but the new page is not triggering

i tried with conditions like IF &NEXTPAGE& EQ 0. and all other but unable to find the solutions

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2007 at 06:26 AM

    hi,

    use CONTROL_FORM fm

    CALL FUNCTION 'CONTROL_FORM'

    EXPORTING

    command = 'NEW-PAGE'

    EXCEPTIONS

    unopened = 1

    unstarted = 2

    OTHERS = 3.

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDLOOP.

    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.