cancel
Showing results for 
Search instead for 
Did you mean: 

Draw a box inside main window

Former Member
0 Kudos

Hi,

I want to draw a box in main window but it should not begin with top left corner of main window also it should appear where my text lines of main window end.

Some times number of text lines may be 1 or next time it may be more than one so the origin of box should be taken dynamically.(means where the text lines end)

thanks

Amit Kumar Jain

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member673464
Active Contributor
0 Kudos

hi,

you have to use the BOX command in the SAPSCRIPT using which you can draw the table in script.

in the starting of the MAIN WINDOW draw a horizontal line and then display your vairables

in end again draw a horizontal line to close the table.

the height of the vertical line will the number of records in the internal table.

the vertical line can be drwan uisng

BOX XPOS 10 YPOS 20 width 0 CH hieght <rowcount> CH.

regards,

veeresh

Former Member
0 Kudos

Hi,

Go through following : Do not give height option .

for details refer http://help.sap.com/saphelp_erp2004/helpdata/EN/d1/803048454211d189710000e8322d00/frameset.htm

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)

Former Member
0 Kudos

Hi..,

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

/: SIZE WIDTH 4CM HEIGHT 40CM

/: BOX FRAME 10 TW

REGARDDS,

SAI RAMESH

marius_greeff
Active Participant
0 Kudos

Hi,

You can Use a table/complex section and define a single column and set the top offset. Untick the loop thru data on the data tab and Set the column pattern to that of a frame. With you text in the table it will dynamically adjust to your text.

Regards,

M