Application Development 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: 

Script PAGE1 AND PAGE2 concept

Former Member
0 Kudos

Hi This is Ramakrishna,

If i have the 2 pages in scripot layout (page1 and page2).

-->I have given the next page of page 1 is page2 in he layout.

-->Page1 contains main window

-->Page2 does not contain mainwindow.

My doubt is ,After first page of page 1 ,will it go to second page ?

4 REPLIES 4

Former Member
0 Kudos

Hello,

If you call the window present in the second page in your print program, it should display second page.

If this is not displaying, try to use the command "NEW-PAGE Page2" in the last element called in the main window.

Thanks,

Sowmya

0 Kudos

Hi Sowmya ,

Thanks for the reply.I dinot get the clear idea .Please look at the below coding and please reply me.

From the driver program

data : num type i.

Do 100 times .

num = sy-index.

call function 'open_form'.

form name = ''.

call function 'write_form'.

element = 'ele1'.

window = 'MAIN'.

CALL FUNCTION 'close_form'.

*****In the layout :*****

page1 : contains only main window .The text in the main window is.

&num& ( from the driver program).

page2 : given as next page for the page1 in the layout.

conans one variable window only.ANd it contains some static text ).

If write like aboce , it is giving me some error (page contains more data....)

Former Member
0 Kudos

If u r calling the second page in u r driver program after first page it will go, otherwise it will not go automatically to second page.

Kumar.

Former Member
0 Kudos

Hello,

Just check if you have enough space declared for the window in second page.

If you have enough space and still it is a problem, you can do a simple thing.. I had a similar problem and i followed the below method and it worked for me.

Declare the main window in the second page also. (Need not give more space on the window).

Now in the main page, declare a new text element. Inside the text element write the command NEW-PAGE. Call this text element from the print program.

So the text in the second page gets printed in next page.

Just try this . Hope it works.