Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPScript New-Page

Former Member
0 Likes
1,012

Hi,

I am having some problem with the new-page command.

I have 3 pages in my SAPScript. The main window overflows from page one to page two. I don't have any problem till this point.

In the footer window I am putting the following code and it does not call the third page.

/: IF &NEXTPAGE& = 0

C2 HELLO HOW ARE YOU DOING???

/: NEW-PAGE TH1

/: ENDIF

It prints the text in the last footer but it never calls the third page TH1.

Am I doiong anything wrong? or do I need to do take care of something.

Please help ASAP.

Thanks..

Venu (Intelligroup)

8 REPLIES 8
Read only

Former Member
0 Likes
871

Hi,

I second page <b>NEXT PAGE</b> attribute have you put THIRD page name.

Check that.

And give

IF &NEXTPAGE& EQ '0'.

NEW-PAGE.

Code----


ENDIF.

Try and see wether it works.

Read only

0 Likes
871

I can't do that, because the main window in second page over flows onto many pages which is dynamic. After complete the main window then I have to call the next page.

Read only

0 Likes
871

I think you may have to do this in your ABAP print program using the START_FORM and END_FORM function modules. In using the START_FORM, you can specify what page is to be processed.

Regards,

Rich Heilman

Read only

0 Likes
871

HI Venu,

Use the FM START_FORM.

Read only

0 Likes
871

The condition here for me is not to touch the print program at all.

Actually my problem is explained more clearly at:

Please refer the forum question 'SAP Script: Printing the signature on main window at the end'.

Thanks.

Venu

Read only

Former Member
0 Likes
871

I think the NEW-PAGE command works only for the MAIN window. just try using the same in main window n chk.

pl acknowledge if it helps.

Regards,

Bikash

Read only

0 Likes
871

I can't put this in the main window because the value for &NEXTPAGE& will never be zero.

Thanks.

Venu

Read only

0 Likes
871

but u can always execute new-page command in the main window by putting it in a text element and then calling this element from the program after ur loop( items in the main window) is over .

Regards,

Bikash