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 with out main window

Former Member
0 Kudos

Hi SDN,

I got a new and strange requirement in the scripts. That script has two pages. Users don’t want the main window for the first page. They want main window from the second page. Kindly can any body suggest me how can I approach? Kindly Provide the steps briefly. waiting for reply....

Suggestion will be appreciated.

Thanks in advance.

Regards,

Ravi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Ravi,

Main window is mandatory window for a Page.

So for the first page create the main and leave it blank. It won't pront anything.

Vasanth

9 REPLIES 9

Former Member
0 Kudos

Hello Ravi,

Main window is mandatory window for a Page.

So for the first page create the main and leave it blank. It won't pront anything.

Vasanth

Former Member
0 Kudos

Ravi,

What Vasanth says i right.. just an addition to that, <b>make that main window's dimesions to (0,0) which are width and height,</b> so that, it is present, but cant view it, and it wont occupy any space on the form layout for the first page.

Hope this helps.

regards,

Sujatha.

Former Member
0 Kudos

hi,

let me know the rquirement correctly...what is the data they want to display in the first page..

if it is just the text in some variable window ..at the same window goto text editor at the end give /: NEW-PAGE command..

create the 2nd page and display your data there.

just try this it is just a suggestion.

regards,

pankaj singh

Former Member
0 Kudos

see the thing is

In sap scripts main window is by default for a page .

1.so dont populate the main window of first page .

2.populate the mainwindow of second page (next page of ur script).

ex.

First page .

/E   detail


Next page 
/E  detial
      &itab-value&

" populate in 2 page

the diff is first page the value is not displayed

and it is populated in second page .

regards,

vijay

Former Member
0 Kudos

I think you can create a page without main window. Assign a variable window to first page(P1) and main window to second page(P2). By calling the main window in your program you will get the contents of the P1 page . Assign P2 as the next page to P1 .

Former Member
0 Kudos

Hi ravi..

u can create the first page with out any main window.

In the last window of first page ( The last window in alphabetical order )

after all the texts explicitly call NEW-PAGE <PAGE NAME>.

This <page name> can contain the main window . From now ... ucan continue

with the flow...

Former Member
0 Kudos

Hi,

It is not possible to have a page without window.

so here what can u do is u can make the width nd height to zero so that thw window will be present but it cannout be viewed by the user.

Hope this helps.

Regards,

Sruthi

Former Member
0 Kudos

In the print program at first u need to call the FM 'WRITE_FORM' with out any parameters. The continue the process... ( write forms with text elements, main windows,,,).. I tested it and got the result...

( The order of execution of windows other than main window---

in the alphabetical order of the names of the windows..)

0 Kudos

Hi,

Thnak you very much to every one for your immediate response. i got the solution by your suggestions. i create that with (0,0) dimensions. Now it is not populated that main window in the first page.Thanks again.

much appriciation for your suggestions.

Regards,

Ravi