Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

script_!

Former Member
0 Kudos

hi,

how to create box for my invoice info window (, name, city...)

in sap script , and beckround grey.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Nick,

BOX: This commands is used for drawing boxes and are used only during creating output.

Syntax:

/: BOX [Xpos] [Ypos] [Width] [Height] [Frame] [Intensive]

X & Y – Upper left corner of the box.

Width – Width of the box

Ht – Height of the box

Frame – Thickness of the box (Default is full black)

Units used for Width, Height and Thickness are TW, PT, IN, CM, CH, LN.

<b>INTENSIFY attribute of BOX command will brings you background color for you. Specify a number between 1 - 100 to this.</b>

/: BOX WIDTH ‘20’ CM HEIGHT 1 IN

FRAME 10 TW <b>INTENSIFY 15</b>.

Thanks,

Vinay

5 REPLIES 5

Former Member
0 Kudos

Hello ,

U have to use box command

example:

BOX XPOS '5.6' CM WIDTH '0' CM HEIGHT &15& CM FRAME 2 TW

XPOS:X axixs of box

YPOS:Y axixs of box

Height:Height of the box

Width:Width of the box

Use it and if face any problem let me know.

Regards

Former Member
0 Kudos

hi,

To draw a box to entire window, no need of specifying the width and height, just write the statement in the beginning of the editor for that window

/: box frame 2 tw intensity 10

Regards,

Sailaja.

Former Member
0 Kudos

Hi Nick,

BOX: This commands is used for drawing boxes and are used only during creating output.

Syntax:

/: BOX [Xpos] [Ypos] [Width] [Height] [Frame] [Intensive]

X & Y – Upper left corner of the box.

Width – Width of the box

Ht – Height of the box

Frame – Thickness of the box (Default is full black)

Units used for Width, Height and Thickness are TW, PT, IN, CM, CH, LN.

<b>INTENSIFY attribute of BOX command will brings you background color for you. Specify a number between 1 - 100 to this.</b>

/: BOX WIDTH ‘20’ CM HEIGHT 1 IN

FRAME 10 TW <b>INTENSIFY 15</b>.

Thanks,

Vinay

Former Member
0 Kudos

HI,

use BOX command as follows

BOX YPOS '1.0' CM WIDTH '85.0' CH HEIGHT '4.0' CM FRAME 10 TW

Regards

amole

Former Member
0 Kudos

Hi,

You need to you BOX command for this one

<b>Box <xpos> <ypos> <width> <height> <frame> <intensity></b>

The BOX command draws a box as per the specifications. The x y co-ordinates are for the upper left corner relative to the values in the position command

<b>BOX Command</b>

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

<b>/: BOX INTENSITY 10

Fills the window background with shading having a gray scale of 10 %.</b>

/: 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.

REgards

Sudheer1