Box inside Main window issue in Scripts

I have issue in placing a box inside the main window. I would like to display text with a box frame at end of the line items.
I tried creating seperate FOOTER window in the Last page, but it dint work as expected, since if the line items ended in the first page then the LAST page did not trigger and one more complication was if there were 4 pages, then there was blank window (FOOTER) in 2 pages and it looks ugly.
I tried putting the box frame by using text element, calling after the end of the line items. The text displayed as needed, but the frame was misaligned.
Kindly help me. Thanks in advance.
Have a great weekend.

Raj,
Try to find out which text element is trigerring after the line items text element while debuging the script  and then place the box code in that text element.
regards.

Similar Messages

  • Printing of boxes in Main window of SAP Script at 2 different locations

    Hi Experts,
      I have an requriement in SAP script, I want to draw two boxes. The first box will be at the beginging of main window with 0.5 cm, which is comming perfectly. After the first box I have to display the entries related to a particular table, after the completion of that table I need to draw another box of lenght 0.5cm and the entries related to another table, needs to be displayed.
    I am able to get the first box with intensity, but for the second box I am not getting exact position where i need to draw a dynamic box by filling intensity.
    For that reason i have drawn two ulines and wrote the text, is there any way to fill internsity in between those lines.
    Thanks
    Ravi.

    Hi Sujeet,
    I already tried with that command, the problem is in between two boxes I dont know how many lines of data will come.
    There is a need of drawing a box dynamically.
    Thanks
    Ravi

  • Printing dynamic box in main window in scripts

    hi ,
    I want to print the dynamic box in main window of my script.
    Ex. Suppose the content of the main window is 5 lines so it should print box for 5 those lines only.

    Hi,
    Create a Main window with only 2 lines, Give a BOX command it will give u Border for entire Main window.
    /:BOX FRAME 10 TW
    For giving vertical lines Syntax is
    /:BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
    It gives u a vertical line at 16 character. so for ur requirment add another command at another XPOS.
    Try this below just below ur ITEM ELEMENT which has the display fields.
    Main Window
    /E ITEM_A
    A,,,,&ITAB-ABC&,,&ITAB-XXX&,,&ITAB-CDE&,,&ITAB-GEF&
    /:BOX FRAME 10 TW
    /:BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
    /:BOX XPOS 26 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
    /:BOX XPOS 36 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
    /:BOX XPOS 46 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME 10 TW
    Change XPOS according to ur requirement.
    Now add another main window to the same page with changing UPPER margin, U can add upto 99 Main windows in one page.
    So add upto ur Page is full.
    For headings
    Create a Variable window same as Main window, in place of fields, give descriptions.
    Make sure that u give BOX command below the field declaration, if u give above, for last record it will not print box.
    Regards
    Bala Krishna

  • Box in main  window of script is not printing

    Helllo Friends
    Box in main window of script is not printing but the same is available in print preview. I have use the following commands.
    Please help me.
    /:           BOX WIDTH '23.40' CM FRAME 20 TW
    /:           BOX XPOS '0.00' CM YPOS '1.40' CM WIDTH '23.40' CM FRAME 25 TW
    /:           BOX XPOS '0.00' CM YPOS '8.10' CM WIDTH '23.40' CM FRAME 25 TW
    /:           BOX XPOS '0.00' CM YPOS '9.00' CM WIDTH '23.40' CM FRAME 25 TW
    /:           SIZE  WIDTH '0.00' CM HEIGHT '8.10' CM
    /:           BOX XPOS '0.00' CM  FRAME 25 TW
    /:           BOX XPOS '0.50' CM  FRAME 10 TW
    Thanks In Advance
    Regards
    SUNITHA

    Try changing X postion to not equal to zero something else for example.
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
    /:           SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
    /:           BOX FRAME 7 TW
    /:           BOX HEIGHT '1.1' LN INTENSITY 15
    Nabheet

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

  • DRWAING BOXES IN MAIN WINDOW

    HOW TO DRAW BOXES IN MAIN WINDOW WITH OUT USING BOX XPOS

    u can draw dynamic boxes by using uline n vline options. But it takes a lot of time, and is suggestible only if it is very critical. Just try out.
    By using uline and vline, you can draw lines dynamically. Also u can specify the width too ... eg ... uline(120). Dont forget to specify the font style ans size of the font.

  • Regarding Number of MAIN Windows in SAP Script.

    Hi,
    SAP Script allows to place a maximum of 99 MAIN Windows. Is it possible to have different content in different MAIN Windows i.e., if i have 2 MAIN Windows in SAP Script with numbers 00 and 01 can i have different contents in these two windows. If possible please give us an example for the same.
    Thanks in advance for your esteemed help.
    Regards,
    Raghavendra Goutham.

    HI All,
    Thanks for your esteemed replies.
    But i want to frame my question exactly.
    In my script there are two main windows with number
    MAIN 00 and MAIN 01.
    MAIN 00
    Content:
    /E  data
      abc,,def
    In MAIN 01 i want to have only XYZ, some thing like this
    MAIN 01
    /E total
    XYZ
    My problem is: whenever i am changing the content in MAIN 01, the content in MAIN 00 is also getting changed.
    I do not want this to change, i want different content in both of them. Is this possibel if so how.
    Thanks and Regards,
    Raghavendra Goutham.
    MAIN 01

  • Main Window in SAP Script

    Hi Guys,
    I wanted to know as to why is it possible to create multiple main window in SAP Script.
          In most theory it is written a SAP Script can only use 1 main window, If thats the case why is it still possible to create more than 1 of them.
          Can you explain its use and functionality.
    Helpful answers will be duly rewarded.

    Hi,
    U can have multiple main windows in Sapscripts(Upto 99)
    Main Windows (MAIN)
    Each form must have one window of type MAIN. Such a window is called the main window of the form. For SAPscript forms, the main window has a central meaning:-
    ? It controls the page break.
    ? It contains the text body that may cover several pages.
    ? It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
    As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form. The SAPscript composer thus avoids reformatting of the text after each page break.
    If a page does not have a main window, the system implicitly processes all other windows of the page and continues with the subsequent page. This page must not call itself as subsequent page (recursive call), since this would produce an endless loop. In such a case, SAPscript terminates the output after three subsequent pages.
    For printing header lines or totals, the different output areas of the main window are of special importance.
    The diffetent Output areas of main window are
                                                                      TOP
                                                                      BODY
                                                                      BOTTOM
    its use and functionality.*
    Suppose you have requirement that you r displaying data from two line item tables which can flow multiple pages.
    In this case u have to use multiple mail windows.
    Regards
    Sandipan

  • How to print a window (ex:total)only after end of main window in SAP Script

    How to print a window(ex: total) only after end of main window in SAP Script
    Thank you.

    Create a total window and place it after your main window, get the number of lines in your main window and place counter
    Ex,&SAPSCRIPT-COUNTER_1(+)&,
    IF SAPSCRIPT-COUNTER_1& EQ <number of lines in main window>
    **print total
    ENDIF.
    Regards,
    Sairam

  • Getting Dynamic XPOS and YPOS for drawing the line in MAIN window in SAP Script using BOX command

    Hi Experts,
    I am trying to draw a line using the BOX command in the main window.
    /:         BOX HEIGHT 0 TW FRAME 10 TW INTENSITY 100
    I want to draw a line in XPOS and YPOS dynamically..
    Is there any way to find such I can draw a line dynamically after triggering a Text element. or determine the XPOS and YPOS dynamically such that I can draw a line in an intended position dynamically.
    Thanks in Advance
    Regards
    Rajesh Chowdary Velaga

    Any update on this ??

  • 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

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

  • Printing logo at a specified position in main window in sap script

    Hi,
    I need to print a logo just after the signature which is coming in the main window, So basically i need to call a var(secondary) window inside the main window just after the signature and the position of logo should be towards the right.
    I tried it by insert->graphics but now what I am getting is the image on the left side.How can i define the position(upper margin & left margin) of logo while using the insert->graphics??? Is there any other way to do the same?????
    Ekta

    Hi Ekta,
    For example consider the dimensions
    MAIN  2,00 CM  12,00 CM  17,00 CM   9,00 CM
    Logo   16,00 CM  21,00 CM   3,00 CM   3,00 CM
    This logo(secondary window) Print after the main window ...
    Regards,
    Sravanthi

  • Positioning box in Main Window

    I have a main window (Sapscript) with multiple text elements as follows:
    <Start Text Element1>
    Include statement with varying text length
    <End Text Element1>
    <Start Text Element2>
    Include statement with varying text length
    <End Text Element2>
    <Start Text Element3>
    I need a box to appear here with item header. ****
    <End Text Element3>
    How can I position the box in the 3rd text element section ? The text appearing in Text Element1 & Text Element2 are not fixed in length. I will not know where text element 3 starts.

    Hi...
    You can do like this.
    BOX XPOS  YPOS   WIDTH 10 CM HEIGHT 10 CM
    INCLUDE TEXT
    INCLUDE TEXT
    INCLUDE TEXT.
    Here, you need to change your XPOS and YPOS accordingly
    So that your Third text will be fit in the Box.
    Regards
    Sandeep Reddy.
    Edited by: Sandeep Reddy on Dec 31, 2007 11:34 AM

  • Extra boxes when Main Window Overflows

    Hi All,
      I created a table in Main Window, after that i have long texts. If the long text overflows, then i am getting two boxes which are not even present in the form anywhere. I am wondering how to get rid of those two extra boxes. Please help me.
    Thanks,
    Kumar

    Hi Kumar,
    Elobrate it a bit more.
    I couldn't visualize what do you mean by extra box, where exactly they are...before the table/ after the table.
    or extra boxes in one coulm of the table.
    cheers,
    Sai

