‎2006 Jun 20 5:34 AM
Hi friends,
I have created a sapscript, in which I need a box. The window attributes are as follows :
Left Margin = 0 CM
Upper Margin = 7 CM
Window Width = 20 CM
Window Height = 1 CM
In the Window I want to draw box for the following as shown below.
______________________________________________________
MATL-CD DESCRIPTION QTY RATE AMOUNT | ______________________________________________________ |
I have tried as following, but not working.
/: POSITION XORIGIN 0 CM YORIGIN 1 CM
/: BOX XPOS 0 CM YPOS 1 CM WIDTH 20 CM HEIGHT 1CM FRAME
P1 MATL-CD DESCRIPTION QTY RATE AMOUNT
Kindly guide me with the exact postioning of the box.
Thanks in advance.
Mark K
‎2006 Jun 20 5:41 AM
Hi MARK,
The position of window is with respect to page. So give
the box command as below,
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME
P1 MATL-CD DESCRIPTION QTY RATE AMOUNT
U need to adjust this box according to ur window measurements.
‎2006 Jun 20 5:40 AM
Mark,,
See the comments for lines in Script, You can use those for drawing boxes.
use below for horiizontal line
/: POSITION XORIGIN '2.0' CH YORIGIN '60.2' LN
/: SIZE WIDTH '75.0' CH HEIGHT '0' LN
/: BOX FRAME 10 TW
use below for vertical line.
/: POSITION XORIGIN '2.0' CH YORIGIN '60.2' LN
/: SIZE WIDTH '75.0' CH HEIGHT '0' LN
/: BOX FRAME 10 TW
rgds,
TM.
Please mark points if helpful.
‎2006 Jun 20 5:41 AM
Hi MARK,
The position of window is with respect to page. So give
the box command as below,
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME
P1 MATL-CD DESCRIPTION QTY RATE AMOUNT
U need to adjust this box according to ur window measurements.
‎2006 Jun 20 5:44 AM
<b>ur use....</b>/: BOX XPOS 1 CM YPOS 7.2 CM WIDTH 18 CM HEIGHT .6 CM FRAME
P1 MATL-CD DESCRIPTION QTY RATE AMOUNT
<b>more details...</b>
/: 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
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
BOX XPOS 10 YPOS 20 width 0 CH hieght <rowcount> CH
‎2006 Jun 20 5:49 AM
Hi Mark,
Put all your height and width in the single quote.After that try to check the layout.
Regards,
Mukesh kumar
‎2006 Jun 20 5:53 AM
Hi Mark,
Try this command in SAP script,
/: BOX XPOS 1 CM YPOS 0 CM WIDTH 18 CM HEIGHT '0.75' CM
FRAME 10 TW
P1 MATL-CD DESCRIPTION QTY RATE AMOUNT
If found helpful, please do reward.