cancel
Showing results for 
Search instead for 
Did you mean: 

NEW-PAGE not working

Former Member
0 Kudos

Hi! I have 3 pages in my sapscript... FIRST, NEXT and LAST. At NEXT I have a window DRAWING which contains the following code

IF &NEXTPAGE& EQ '0'

NEW-PAGE LAST

PERFORM GET_FINAL_DRAW IN PROGRAM ZPSFCOBJL

USING &CAUFVD-MATNR&

CHANGING &FG_DRAW&

ENDPERFORM

BITMAP &FG_DRAW& OBJECT GRAPHICS ID BMAP TYPE BMON

ENDIF

LAST contains the same window DRAWING. The NEXT page's next page is not filled in. The LAST page is also not called in the print program.

Tell me what I'm doing wrong?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

As per ur code IF &NEXTPAGE& EQ '0' , the NEXT page next page shud be FIRST, only then the condition gets satisfied, because, there is no condition that after NEXT what shud be the flow.

So, better, give the page flow and try .