cancel
Showing results for 
Search instead for 
Did you mean: 

Main window in Script and smartform

Former Member
0 Kudos

Hi Gurus,

I need clarification's on below

1) How many main windows we can create in SAP Script and how many we can create in Smartforms

2) Is it possible to create a Script without a main window

3) Is it possible to create a smartform without a main window

Regarfs

Saravan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You already posted this question yestrday and got the replies also*. FOLLOW UP THOSE THREADS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Edited by: Vishwa Sri Hari on Nov 20, 2008 11:01 AM

Former Member
0 Kudos

Hi,

I cant able to see the answers in tat thread

Pls help

Rgds

Saravan

Former Member
0 Kudos

Search for the thread, it is the list. And when I can see, Why cant you see?

And the subject title is : "Main Window in Smartform and Script".

If it is not in Page 1,then look in Page 2..otherwise in Page 3.

Former Member
0 Kudos

Viswa,

Even I can able to see tat thread in page 3, if u just open tat thread there is nothing in it...no answers....think there is some error in it....thats why i posted it again

Rgds

Sarvan

Former Member
0 Kudos

Hi

1) How ,many main windows we can create in Smatfroms and How many we can create in Scripts.

In smartform only one, in scripts 99.

2) Is it possible to create a smartform without a main window.

No.

3) Is it possible to create a script without a main window

No.

Can u see this reply atleast???

Close the thread If issue resolved.

Regards,

VIshwa.

Answers (2)

Answers (2)

matt
Active Contributor
0 Kudos

Enough answers now. Thread locked, duplicates deleted.

Former Member
0 Kudos

Hi,

We can use 99 main windows in both scripts and smartforms.

With out main main window we can't create script and smartform.

A smartforms with out main window gives error "A page without a main window cannot point to itself as next page"

Former Member
0 Kudos
We can use 99 main windows in both scripts and smartforms.

For a script...you cant have more than one main window on one page.............

Former Member
0 Kudos

Hi,

I have checked and gave a reply.once u can also check.

Former Member
0 Kudos

Look. You can have the same Main Window more than once. But cannot create more than one main window. Is that clear?? So, it is not 99 main window. It is only one main window which can be called repeatedly.

Former Member
0 Kudos

Hi,

I read the below one so that i gave reply.

You can have up to 99 MAIN windows on one page. These windows

are distinguished by a serial number (0..98) and assigned in this

order. So, with SAPscript, it is possible to print labels or to output

text in multiple columns. If one MAIN window is filled, then the

next MAIN window on the page is automatically accessed. A page

break is inserted at the end of the final MAIN window.

Former Member
0 Kudos

Yes Usha, you can have 99 windows. But, they are the same window. Not a new window. Why dont you try it out once from scratch? When you create a new page, default Main window is created. Now, if you try to create another main window..you will not be able to. You can create different type of windows like VAR,CONST, AND GRAPH.

Regards,

Vishwa.

Former Member
0 Kudos

Hi Vishwa,

I create one new page,in that main winow is created by default.If i create a new window,by default it gives window type as 'VAR'. Then i can go to form painter and there i can change the window type as 'MAIN'. After that the window type is MAIN or VAR?

Former Member
0 Kudos

OK. After you change in the Form Painter, now you have two main windows right, main 00 and main 01?? Now,just enter the editor...and type something there.and come back and check in main 01, you will have the same text??

So, What does that prove??? Same main window,multiple times...not different main window.

Vishwa.

Former Member
0 Kudos

hi,

try this

In Report

DATA : itab TYPE TABLE OF mseg WITH HEADER LINE.

SELECT * FROM mseg INTO TABLE itab UP TO 50 ROWS.

Call open_form.

loop at itab.

call write_form.

endloop.

call close_form.

In Script

Take 3 or 4 main windows at diff positions.

If u run this program all the values print continuously in the main windows in different positions.