Box in sapscript

hi friends ,
In sapscript i want to draw the 8 horizontal lines and one vertical line
like that only i want to display the records in tabular form.
but when i put
BOX WIDTH '18.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 0
BOX WIDTH '18.5' CM HEIGHT '04.0' CM FRAME 10 TW INTENSITY 0
BOX XPOS '09.25' CM WIDTH 0 TW HEIGHT '04.0' CM FRAME 10 TW
BOX YPOS '1.8' CM WIDTH '18.5' TW HEIGHT '0.0' CM FRAME 10 TW
BOX YPOS '1.8' CM WIDTH '18.5' TW HEIGHT '0.0' CM FRAME 10 TW
BOX YPOS '2.3' CM WIDTH '18.5' TW HEIGHT '0.0' CM FRAME 10 TW
BOX YPOS '3.0' CM WIDTH '18.5' TW HEIGHT '0.0' CM FRAME 10 TW
BOX YPOS '3.8' CM WIDTH '18.5' TW HEIGHT '0.0' CM FRAME 10 TW.....
but the the horizontal line are not diplaying....
please tell me know it's happens...
point will be rewarded....
Thanks

Look at [SAPscript: Definition of borders, lines, and shading|http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/frameset.htm]
Regards

Similar Messages

  • Output a shaded box in SAPScript with Dot Matrix Printer

    Hi guys,
    Is there a way to print a shaded box in Sapscript using Dot matrix printer?
    BOX XPOS '4'CM YPOS '2.8'CM WIDTH '2'CM HEIGHT '0.4'CM FRAME 10 TW INTENSITY 100
    I tried the code as above but it wouldn't work, and doing a search on this forum tells me box command wouldn't work on dot matrix printer. So is there any alternative to do this?

    Hi
    if it is possible try to print the same in another printer and confirm the problem
    no doubt certain printers may create such problems while printing the output
    so to confirm the problem try with other printer.
    Reward points for useful Answers
    Regards
    Anji

  • How to print date in cheque box in sapscript??

    Hello Guru,
    We have developed or design new form for cheque printing in sapscript
    how to print date in cheque box in sap.
    1
    6
    1
    2
    2
    0
    1
    1
    thanks in advance.
    Thanks & Regards
    Richa

    hi,
    If your requirement is to display date with box,first create a Box by using following syntax
    *   &sy-datum&
    /:  BOX XPOS '0' CH YPOS '3.65' LN WIDTH '77.50' CH HEIGHT '4.5' LN FRAME '10' tw
    then adjust the box size according to your requirement by changing xpos,ypos,width and height
    with regards
    Edited by: naresh bammidi on Dec 16, 2011 8:00 AM

  • Box in SAPscript-Help Needed.

    Hi ,
        I want to make a box in script which it shud not hav any columns or rows. The box shud hav 4 lines of contents withan font of 10. Also i want to split the box in the centre. Kindly give some piece of code for it. It shud be helpful to me.
        Also is ther any way to assign the SAPscript windows only on last page  or windows only on first page option (i.e) option like in smartforms.
    Thanks and regards,
    Karthik

    Hi,
    It is very easy to create any BOX in script, Below is the command for same,
    Create Boxes in the SAPscript using the BOX command specifying
    the x,y co-ordinates and the width and the height
    /: BOX XPOS '0' CM YPOS '0.5' CM WIDTH '9.2' CM HEIGHT '3.5' CM FRAME 8 TW
    Try with this I know handle a BOX is difficult.
    2. You can create a Static Window and can call it on Last Page.. I will work..
    Edited by: Lokesh Tarey on Jul 30, 2010 8:23 AM

  • Dynamic BOX in sapscript

    Hi,
    I am using the BOX control command in SapScript.
    Is it possible to assign the values of Xpos and Ypos
    dynamicalliy.
    In BOX XPOS 16 CH WIDTH 0 MM HEIGHT 18 MM FRAME 10 TW,
    i want to assign the values at runtime, instead of
    xpos 16 , something like Xpos Var, where var contain the value of xposition.
    or any other method to print dynamic box in sap script

    Hi
    yes it is possible
    see this
    SAPScripts
    POSITION WINDOW
    SIZE WIDTH '160' MM HEIGHT '140' MM
    BOX FRAME 10 TW
    Box
    BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
    linessssssss
    BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    Reward points for useful Answers
    Regards
    Anji

  • Rounded/curved edge/corner in page window frame/box of SAPscript

    Hello,
    Can anyone tell me whether SAP ECC6.0 has any functionality which allows a page window frame/box within a SAPscript form to have rounded/curved corners for the rectangular shape?.
    I have reviewed various documentation and forum posts, sap notes etc. but none of them even bothered to mention or explain this. Other forum posts I have seen re this topic simply said it was not possible but I hope for a more explanatory answer than that.
    It wouldn't appear to be a big ask for a form to have boxes of different shapes rather than just hard straight lines and edges but perhaps SAP have some reasoning for it which I've not seen.
    Appreciate if someone out there can elaborate about this and what alternatives there would be, for example could we upload a graphic of a rounded edge box and then place text over that?.
    Thanks in advance,
    Michael

    Thanks but my question is applicable for Smartforms too. I know SAPscript is OLD and new forms should be developed with Smartforms but at the moment we are tweaking some exisitng SAPscripts and when time permits at a future point we will move to Smartforms.
    To other people out there, do you know if there is functionality in either SAPscript or Smartforms to apply Rounded/curved edges/corners in page window frames/boxes?.
    Thanks.

  • How to draw a dynamic box in sapscript?

    Hello experts,
    I am currently facing a problem wherein in the main window I have multiple line items. What I want to do is that for every new line item, I would draw a box and so on...for example:
    BOX 1
    BOX 2
    BOX 3
    Here is the attributes of the main window where I would like the boxes to be drawn:
    MAIN    00 Main window                    2,00 CH  15,00 LN  78,00 CH  30,00 LN

    hi vijay please try out this code,
    u have to keep all the code as single text element,
    POSITION XORIGIN 2 CM YORIGIN +9 MM
    " the next  two ines will dra a box
    SIZE WIDTH 180 MM HEIGHT 40 MM
    BOX FRAME 30 TW
    OSITION XORIGIN 2 CM YORIGIN +9 MM
    SIZE WIDTH 180 MM HEIGHT 0 MM
    BOX FRAME 30 TW
    POSITION XORIGIN 2 CM YORIGIN +12 MM
    SIZE WIDTH 180 MM HEIGHT 0 MM
    BOX FRAME 30 TW
    POSITION XORIGIN 8 CM YORIGIN -21 MM
    SIZE WIDTH 0 MM HEIGHT 40 MM
    BOX FRAME 30 TW
    POSITION XORIGIN 2 CM YORIGIN +43 MM

  • How to print inside a box in sapscript

    Hi,
    I've created a box in sap script. when i try to print something inside it....it either prints above or below the box and not inside it...
    any suggestions will be appreciated.
    Thanks.

    Hello,
    Printing the text in the box is some what Trial and error method.
    I have faced the similar problem, what I have done is first i have displayed the data I want and then displayed box .
    If u want I can help u further make urself clear and maile me.
    Regards

  • Chinese Characters Printing as Boxes in SAPscript

    Issue...why would a Chinese standard text print fine using the "INCLUDE" method, but output as boxes when that same Chinese standard text is retrieved successfully using the "PERFORM" method?
    Summary...I am currently experiencing problems printing Chinese characters on a custom SAP Script form. This does not appear to be an issue with printer setup or font selection, as I am able to get the Chinese characters to appear depending on the method I use. The problem occurs when I execute a "PERFORM" within the SAP script to retrieve the Chinese standard text, the results are displayed as boxes. If I "INCLUDE" the standard text directly within the SAP script, the Chinese standard text prints without issue. I have executed the SAP script in debug mode and the Chinese text is being retrieved from the "PERFORM" statement as expected, but just does not display correctly as it does by using the "INCLUDE" approach. I'm trying to understand why the two approaches would not both work in the same manner. We are on a UNICODE system.
    Though we may be able to use the "INCLUDE" method in a majority of places, we are interested in using the function "ADDRESS_INTO_PRINTFORM" for printing addresses. This would require passing values back to the SAP script line by line.
    Below is a simplified version of the two methods...
    (PRINTS CHINESE CHARACTERS AS EXPECTED)
    INCLUDE 'ZADDRESS_LINE1' OBJECT 'TEXT' ID 'ST' LANGUAGE &NAST-SPRAS& PARAGRAPH IG
    (RESULTS IN BOXES BEING PRINTED)
    PERFROM GET_TEXT IN PROGRAM ZGET_CHINESE_TEXT
    USING &NAST-SPRAS&
    CHANGING &ADDRESS_LINE1&
    ENDPERFORM.
    &ADDRESS_LINE1&
    (&ADDRESS_LINE1& contains Chinese characters as expected when debugging SAP script)
    FORM GET_TEXT TABLE PT_IN STRUCTURE ITCSY
    PT_OUT STRUCTURE ITCSY
    ...USE FUNCTION 'READ_TEXT' TO RETRIEVE CHINESE TEXT FROM ZADDRESS_LINE1 STANDARD TEXT (works as expected)
    read table pt_out index 1.
    move ADDRESS_LINE1 to pt_out-value.
    modify pt_out index 1.
    (PT_OUT table is populated with chinese text as expected)
    ENDFORM.

    Language for form is 'ZH'.
    To clarify the original post, the standard text is being retrieved correctly for both methods.  By this I mean that during debugging of the SAP script I can see the Chinese text as expected for both methods.  However, during print preview only the "INCLUDE" method displays correctly.  I have both methods included in my current script for the same standard text and the "INCLUDE" displays fine, but not the "PERFORM" method.
    Does the "CHANGING" parameter which is populated by the "PERFORM" need to be defined in a particular way?  Might there an issue with the TDSYMVALUE type that is used for storing the values retrieved from the "PERFORM"?

  • Write dynamic box using sapscript

    I would like to write two box layout. but each box layout are variants, so i can wirte a fixed height. how can i when the first box is finished, then close the bottom line, and the start to write second box and the close. Thanks!

    I would like to write two box layout. but each box layout are variants, so i can wirte a fixed height. how can i when the first box is finished, then close the bottom line, and the start to write second box and the close. Thanks!

  • How display a DATE IN BOXS IN SAPSCRIPT

    how display a DATE IN BOXS IN SAPSCRIPT

    use cal = Calendar.getInstance() to get the current date/time
    use cal.get(Calendar.DAY_OF_WEEK) to get what today is
    calculate n = days to next Thursday
    advance the calendar with cal.add(Calendar.DATE, n).

  • Printing Text between boxes in sapscript

    Hi Friend ,
    I have a invoice form . There is the adddress window , info window and the main window . I need to insert some text between the space between the MAIN window and the INFO window . Is there a way we can directly print text between Window or Do i need to create a new window ?? How can I go about this . I have already defined the text in SO10 transaction . I am using this command but dont know how to put it in the space between the infowindow and the main window . Please suggest .
    INCLUDE Z_text_insert  OBJECT TEXT ID ST LANGUAGE SP PARAGRAPH HP.
    Thank you ,
    Hari
    Message was edited by:
            Hari G Krishna

    Ya u have to insert a  window between the two windows.Any text to be printed should be in window.
    Check and let me know if u face any problem.
    Regards

  • SAPscript - Dynamic box position and height.

    Greetings...
    How to print dynamic box according to the Element. I have an element with looping condition when i used box the line only printed on the first loop, but and no line printed on the next looping even though its is  different element.. Below is the sneak peak of my code.
    /E 101
    /:   BOX WIDTH 0 MM HEIGHT '2' MM FRAME 20 TW
    /:   POSITION YORIGIN '+2' MM
    W2   <B>&text&</><B>,,&zvalue&</>
    Thank you

    Hi
    it is very hard to print a dynamic box with sapscript.
    It is more easy to develop a new-smartform then to develop a dynamic box.
    i know only 1 sapscript which is using dynamic boxes. I do not know the sapscript only the fucntional name we use. That is shopfloor papers (for a production order). It has a good combination of printprogram and sapscript which both has to be working together to get it done. Try to find it and study it. Then you will find out how it works.
      There is no way to get it done with only changes in your sapscript.
    an alternative is to use tab's and '|' and ulines to make something that look a bit like boxes.
    Hope this will help you out.
    Gr., Frank

  • SAPscript - to print a checkbox

    HI ALL,
    I need to print a check box and a tick mark in the check box in SAPSCRIPT.Kindly send a sample code
    Thanks
    Points will be rewarded

    Hi,
    In window>textelements>insert>charecters>SAP SYMBOLS.
    There you click on the symbol what ever you want by placing the courser in text elements.
    I think it will not reflect in print preview but will come in raw copy.
    Thanks.
    If this helps you reward with points and close the thread.
    Message was edited by: KDeepak

  • SapScript Position

    Hi,
    I want to change the position of a BOX in sapscript. So I used the following commang
    /:   POSITION WINDOW
    /:   POSITION XORIGIN '-0.5' CM
    /:   BOX WIDTH '8.5' CM HEIGHT 5 CM FRAME 10 TW
    It works fine. I can really see that the BOX moved 0.5 cm on the left.
    The problem is that the paragraph didn't moved on left.
    So What i wrote in the BOX don't fit.
    hope it's clear
    thank you
    joseph

    Yeah I know that but i don't know what happening w/ this form I getting crazy!
    And it's hard to explain the problem by writting....:(
    But I will try:
    The original Form is HEBREW language so that mean that the form will be display from RIGHT to LEFT.
    The RIGHT margin is 0.5 CM.
    The second language of the is ENGLISH so the the form will be display from LEFT to RIGHT.
    I was excpected that left margin will be also 0.5 cm but no.
    Joseph

