cancel
Showing results for 
Search instead for 
Did you mean: 

Please update this SAP SCRIPT next 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 (3)

Answers (3)

Former Member
0 Kudos

HI,

you need to put the PROTECT and ENDPROTECT in the Foter window

Regards

Sudheer

Former Member
0 Kudos

HI,

No need to call the new-page in your situvation, use the PROTECT and ENDPROTECT ...

Regards

Sudheer

Former Member
0 Kudos

Whether i have to place the same in main window or footer window

Former Member
0 Kudos

Hi!

I could imagine a solution like this:

We can say, your MAIN window's tables are gt_main_gi and gt_main_sn in your printer program.

LOOP AT gt_main_gi INTO wa_main_gi.

  • write all windows, MAIN, HEADER, FOOTER, everything to the 1st page

CALL FUNCTION 'WRITE_FORM'...

ENDLOOP.

  • here comes the NEW-PAGE call - see below

LOOP AT gt_main_sn INTO wa_main_sn.

  • write all windows, MAIN, HEADER, FOOTER, everything to the 2nd page

CALL FUNCTION 'WRITE_FORM'...

ENDLOOP.

  • new page part

In your SAPScript

/E NEW_PAGE

/: NEW-PAGE

In your program

CALL FUNCTION 'WRITE_FORM'

EXPORTING element = 'NEW_PAGE'.

Regards

Tamá

Former Member
0 Kudos

That is a standard driver program where in i can't change it .