cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT NEW PAGE

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I was searching for explicit page break. Sudha answer helped me a lot. Thank you very much.