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

sapscript multiple windows

Former Member
0 Likes
526

hi guys,

I have to design a form which consists of one main window which repeats itself 3 times on the page.if there are 4 windows to be printed, it has to print 3 on one page and the 4th one goes on the first window of the next page.can any one please help me how to proceed with the logic.

regards,

nani

3 REPLIES 3
Read only

Former Member
0 Likes
492

Having multiple MAIN windows does not mean that they will be copies of the first MAIN window.

Not sure I understand your request.

You put as many MAIN page windows on the page as you want. When the first is full, it goes to the second. When the second is full, it goes to the third. If there are only three MAIN page windows and the third is full, it goes to the next page and starts over again.

A good example is printing mailing labels where each label is a MAIN page window.

Read only

0 Likes
492

thanks norman for ur quick reply,

i have to print picking labels its has the same content on each window except that its has different label number on each window.

can u help me with the logic.

regards,

nani

Read only

0 Likes
492

Use the following to switch between Main windows:

  call function 'CONTROL_FORM'
       EXPORTING
            command   = 'NEW-WINDOW'
       EXCEPTIONS
            unopened  = 01
            unstarted = 02.

If you have 3 Main windows on your form and you call this FM 3 times it will go to the 1st Main window of the next page.