on 04-10-2007 1:17 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.