03-07-2009 6:22 AM
hi Gurus ,
How to draw a table in SAP Scripts in Main Window ?
Is there any Function Module available for this or any syntax is there ?
Give me Example code for this .
Regards
Vel
03-07-2009 7:44 AM
Hi,
You can use BOX, POSITION commands to achieve your requirements. [Check this.|http://help.sap.com/saphelp_46c/helpdata/en/d1/802ec5454211d189710000e8322d00/frameset.htm]
Regards,
~Satya
03-07-2009 7:44 AM
Hi,
You can use BOX, POSITION commands to achieve your requirements. [Check this.|http://help.sap.com/saphelp_46c/helpdata/en/d1/802ec5454211d189710000e8322d00/frameset.htm]
Regards,
~Satya
03-07-2009 11:04 AM
Hi..,
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.
Syntax:
1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
3. /: 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.
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)
.Units of measurement: The following units of measurement may be used:
u2022 TW (twip)
u2022 PT (point)
u2022 IN (inch)
u2022 MM (millimeter)
u2022 CM (centimeter)
u2022 LN (line)
u2022 CH (character).
The following conversion factors apply:
u2022 1 TW = 1/20 PT
u2022 1 PT = 1/72 IN
u2022 1 IN = 2.54 CM
u2022 1 CM = 10 MM
u2022 1 CH = height of a character relative to the CPI specification in the form header
u2022 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.
Hope this will u help u..
Regards,
Abaper
03-07-2009 11:36 AM
there is no function module available in SAP to draw a table in sapscript.
to draw a table use command BOX, the syntex is shown below.
/: BOX XPOS '1' CH YPOS '1' CH WIDTH '50' CH HEIGHT '2' LINE FRAME 10 TW
03-07-2009 2:49 PM
for a horizontal line we use &uline(len)& and use the element *