Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

Hi sinthu,

1. &uline(135)&

2. we can use the above code

where 135 = number of characters (for underline)

regards,

amit m.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

Hi all,

Thanks a lot for u're responses..

Regards,

sinthu