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.

Similar Messages

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

  • 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

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

  • 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

  • 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

  • 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

  • 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

  • Draw box across main window

    Hi,
    I need to draw a box around the whole main window using BOX. i.e, if the page extends to more than one page, the box should draw on the next pages also. Right now I'm able to draw only on the first page. How should I do this?
    This is what I have now.
    POSITION WINDOW
    POSITION XORIGIN -20 TW YORIGIN -20 TW
    SIZE WIDTH +40 TW HEIGHT +40 TW
    SIZE WINDOW
    BOX FRAME 10 TW
    BOX WIDTH '260.75' MM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    BOX XPOS '2.0' CM WIDTH 0 TW FRAME 10 TW
    BOX XPOS '10.5' CM WIDTH 0 TW  FRAME 10 TW
    BOX XPOS '11.5' CM WIDTH 0 TW  FRAME 10 TW
    Thanks,
    A.P

    Hi,
    put the box declaration b/w <b>top and endtop</b>.
    <b>/: TOP</b>
    POSITION WINDOW
    POSITION XORIGIN -20 TW YORIGIN -20 TW
    SIZE WIDTH +40 TW HEIGHT +40 TW
    SIZE WINDOW
    BOX FRAME 10 TW
    BOX WIDTH '260.75' MM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    BOX XPOS '2.0' CM WIDTH 0 TW FRAME 10 TW
    BOX XPOS '10.5' CM WIDTH 0 TW FRAME 10 TW
    BOX XPOS '11.5' CM WIDTH 0 TW FRAME 10 TW
    <b>/: ENDTOP</b>
    Reward if it helps you.
    Regards,
    Sandhya

  • Drawing box in main window of sapscript form

    Hi all,
    I am developing a script for vendor balance confirmation report, in which I have to provide check boxes to allow the user to select an option.
    My problem is if I use the BOX statement to draw the box the alignment keeps changing when the size of vendor address changes.
    i.e the boxes moves up and down
    I have another reference script in which they used the following statement to draw the box <527>.
    Please suggest a way to use statement like this <527>
    Thanks,
    Rajan

    Try it as shown below for drawing dynamic boxes.
    Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
    /E TAB
    /: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
    /: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '3.9' CM
    /: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '11.2' CM
    /: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '14' CM
    /: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '16.6' CM
    /: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW
    P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
    the driver program's piece of code.
    LOOP AT it_vbap INTO x_vbap.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'TAB'
    window = 'MAIN'
    EXCEPTIONS
    element = 1
    function = 2
    type = 3
    unopened = 4
    unstarted = 5
    window = 6
    bad_pageformat_for_print = 7
    spool_error = 8
    codepage = 9
    OTHERS = 10.
    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.
    Regards,
    SaiRam

  • Main window Boxes and text alignment

    Dear all,
    please  correct me .........i am displaying line items (materials) with their material code,description,quantity etc in the main window of a invoice.now my requirement is i have to create boxes and display each field in a box in main window,and  in each box the field value or text shud be aligned properly.......means it shud not cross the box.
    for this im following dis sequence .
    1. box command (for creating boxes)
    2. protect....end protect ......in between the heading and value to be populated
    i ve executed but iam able to display only 1 line item.please correct me

    quite a difficult task.
    At first you need either items of fixed height, or you need to create those boxes dynamically. Since you dont know how much items will get printed you need to create them half dynamically anyway.
    I´d strongly recommend you to do this is SMARTFORMS rather than in sap-script. Cause smartforms got the tools for such tasks, and makes it quite easy while in SAP-SCRIPT it is one of the hardest requirements to come by.

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

  • 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

Maybe you are looking for

  • BATTERY LIFE IS HORRIBLE

    I was wondering if I was the only one with this issue. I mean I charged the phone last night. Browsed through the internet like 6 sites less than 30 minutes on all of them on my WIFI not even edge. did 2 calls totalling 20 minutes through out the day

  • How to delete a "double" contact list

    For a mistake I imported the contact list of a friend in my iPhone 3gs. Now in contact list as "all in the PC" i've his 500 contacts. I can't delete one by one (i spend too much time), I try it by iTunes or other way but i didn't find a solution... S

  • Date Object Issue in WebI

    Hello All, Currently I am facing an issue with Date Object in WebI. The data type of this specific object in Oracle (11g) is TimeStamp. If I use this object as one of the query filters in my report, I get "ORA-01843: not a valid month" error. I tried

  • Why do all the windows open when i start my mac book pro up

    After closing all the windows on my macbook pro , i shut the computer down, on re-starting the computer it opens all the wuindows up again any ideas why ?

  • Audio Output, High kernel_task CPU usage, Jumpy Mouse, Laggy/Jerky System

    http://discussions.apple.com/message.jspa?messageID=8670204 http://discussions.apple.com/message.jspa?messageID=8670132 http://discussions.apple.com/message.jspa?messageID=8670131 http://discussions.apple.com/message.jspa?messageID=8670030 http://dis