Doubt in BOX command

Hi,
While defining the BOX command in script, is it necessary that we give the X and Y positions in aphostropies?
please comfirm.
Thanks

hi,
Yes it is necessary to draw a box.... here are all the possible ways to use it
/: 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 shadowing 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

Similar Messages

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

  • Creating tables in scrip with box command

    Hi,
    Can anyone plese explain how to create a table in sap scripts using box command.
    I need 3 coloumns in the main window.
    1.Description
    2.Currency
    3.Amount
    Thanks,
    Smriti

    hi
    this makes you clear about BOX
    [http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm|http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm]
    Regards
    Sajid

  • BOX Command in Smartforms

    Guyz,
    My situation is i have main window which is having 2 columns ...
    1st - invoice line item text
    2nd - invoice line item value
    requriement is i'll have to print a vertical line after the 1st column (inv line itemtext) which should draw through out the main window.
    Firstly - I tried with BOX Command (BOX XPOS 3.00 CM WIDTH 5.00 CM FRAME 10 TW) inside the MAIN Widnow and inside a text element which is not working to my surprise.  MAIN WINDOW  height = 11,80 cm width = 18,16 cm ...SO I'M SURE ABOVE BOX COMMAND SHOULD FIT INTO THIS WINDOW DIMENSIONS but nothing is being printed ?
    Secondly -- As i'm using internal table for priting whole MAIN Window i tried using patterns (framed pattern having one line after first column)... initial look at this pattern made me happier but to my disappointment it didn't work i.e., though it's pritning vertical line it's not printing through out the main window. Say if we have just one row to print vertical line just spans the first row but I WANT VERTICAL LINE TO BE PRINTED THROUGH OUT THE MAIN WINDOW.
    Any suggestions pls ?
    Thanks in advance
    SK

    Sreedhar,
    In SMART Forms you cannot have a line / box unless there is a element.
    What you can do is CREATE a TEMPLATE object and select the pattern. But with template and TABLE inside that formatting of the data will be difficult.
    This link might be useful for you.
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    See the demo programs and smartforms SF_EXAMPLE_*
    Regards,
    Ravi
    Note : PLease mark the helpful answers

  • Sap Script - putting dynamic height value in box command

    Hello All,
    In SAP scirpt I have to display a table which might have variable number of line items. So in box command I cannot mention the height statically.
    Is it possible to specify that dynamically like by using a variable and incrementing it every time the element is called from the loop?
    Thanks
    Indrajit

    no in SAP-SCRIPT this aint possible. But you could do this in an external perform, and have your incremented value back, tho since a external perform is beeing called from the form, the box statement might already have been interpreted.
    this again would mean that this way wouldnt work as well then.

  • Where do we find a box command in sap script

    Hai,
    where do we find a box command in sap script, how to create box command ,
    its urgent help out

    Hi
    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
    Regards
    anji

  • BOX command does not print vertical/horizontal lines in SAP Script

    Dear all,
    in sap script we are using the BOX command to draw some boxes. DUring the print preview, all the boxes look
    just fine including horizontal and vertial lines. But, when we print the output, I get the output minus
    the vertical lines and some horizontal lines.
    Regards,
    rukku
    Edited by: Rukmangada Reddy Ramala on Mar 23, 2010 2:23 PM

    Hi rukku,
    Which device type are you using?
    Please have a look at SAP notes:
    77976, 19807 and 183948.
    Regards,
    David

  • 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

  • INTENSITY  attribute in BOX command

    HI FRIENDS..
    can u tel me..
    what is the purpose of INTENSITY  attribute in BOX command..?
    and also..
    in sapscript i created one table using BOX statement but it show box with gray background, think is ....
    i don't want that gray background..
    what to do ?

    Hi
    Intensity is the Grayscale of box contents as %.
    see the doc related to boxes and do accordingly
    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
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Scripts - BOX Command

    HI all,
    I have  main window in my script. I have some text which will be written at the bottom of the main window using bottom and endbottom command. Now I want a box around this text. Can anyone explain how do I write my box command.
    Regards,
    Varun.

    You can also create a window just for your box, and have some of this code.
    /*   The top line                                       
    /:   POSITION PAGE                                      
    /*   First horozontal line                              
    /:   POSITION XORIGIN '1.0' CH YORIGIN '24.0' LN        
    /:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                 
    /:   BOX HEIGHT '1.5' LN INTENSITY 10                   
    /:   BOX FRAME 10 TW                                    
    /*   Second horozontal line                             
    /:   POSITION PAGE                                      
    /:   POSITION XORIGIN '1.0' CH YORIGIN '25.5' LN        
    /:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                 
    /:   BOX FRAME 10 TW                                    
    /*   Bottom of Code Box                                 
    /*   POSITION PAGE                                      
    /*   POSITION XORIGIN '1.0' CH YORIGIN '51.0' LN        
    /*   SIZE WIDTH '79.0' CH HEIGHT '0' LN                 
    /*   BOX FRAME 10 TW                                    
    /*   The 1st vertical line                              
    /:   POSITION PAGE                                      
    /:   POSITION XORIGIN '1.0' CH YORIGIN '24.0' LN        
    /:   SIZE WIDTH '0' CH HEIGHT '41.0' LN                 
    /:   BOX FRAME 10 TW                                    
    /*   The 2nd vertical line                              
    /:   POSITION PAGE                                      
    /:   POSITION XORIGIN '20.0' CH YORIGIN '24.0' LN       
    /:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                 
    /:   BOX FRAME 10 TW  
    /*   The 3th vertical line                                       
    /:   POSITION PAGE                                               
    /:   POSITION XORIGIN '40.0' CH YORIGIN '24.0' LN                
    /:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                          
    /:   BOX FRAME 10 TW                                             
    /*   The 4th vertical line                                       
    /:   POSITION PAGE                                               
    /:   POSITION XORIGIN '60.0' CH YORIGIN '24.0' LN                
    /:   SIZE WIDTH '0' CH HEIGHT '33.0' LN                          
    /:   BOX FRAME 10 TW                                             
    /*   The 5th vertical line                                       
    /:   POSITION PAGE                                               
    /:   POSITION XORIGIN '80.0' CH YORIGIN '24.0' LN                
    /:   SIZE WIDTH '0' CH HEIGHT '41.0' LN                          
    /:   BOX FRAME 10 TW                                             
    /*   Top of signature Box                                        
    /:   POSITION PAGE                                               
    /:   POSITION XORIGIN '1.0' CH YORIGIN '57.0' LN                 
    /:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                          
    /:   BOX FRAME 10 TW                                             
    /*   Bottom of signature Box                                     
    /:   POSITION PAGE                                               
    /:   POSITION XORIGIN '1.0' CH YORIGIN '65.0' LN                 
    /:   SIZE WIDTH '79.0' CH HEIGHT '0' LN                          
    /:   BOX FRAME 10 TW                                                                               
    Regards,
    Rich Heilman

  • Clarification on Box Command

    Hi,
                      I've created 2 pages in my script.In the first page i've useed BOX command & also a Standard Text for the column headings in the Main window.When the first page is overflown,obviously it is displaying the remaining records in the second page.But, the Box command & the Standard text are not getting executed.
                 i.e. the records in the second page r not getting displayed in the BOX & the column headings (which r defined using Standard text)  also not getting displayed...........
    Plz help me.

    where u have writeen u r BOX and Stan. text. obviously in the main window.
    u might have written them using a seperate /:E element and calling only once in the program.
    i.e. u might have called BOX element and Text before the loop which are not over flowing to second page where as items element is in a loop and getting flown to next page.
    write BOX data with in the /:E of items and if you want Headings on all pages u have to trigger it conditionally.
    Suresh

  • SAPSCRIPTS - BOX COMMAND.

    Hi ,
    I hava script in which i am supposed to print an internal table.
    now. the script is designed in such a way that on first page the main window starts at line 17 of the page and on second page the main window starts at line no 7.
    i ma printing my internal table in the main window. i am ussing box command to get a tabular look n feel . on first page the y pos of the box is set to 18 LN. n its gettin printed properly.
    till first 15 records the data gets printed on first page but if the records in the internal table are more than 15 then then the output continues to second screen.
    now while setting the ypos how should  set the value? how exatly i am supposed to count the value to set for the y pos? when we say BOX ypos 7 LN dose it mean set ypos  at line 7 from upword direction? n line of the window or line 7 of the page?

    Hi
    See this and use accordingly
    SAPScripts
    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
    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.
    <REMOVED BY MODERATOR>
    Regards
    Anji
    Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:59 AM

  • Usage of intensity in BOX command in Scripts

    Hi all
    How to set INTENSITY property to a particular box?
    Except this syntax,
    BOX XPOS 44 CH YPOS 2 CH HEIGHT '8.2' CH WIDTH 29 CH FRAME 3 TW iINTENSITY 12.
    Because this statement is not fitting in a line.
    Inorder to fit this statement in a single line i have used command line, line feed, extended line and continuous text.
    Even though output is not getting displayed.
    Please reply it soon...

    Hi all
    How to set INTENSITY property to a particular box?
    Except this syntax,
    BOX XPOS 44 CH YPOS 2 CH HEIGHT '8.2' CH WIDTH 29 CH FRAME 3 TW iINTENSITY 12.
    Because this statement is not fitting in a line.
    Inorder to fit this statement in a single line i have used command line, line feed, extended line and continuous text.
    Even though output is not getting displayed.
    Please reply it soon...

  • System.out  View Console via Unix box/ Command Line

    I am dumping messages to System.out. When I package it and run it as a service, I can drop this to an out file. When I just run the jar file from the windows command line or from a Unix box it runs silently. Is there a way to have the System.out dropped to a file in this scenario or better yet shown on screen?
    Once I run the jar file how do I kill it without killing the process?
    Thanks

    Fanbladeus02 wrote:
    "Killing a jar file..." I don't want to kill the Jar file itself, but I do want to stop it from running after I launch it.Then you mean you want to kill the process which is using the jar file.
    >
    Example from my unix prompt I do something like this:
    java -jar -classpath </home/user/jarprog/> /home/user/jarprog/JARPROG.jar jarprog.Main.java
    I don't see any output, it just drops to the next open prompt. This means the program has finished. It could have started another one which does the real work, but you have no control over it.
    I assume java is still running my jar file somewhere. (My first thought was) That is very unlikely unless the writers of the code have gone to great lengths to hide another running process from you. (But reading further this appears to be the case)
    How do I stop it? Find the process with "ps" and send it a kill signal.
    Once I start the program how do I interact with it to stop it?ctrl-C, but you cannot kill it after the prompt has returned because its not running any more. (it started another process and then bailed)
    Similiarly in Windows, I run it from the command line it drops to the next "c:\". I look in task manager and see java running. It appears your program starts another java process in the background.
    I look in the database that it is updating and the records are flying in. If I end the process, the records stop flying in (DUH). Again how do I interact with it to gracefully end the process?It appears that whoever wrote the program has gone to some lengths to prevent you from doing that. I would ask them.

  • Relating to box command in script.

    can i get the method to write text inside the box in scripts

    Refer this link:
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    Regrds,
    Ravi

Maybe you are looking for

  • How do I find out that Overflow is being used

    We have configured Overflow for one of our Caches using bdb. I have a few questions with regard to the overflow scheme 1. How do I test that Overflow is being used indeed ? 2. Where does bdb store its data, is it on the file system or in memory ? Is

  • Final Cut Pro X not completing export to blue ray

    Running Final Cut Pro 10.1.2, OS 10.9.4, Macbook pro I7 2.3 ghz, 16gig ram...  I can export a short sequence to blue ray from Final Cut Pro X and it works.  I have a 41 minute video that when I "share" to Blue Ray it will burn about 6-7 minutes of th

  • Dial with country code as prefix won't work

    Hey The Sony Z1 latest ROM have the issue, it can't dial when the phone number don't have + before the country code.

  • Your Opinion Counts

    Do you believe that content with opinion makes a site interesting? That is, content with a view of the right and the wrong way to do things; for example, developing Web Services. Or do you think it's a distraction? Tell us what you think and why. Bes

  • Access Long Integer

    I need to query a Long Integer from my app. I have tried using int and long but with no luck. I get a type mismatch every time it tries to execute. This does not work                     StringTokenizer st = new StringTokenizer(results.getSelectedVal