Skip to Content

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

Trigger Second Page

Hi

I have two defined page formats for a Script namely

FIRSTPAGE

SECONDPAGE

The second page format is a new addition to this script.

The first page generally prints everything and has it's Next page as FIRSTPAGE and it has to be so, so that the existing pages print correctly...

I already see a NEW-PAGE command in FIRSTPAGE script line which trigger Main Window of FIRSTPAGE...

Now after the end of the printing of FIRSTPAGE how do I trigger SECONDPAGE... Is there any command line for this purpose

Let me know...

Former Member replied

Hi grame,

call function 'CONTROL_FORM'
    exporting
      command   = 'NEW-PAGE SECOND'
    exceptions
      unopened  = 1
      unstarted = 2.

  if sy-subrc ne 0.
    message 'COMMAND CANNOT BE EXECUTED' type 'I'.
  endif.

Regards,

Sravanthi

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