Application Development and Automation 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: 
Read only

Sapscript

Former Member
0 Likes
1,242

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
Read only

Former Member
0 Likes
1,217

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
Read only

Former Member
0 Likes
1,217

Hi sinthu,

1. &uline(135)&

2. we can use the above code

where 135 = number of characters (for underline)

regards,

amit m.

Read only

Former Member
0 Likes
1,218

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

Read only

Former Member
0 Likes
1,217

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.

Read only

Former Member
0 Likes
1,217

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.

Read only

Former Member
0 Likes
1,217

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

Read only

Former Member
0 Likes
1,217

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.

Read only

0 Likes
1,217

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.

Read only

0 Likes
1,217

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

Read only

Former Member
0 Likes
1,217

Hi all,

Thanks a lot for u're responses..

Regards,

sinthu