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

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

  • 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

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

  • Frame in MAIN window

    Hi,
    in my print program i´ve got something like:
    LOOP AT itab.
    l_counter = l_counter + 1.
    IF l_counter <= 13.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'SMALLFRAME'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 1.
    ELSE.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'BIGFRAME'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    ENDLOOP.
    and in my sapscript i´ve got:
    /E BIGFRAME
    /: POSITION WINDOW
    /: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN
    /: SIZE WIDTH '+0.4' CH HEIGHT +1 LN
    /: BOX WIDTH '71.50' CH
    HEIGHT '40.87' LN FRAME 20 TW
    /E SMALLFRAME
    /: POSITION WINDOW
    /: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN
    /: SIZE WIDTH '+0.4' CH HEIGHT +1 LN
    /: BOX WIDTH '71.50' CH HEIGHT '27.40' LN FRAME 20 TW  
    why is it not working?
    is it not possible within the loop of itab (position´s values) to decide wich frame i want (big or small)?
    is it only possible to define the frame dimensions before processing the lines of the main window and not within the loop?
    Best regards.

    Hi
    It doesn't make a sense to put the call of a box into a loop if you have to call the box only one time for each page.
    You should create a window (not main) where you insert the text element to create a frame. This window should overlap at the main.
    For exampla if the main size is:
    - WIDTH = 71.50
    - HIGTH = 40.87
    The window for fram should be:
    - WIDTH = 71.51
    - HIGTH = 40.88
    So the code in your program should be:
    LOOP AT itab.
    l_counter = l_counter + 1.
    ENDLOOP.
    IF l_counter <= 13.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'SMALLFRAME'
          WINDOW  = 'FRAME'
        EXCEPTIONS
          OTHERS = 1.
    ELSE.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'BIGFRAME'
          WINDOW  = 'FRAME'
        EXCEPTIONS
          OTHERS = 1.
    ENDIF.
    Max
    ENDIF.

  • Main window overflowing in SAPScript

    I have a Main window in SAPScript and i have displayed a box around it using the foll. command
    POSITION XORIGIN '-1' MM YORIGIN '+0' MM
    BOX FRAME 10 TW INTENSITY 1
    I also have horizontal and vertical lines for the rows & columns (like a table)
    When the data is more than 1 page it flows to the next page. But on the next page all the horizontal and vertical lines move to the top of the page whereas my data is displayed below. Also the box around my main window no longer appears.
    I think it is mainly becoz i have 2 other windows- Payee and Vendor address before the main window on the 1st page whereas they are not reqd. on the 2nd page. How do i solve the problem so tht the lines and box fit properly on the main window on every page?

    Hi
    You can define different condition for printing the box for Main window.
    And also you can define different Window sizes like Top margin, Window height etc for different pages differntly
    in the main window text elements say
    /: BOX FRAME 10 TW INTENSITY
    So that depending on the size of the MAIN window the Box is drawn.
    Regards
    Anji

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

  • Frame line not display in next page of main window

    hi Xpert,
    I am creating layout in SAP SCRIpt,it working fine only the main window of next page  frame line is not display.
    i m define next page as a FIRST page and writing main window of first page following coding
    /:           POSITION XORIGIN '0.50' CM YORIGIN '7.75' CM
    /:           SIZE HEIGHT '17' CM WIDTH '19.25' CM
    /:           BOX  FRAME 10 TW
    when i run the program first page are coming properly and only when i go in second page of output then main window lines not displaying.
    please guide me how to solve this problem.
    Regards,
    pravin

    Hi Praveen,
    In that case why you have to make the main window in the first page and secondry window.
    You can use it as manin window itself. Print the total amount in the main window itself in the first page. and copy that main window to the second page.
    In the first page under the main window create a text. and there u print the total value and text.
    Now copy the main window to the second page..only COPY DONT CREATE NEW.
    In the second page now under the main window create the table to print the line items. What every u add in the second page main window it will come in the first age also in the smartforms. But it will nto get printed in the first page.After the text to print the totals call the COMMAND option and call next page in that.
    Hope you got me..
    Regards
    Ansari

  • 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

Maybe you are looking for

  • IRQ Conflicts and some other issues

    I have a K7N2 Delta-L mobo with an XP2400+ and an MSI FX5600-VTDR128, the reason for this question is that I have some problems, the first of them is at the system information page of XP: ================================================= I/O Port 0x0

  • Unable to upload delimited flat file (Datastore)

    Dear All, Drilling down the tutorial:  ODI11g: Creating an ODI Project and Interface: Exporting a Flat File to a Flat File facing quite a problem while reverse-engineering delimited flat file (Datastore ->Model). No matter which type of delimited fla

  • MAC-to-IP address ARP table?

    The SNMP MIB entry ipNetToMediaPhysAddress gives the MAC address from the ARP table, referenced by the IP.  Is there a table available anywhere in some router MIB that would give the equivalent of "MediaPhysAddressToipNet" (reverse) information so th

  • Exporting to jpeg with grayscale images on the page crashes Indesign

    Hi, I have noticed a bug in Indesign CS4. When I have grayscale psd images on a page the export to jpeg crashes. - R

  • Is diadem the best solution to store test limits and parameters

    I understand that diadem is the best repository for test results for analysis and reporting. However can I make use of the database structure to store test limits and instrument setup values as a TDM file that I can call upon in a VI. If so, is it po