Maybe you are looking for

  • Forms 10.1.2.0.2 application with ie7 and Jvm 1.5_11 unstable.

    Hi, We are running a 10.1.2.0.2 forms application, using the sun jvm, version 1.5.0_11-b03 . Since we started using IE7, some users experience sudden "hangs" or a total crash of IE& + JVM when starting the application. A log file appears with the fol

  • My ipod touch wont turn on!!!help!

    Im using itouch 4th gen 8gb, its about 10months years old ( i still have warrantee) My itouch wont turn on, its screen is just black, so i thought it was DFU mode. I tried pressing home and power button. and eventhough i put usb on computer with i to

  • ERROR ITMS-9000 (again)

    Ok, I'm stumped. I see other have had this issue but, nothing seems to fix this. This isn't my first book on itunes, and I didn't have this problem last time. I'm exporting from Indesign CS6. Here is my error: Error Messages:                     Appl

  • What is the meaning of "(MM)" in ipad (4th generation) wifi   cellular (mm) ?

    What is the meaning of "(MM)" in ipad (4th generation) wifi   cellular (mm) ?

  • A Letter To People who Love charitable Career in the world

    Dear friends, First of all, there are some words in my blog: Dr.(knowing, professor, doctor, jinnee, manito, god, Manitou, meteorologist, scientist, Mr., Geographer, chemist, medical scientist, Dr, doctor, Financial Economist)YunFeng found prediction