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

SAPSCRIPTS1

Former Member
0 Likes
716

Hi All!

I am designing a SAPSCRIPT in the landscape orientation and the form will be used as a receipt with counter receipt divided by dotted lines in between.Now my problem is there will be two main windows(both are one and same) on the first page and iterations will run into the second page dynamically.Is there any alternative since two main windows can't exist on a single page.

regards

prasanna kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
702

Why do you say that two main windows cannot exist on a single page. We can create 99 main windows on a single page.

7 REPLIES 7
Read only

Former Member
0 Likes
703

Why do you say that two main windows cannot exist on a single page. We can create 99 main windows on a single page.

Read only

0 Likes
702

Hi KAvitha!

Are u sure,i don't think so.We can only create one main window on a page and several secondary windows.

Read only

0 Likes
702

i think we can have 99 main windows per layout not per page...

Read only

0 Likes
702

Hi,

We can have only one main window in smartforms, using

&SFSY-PAGE& variable we can control the main window in different pages by creating "Program lines".

For Example

data v_text(40). " place this text in MAIN window

if &SFSY-PAGE& eq 1.

move 'First Page' to v_text.

elseif &SFSY-PAGE& eq 2.

move 'Second Page' to v_text.

...

...

endif.

Thanks

Sarath.

Read only

Former Member
0 Likes
702

Hi

Yes, u can create place upto 99 main windows in a single page. In the Page Windows attribute while adding the main window you can specify the index from 00 to 98.

The same concept is used for printing labels.

Regards

Shounak

Read only

0 Likes
702

Hi,

We can place more than 99 main windows also but the identification number(i.e. index) will vary from 00 to 98.

Regards,

ram

Read only

Former Member
0 Likes
702

We can have 00 - 98 (Totally 99) Main windows in the SAP script layout.

Thanks