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

SAP script extra page at end....

Former Member
0 Likes
800

Hi Experts,

I am using SAP Script Form, After executing a script in output one extra page is comming. How to remove that extra page ?

Rahul

3 REPLIES 3
Read only

Former Member
0 Likes
649

Hi,

If you are using the command NEW-PAGE, remove it.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

0 Likes
649

Hi Sipra ,

I wanna display multple pages depending on number of Order Nos.

so i cant remove New-Page.

Regards,

Rahul

Message was edited by:

rahul deshmukh

Read only

Former Member
0 Likes
649

Hi,

Check your main Window, may be there is blank line at the last of the main window, so check that abd remove that,so you won't get the blank page.

If U WANT TO GET THE LAST PAGE THEN

You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.

From SAP Help:

This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .

Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.

/: IF &NEXTPAGE& = '0'

  • Last page

/: ENDIF

Reward points

Regards