03-25-2006 5:40 AM
Hi all,
In the sapscript, i need to draw a horizontal line starting from a particular position and end at the particular position. How will i do that.? Any help??
-sinthu
03-25-2006 5:47 AM
HI Sinthu,
you can certainly do it..
Use these commands..
1.
Box <xpos> <ypos> <width> <height> <frame> <intensity>
giving 0 as height drwas a straight line..
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.
2.
Position <xorigin> <yorigin> <window> <page>
POSITION command is used to set the x y co-ordinates with respect to the start position of the window
regards
satesh
03-25-2006 5:43 AM
Hi sinthu,
1. &uline(135)&
2. we can use the above code
where 135 = number of characters (for underline)
regards,
amit m.
03-25-2006 5:47 AM
HI Sinthu,
you can certainly do it..
Use these commands..
1.
Box <xpos> <ypos> <width> <height> <frame> <intensity>
giving 0 as height drwas a straight line..
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.
2.
Position <xorigin> <yorigin> <window> <page>
POSITION command is used to set the x y co-ordinates with respect to the start position of the window
regards
satesh
03-25-2006 5:53 AM
Hi Sinthu.
You can do so by using BOX command
Horizontal line
BOX XPOS -- CM YPOS -- CM WIDTH -- CM HEIGHT 0 CM FRAME 5 TW INTENSITY 1.
Vertical line
by making width 0 CM and of any height
Hope your query is solved.
If so, please award points.
Regards,
Sylendra.
03-25-2006 5:59 AM
i've writen the following code
BOX XPOS '12.0' CM YPOS '0.5' CM WIDTH '8' CM HEIGHT '4' CM FRAME 8 TW
Now, i want to increase the width by 8.5 and add intensity. but it is not allowing me to add in the pc editor. so, how will i continue that is in the next line.
03-25-2006 6:04 AM
Hi Sinthu,
You can do that
/: BOX XPOS 0 CM YPOS 1 CM WIDTH '20.5' CM HEIGHT 0 CM FRAME 5 TW
/: INTENSITY 1
Hope your query is solved.
Regards,
SYlendra
03-25-2006 6:17 AM
Hi sylendra,
in one line i have writen the following code
/: BOX XPOS '10.0' CM YPOS '0.5' CM WIDTH '10.5' CM HEIGHT '4' CM
And in the next line i wrote
/: frame 8 tw
when i run the program. the box itself is not getting displayed.
When I write WIDTH '10' cm and write the code in the same line, it's getting displayed.
03-25-2006 6:25 AM
Hi Sinthu,
Try this code
/: BOX XPOS 10 CM YPOS '0.5' CM WIDTH '10.5' CM HEIGHT '4' CM FRAME 8 TW
/: intensity 1
If you are specifying integer values, you need not have to giv it in quotes like '10' CM. 10 CM is enough.
Hope your query is solved.
If so, please award points.
Regards,
Sylendra.
03-25-2006 6:33 AM
HI Sinthu,
refer to this site..
<a href="http://www.henrikfrank.dk/abapexamples/SapScript/frames_lines_shading.htm">Lines and boxes</a>
you'll find all the possible ways to draw lines..
regards
satesh
03-25-2006 6:36 AM