Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in Sapscript NEW-PAGE

Hi,

I need to create a new page for the sapscript of Purchase Orden.

the first page goes to the first page (FIRST).

The new page is called SECOND and it contains just text, such as Terms & conditions.

The problem is that i couldnt be able to use the statement :

/: NEW-PAGE SECOND

It doesnt go to the second page.

I added it at the end of the MAIN windows of the FIRST page.

I also added it at the end of the TOTAL windows of the FIRST page, because that windows is the last one.

What am i doing wrong? I think that it should be worked.

Please some help.

Former Member replied

Hi

Your MAIN should be:

/E  NEW_PAGE
/:   NEW-PAGE SECOND

So your driver program should call the fm WRITE_FORM:

CALL FUNCTION 'WRITE_FORM'
       EXPORTING
            WINDOW  = 'MAIN'
            ELEMENT = 'NEW_PAGE'.

Or u can also use the fm CONTROL_FORM instead of the code above:

CALL FUNCTION  'CONTROL_FORM'
      EXPORTING  COMMAND   = 'NEW-PAGE SECOND'
      EXCEPTIONS UNSTARTED = 1
                 UNOPENED  = 1.

Max

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question