cancel
Showing results for 
Search instead for 
Did you mean: 

New-Page in SAP-Scripts

Former Member
0 Kudos

Hi

I am using New-Page <new page name p1> in SAP-Script, but the page p1 is not getting called.

Can anyone suggest any solution for this problem.

This is quiet urgent here.

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

new-page works only in the main window, provided the page exists, and we need to check whether it has been placed in the main window or not......

Former Member
0 Kudos

hi,

1.One thing you need to check in the Form is the defined form is assigned as next to any page .

2.If that page is self to next page.

3.Once check the control_form is called in the driver program.

4.You are way of writing the NEW-PAGE p1 is correct.

Regards,

Kumar(Reward if helpful).

Former Member
0 Kudos

Hi,

check this

For page1 the next page will be page2 and for page2 NEXT PAGE WILL be page2 itself.

Also Go throuh the information below .

Explicit Page Break: NEW-PAGE

SAPscript automatically inserts a page break when the main window of a page (MAIN) is full. You can use the NEW-PAGE command to force a page break in the text at any point you want one. The text following this command then appears on a new page. The page break is always performed (it is an unconditional page break).

The NEW-PAGE command completes the current page. This means that all the windows that are still on the page are printed immediately. If you use the NEW-PAGE command without parameters, the page defined in the current form as the next page will be taken next. If, however, your form contains a number of different pages, then you can specify any one of these as the next page to be used.

Syntax:

/: NEW-PAGE page_name

/: NEW-PAGE

The current page will be completed and the text in the following lines will be written to the page specified in the form.

/: NEW-PAGE S1

As above, except that the page S1 will be taken as the next page.

· If, in a NEW-PAGE command, you specify a page not contained in the form, the specification is ignored.

· Take care that there are no blank lines immediately before a NEW-PAGE command. If an implicit page break occurs within the blank lines, an unexpected blank page may be printed.

Regards,

Raj.