Maybe you are looking for

  • SSD Hard Drives problem?

    OK here is what I heard: at a recent music pro's meet up I heard that 2 different people report some version of the info below. Then I called a mac tech pro, and he added 3 experiences more of the same in the last year. So this seems scary and that S

  • Data Load behaviour in Essbase

    Hello all- I am loading data from Flat File using a server Rule File. In the rule file i have properties for a feild where in it replaces a name in flat file for member name in outline so it is somwhat like this: Replace With Canada 00-200-SE Belgium

  • Upload making service unusable for over a year!

    Folks, I won't bore you all with the details, but my broadband has be lousy for over a year. The problem is that nobody at BT actually takes ownership - they simply run a few tests and send it along to the next person and eventually, you end up back

  • Wi-fi access in Canada

    I am Australian and going to Canada. Hoping to take my MacBook and connect to wi-fi services there. Do I need to set anything up on the computer before I go. It has built in AirPort Extreme (802.11n). Can I just go and click safari when there and up

  • How can I copy a podcast from iTunes to a SBU stick to use in my car radio?

    Before latest update of iTunes, I have always been able to copy a podcast downloaded to iTunes , into a USB stick for my car radio. I can't see how to do that anymore. I have no similar problems with my iPhone and my iPad. By the way. Is it possibly