Urgent : SAPScript: Main Window

HI Gurus,
Can two Main windows be created in a single sapscript with the same text inputs.?
If yes, how can we do so?
Useful response will be surely rewarded.
Thansk in advance

Hi Himayan
you can do tht.....
as you have on main window.......
u want to have one more main wondow in ur page..if i m rit...then
u can do so..
goto  'page window' >Edit>Create Element-->then select then main window....it ll be sub main window as '01'...and u have to write  text in main '00'...only
it will come in main '01' automatically...
u can place this window any where in the page...may have different dimensions....
It will work man i did it...
Thnx
Rohit

Similar Messages

  • Problem in sapscript Main Window Box command - Urgent

    Dear friends,
    Problem while showing boxes in multiple pages in sapscript. Box command is defined begining of the main window. But while printing showing in first page only not in other pages.
    Regards,
    Praveen Lobo

    This could be your problem why box command is not getting displayed in all pages, you might be using the box command in the element that is only called once and that to in the first page... so try to check your form and place you box command under element that is getting called in each and every page, it will solve your poblem.
    Note: for testing you can place your box command under element "/E" where you are displaying your line items... even though it is called multiple number of times it gets overlapped.
    close the thread once your question is answered.
    Regards,
    SaiRam

  • SAPscript MAIN Window ITEM TEXT Printing in NEXT PAGE

    Hi,
    I need to print the Item Text (Item Description or Column Description) if the Item Values (Lines) goes to the NEXT page in the Form. I have TEXT ELEMENTS defined for ITEM TEXT and ITEM VALUES in the MAIN Window. There is no issue with Printing the Item Text and Item Values in the FIRST Page. But in the NEXT page only when the Item values are printed (Item lines in excess of FIRST page), ITEM TEXT needs to be printed before printing the ITEM VALUES. If the FROM goes to NEXT page but not the Item values, then ITEM TEXT need not be printed in the NEXT page. The number of lines in the MAIN Window is different for both pages (FIRST & NEXT). I am not sure how to get this done. So, please provide me with a suitable solution to get this done. Appreciate your help in advance.
    Thanks,
    Kannan

    Hi Kartik Tarla,
    Thanks for your reply. Printing item lines between PROTECT / ENDPROTECT, will lead to Print all the line item together in one page. That is not I wanted. It the line items flows to NEXT page, I need to print the Item Header/Item Text. Otherwise, NEXT page should not have the Item Header.
    Thanks.
    Kannan

  • SAPSCRIPT Main Window Issue

    I need to print the contents of the main window twice in the same page at different places.I searched the forum but I did not get any relevant thread with a solution.
    Can anyone help.
    Thanks
    Nancy

    I've put two main windows on the same page.
    Since it is  a main window we cannot rename it, so the name of both the main windows is "main".
    When i call it using the function module "write_form'  from the driver program only the first instance of the main window is called, if there is an overflow ( that is the data doesn't fit into the first main window ) it goes to the second instance of the main window and prints the rest of the data in the second instance of the main window.
    But this is not my requirement.
    I want the same data to be replicated in both the main windows.
    Not the first half of the data in the first main window and the second half in the second instance of the main window.
    I think I've made my requirement more clearer.
    Thanks
    Nancy

  • Sapscript MAIN window and character separation

    Hi all
    We have encountered two issues, when we create Form painter.
    How we want to create the form is below.
    Display 6 fileds below at the top of the paper and at the bottom of the paper with correct character separation.
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Ideal Form>
                                        Check
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    <Issue>
    1. We cannot display two main windows.
    What we want to realize is
    print 6 fields 2 times in the same form like labels. but right
    ex)Display 6 fileds below at the top of the paper and at the bottom of the paper
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Issue 1>
    In below, the bottom part (MAIN01) is blank and nothing comes up
                                        Check
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    2.When one field is blank, the character separation become different in each row.
    ex) In below, doc#54322 has no Invoice# then character space for Invoice# is not blanked but the
    space between ACC doc# and Date got really tight
    <Issue 2>
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    If you know the solution, please let me know
    Best regard Masanobu Kubota
    Edited by: Koji Yamada on Jan 8, 2009 5:59 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:00 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:02 AM

    Hi,
    As per my understanding of the question,
    As u need two different pages, i.e. one with a single window n other with 2 windows:
    In script create 2 pages:
    1.Page1 have main window and sub window
    2.Page2 have only main window.
    Now in driver program,
    call function open-form.
       when scenario 1
          call function start-form for page1
               call function write-form etc.....
          call function end-form
       when scenario 2
          call function start-form for page2
               call function write-form etc.....
          call function end-form
    call function close-form.
    Hope its clear.
    Plz revert back if u get any doubts.

  • Sapscript Main Window

    Hi All,
    I am using the standard print program & layout set of order confirmation for quotation.
    In the main window, i am defining a table using box commands & this is defined in the type-top of main window. the header text does get printed at the top of the window, but the table is printed starting from the top of page. I have modified the write form in print program to accomodate the printing at top of main window. Any suggestions how do i print the table/box in the main window.
    Thanks
    Amu

    Hi,
      Instead of using type TOP, define separate ELEMENT for printing header and table to be displayed. Then there will not be any problem of printing.
    Regards,
    Sailaja.
    Dont forget to reward points, if answer helps you.

  • Sapscript  - Main window Frame

    Hi all,
    I am designing a form.I have three main windows in this form. I have the following code in the text editor for thre windows. /: box frame 10 tw
    when I check the layout of the form I can see the box only in the main window 00 but not in main window 01 and main window 02. Can anyone please help me with this.
    Reagrds,
    Varun

    Hi Varun,
    Please note that no need to create a window for each column.you can define Your X-coredinate to define Verical line or means to create a box:
    Sample Code :
    BOX YPOS '1.25' LN WIDTH '120' CH HEIGHT 4 LN FRAME 10 TW
    BOX XPOS '18.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '31.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '47.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '68.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    Lanka
    Message was edited by: Lanka Murthy

  • SapScript  'MAIN' Window without 'Text Element'

    Why is it, if we run 'MAIN' Window without defining 'Text Element'(/E), it displays the contents twice.. The same doesn't happens with other 'Variable' windows..

    Hi Main window is different from Var window.
    Var window will call only once .
    But main window it will call many times, it will go to Driver program and come back to populate the data.
    for Clear info debug and see.
    regards
    vijay

  • Box in main window (sapscript) problem.

    Hi, all.
    I meet a weird problem....
    I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page no problem.
    How come like this? Should be the box appear in both MAIN window, right? Hope someone can guide me.
    Thanks in advance.

    Boxes in the main window only get printed in the first page, unless you include them in an element and explicitly call the, But of course that's not the way to go.
    Every other window in the same page which has content that's not inside one element gets printed every page. So to solve your problem, declare another window (perhaps called BOXES) with the appropiate dimmensions and define in it the boxes you need. Replicate this BOXES in the other pages (if you use different page formats inside the sapscript) or leave it in the First page (if it's the only one in the sapscript). The boxes will now print in every page.

  • Box in main window extend to next page in sapscript

    Hi all,
    I am trying to put box in main window in sapscript.
    contents of main window extends  to more than 1 page.
    Box  is appearing on first page but is not extending to other pages.
    Pl help,
    Regards
    Senthil

    Hi,
    Please refer this thread.
    Link: [sapscript box nto printed on all pages;
    Hope this will help you.
    Regards,
    Renuka S.

  • How to do SUBTOTAL AND TOTAL in Main Window of SAPSCRIPT.

    Hello Friends,
    I am modifying standard SAPSCRIPT of packing slip. My client wants a subtotal and total in Main Window of Script for Eg. (They want Material Number wise Subtotal and finally Grandtotal at bottom in Main Window)
    Now i got stucked up here how to do it ?
    here is my sample code.
    LOOP AT XVBPLP WHERE VENUM = SHENR.
    IF XVBPLP-POSNR IS INITIAL.
        Versandelement
          PERFORM PACKING_TREE USING XVBPLP-UNVEL.
        ELSE.
        Lieferposition (Anteil)
          VBPLP = XVBPLP.
      CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'DELPOS'.                     "Main Window call
    clear vbplp.
    ENDLOOP.
    Pls guide me for the same.

    HI,
    For the Line items, put a ELEMENT in the Smartform, and you will call this with in the LOOP and ENDLOOP, so here with in the LOOP count the TOTAL value.
    then create new element after the Line item Element, and call this Element after the Line items prints,
    /E  LINE_ITEM
      &1& &2 & &3&     " This will be in the loop and you need to caliculate the totla here
    /E SUB_TOTAL.
    &SUb_TOTAL&  " After all the line items pritns then call this Element
    Regards
    Sudheer

  • Printing digital signature in main window of sapscript at some location

    Hi,
    I want to print graphics in main window in sapscript. I want to position the graphic ( signature) at some position (preferably right aligned ). How to do that? Can we do that in .bmp graphics. In case we use .tiff format , how to do it. Tell me the steps involved as I have never used RSTXLDMC to upload .tiff files.
    Regards,
    D.Mallick

    Hi
    Just open rstxldmc in se38 and execute.
    It will gve you a screen. You need to fill the first two blocks only. Remaining are optional.
    File Name :  Give pathe+name of your .tiff file
    Type         : Bcol for colour     and bmon for mono
    Resolution      : say 75 (as you wish)
    Second block
       Text name :   only replace astrick by your name ZHEX-MACRO- has to be there.
    Actually  this program will convert .tiff file into text file.
    you can include this text file in any window. Text name is the name of the text file generated
    no more changes
    Now execute.
    Now you can use this text file  ZHEX-MACRO-name   in any windoow
    If useful, give me points
    cheers
    vamshi

  • Box in MAIN window of sapscript keeps misaligning...

    Hello Experts,
    I am currently modifying a sapscript and inside the MAIN window, there is a box command that 'boxes' a
    static text. But the problem is, the box misaligns since the number of line items is dynamic.
    So, how can I make the box command to just 'box' the static text correctly even though the line item is
    dynamic?

    HI,
    Declare the Box and Static text in the main window with a new text element after the text element of the line items . so it will print it in the end when all of the Line items are printed..
    (or)
    Just create another script with the BOX and the text you want inside the BOX. i.e. this becomes another script which is separate from the line items you are printing there.
    call this script in your driver program with start_form FM.
    REPORT  YTEST_SCRIPT.
    DATA:
      ITAB TYPE TABLE OF SFLIGHT,
      FS TYPE SFLIGHT.
    SELECT * FROM SFLIGHT INTO TABLE ITAB.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        FORM                              = 'ZSCRIPT_TEST'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB INTO FS.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT                        = 'TEST'
          WINDOW                         = 'MAIN'.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'END_FORM'.      "---------->Ends the previous form
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'START_FORM'    "------------> Starts your new script with BOX and Static text
      EXPORTING
        FORM                   = 'ZSCRIPT_TEST1'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        ELEMENT                        = 'TEST'
        WINDOW                         = 'MAIN'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CLOSE_FORM'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This will print the BOX and the Static text in a new page after the line items got printed..
    This will solve your issue...
    Thanks&Regards
    Sarves

  • How to get watermark in main window of SAPSCRIPT FORM

    can anyone help me to get watermark in a SAPSCRIPT FORMS
    in all pages

    Hi vinod,
    Thanks for reply I have tried but its not working.
    I have 2 main window one "main" and other "Main01". In the main 01 I have insert Bitmap command. I have other values to display  main.
    watermark is not coming second page.
    As u said I have given New-window the bitmap was not displaying.
    Please can u give details idea in this regards
    Thanks
    Regards
    Prashanth.

  • Sapscript  total pages in main window

    Hi,
    in <u>main window</u> of my sapscript i need to know total number of pages,
    i'm using &sapscript-formpages& but it doesn't work;
    also tried with &sapscript-jobpages& but with no result.
    In debug it give me "0".
    What's the way to know number of pages in MAIN?
    Thanks.
    Message was edited by:
            Tony De Vivo

    Hi Vallamuthu,
    Thanks for the reply... I am currently modifying the sapscript F110_PRENUM_CHCK. Here we need only the page "NEXT" for our purpose. For this purpose we deleted pages "FIRST"  & "LAST" from my custom sapscript. Now i have only "NEXT" page in my sapscript. I put the code you mentioned even then i don't see overflow happening here. In debug, i saw page as "2".
    regards
    Ajay

Maybe you are looking for

  • Adding bookmarks to pdf - adobe 9 pro

    I have a big document that is not bookmarked. Fortunately, I can search for a certain phrase that will allow me to get to the specific pages I need. Is there a way to add bookmarks to the search results?

  • Video clip ipod nano

    Hello all, I've added video clips in my ipod nano 6th generation. But when I play back the clip, I only get the music and a still image... I've tried to convert with itunes, or with free ipod video converter... it's always the same thing. Can you hel

  • TS1702 itunes store images wont load and can't purchase or update anything

    Just wondering if anyone is or has had the same problem. I can access the itunes store and it partially loads but no images load. I can do a search in the store and it will find what I look for in text but no images. It will let me click on "purchase

  • Whether ineed to put selection between txt and xl file?

    hi, my requirement is to provide to upload data from legacy to sap.in my selection screen i hav to put both presentation and application server options. If the presentation server option is selected then user can select the file type like Text or Exc

  • Adding a image in portal

    I am trying to add a image to portal....Getting error as follows: : Unexpected error encountered in wwv_manage_images.process_create (ORA-06508: PL/SQL: could not find program unit being called) (WWV-00100) I also rerun the ssodatan script and it ran