Skip to Content
0
Former Member
May 01, 2010 at 08:17 AM

multiple main windows in sapscript

169 Views

Dear All

I developed a sapscript in which i have to print some matter on half of the A4 size paper and same content to be printed on the second half. Therefore I want to use 2 main windows in it for same data. So i made 2 instances of MAIN window naming MAIN 00 and MAIN 01. Now I am facing the problem in my driver program when i call WRITE_FORM. In it how can i call second instance of the main window i.e. MAIN 01 (page window). Below is the code for function call for main window.

perform writeform using 'TEXT' 'MAIN'.

form writeform using elements windows.

call function 'WRITE_FORM'

exporting

element = elements

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

window = windows

  • IMPORTING

  • PENDING_LINES =

exceptions

element = 1

function = 2

type = 3

unopened = 4

unstarted = 5

window = 6

bad_pageformat_for_print = 7

others = 8.

endform. "WRITEFORM

with regards

Pardeep Sharma