Skip to Content
author's profile photo Former Member
Former Member

script with out main window

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:31 PM

    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 .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:47 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:56 PM

    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..)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:16 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:48 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.