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

boxes in sapscript

Former Member
0 Likes
1,443

hi,

I have created one window. This window should like one box. How can i design this as box. Please help me

7 REPLIES 7
Read only

amit_khare
Active Contributor
0 Likes
1,109

use BOX command.

somewhat like this -

/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM

/: SIZE HEIGHT '2' MM WIDTH '76' MM

/: BOX FRAME 10 TW INTENSITY 10

Regards,

Amit

Read only

Former Member
0 Likes
1,109

hi,

use this code,

BOX BOUNDARY

/: BOX WIDTH '100' MM HEIGHT '150' MM FRAME 10 TW

FOR INTENSITY DO,

/: BOX WIDTH '100' MM HEIGHT '150' MM FRAME 10 TW INTENSITY 10

  • FOR * FOR VERTICAL LINE*

/: BOX XPOS '11' MM WIDTH 0 TW HEIGHT '72' MM FRAME 5 TW

  • FOR HORIZONTAL LINE*

/: BOX YPOS '11' MM WIDTH '72' mm HEIGHT 0 TW FRAME 5 TW

<REMOVED BY MODERATOR>

ROhan

Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:54 AM

Read only

Former Member
0 Likes
1,109

Hi,

BOX

Draws a box

Syntax:

/: BOX <xpos> <ypos> <width> <height> <frame> <intensity>

The intensity is the grey scale of the box as %. The frame parameters is the thickness of the frame. Default is 0.

Each of the paramteters ypos, xpos, width, height and frame muts be followed of the measurement unit:

TW (twip)

PT (point)

IN (inch)

MM (millimeter)

CM (centimeter)

LN (line)

CH (character).

Examples:

/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

/: 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.

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,109

Hi,

Use 'BOX' statement for printing the data in a box for scripts.

The following syntax will help you on this.

/: BOX <xpos> <ypos> <width> <height> <frame> <intensity>

Read only

Former Member
0 Likes
1,109

hi;

you can make boxes with the help of this code

/: POSITION XORIGIN ' 8' YORIGIN '4' MM

/: SIZE HEIGHT '3' MM WIDTH ' 80' MM

/: BOX FRAME 9 TW INTENSITY 9

hope it will help you a lot

Read only

Former Member
0 Likes
1,109

Hi hima,

IN sap script for creating box following commands are useful :

/: POSITION XORIGIN '12.50' YORIGIN '4.32' MM

/: SIZE HEIGHT '2.5' MM WIDTH '85' MM

/: BOX FRAME 15 TW INTENSITY 8

you can change the size by varing the numeric values according to your requirnment.

i hope it it will be helpful.

regards

Saurabh

Read only

Former Member
0 Likes
1,109

hi Hima,

The box creation syntax is as follows:

Syntax:

/: BOX <xpos> <ypos> <width> <height> <frame> <intensity>

The intensity is the grey scale of the box as %. The frame parameters is the thickness of the frame. Default is 0.

IN sap script for creating box following commands are useful :

/: POSITION XORIGIN '11.00' YORIGIN '4.32' MM

/: SIZE HEIGHT '5.0' MM WIDTH '8' MM

/: BOX FRAME 5 TW INTENSITY 18

The size can be changed according to the requirements.

Please award if useful...

Thanks,

Manish Gupta