cancel
Showing results for 
Search instead for 
Did you mean: 

how to display Lines and Boxes in SAP Script

Former Member
0 Kudos

hi,

Can any one help me how to display Lines and Boxes in SAP Script.

Regards

kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can declare box in script with the following code in form

/: Box frame 10 tw intensity.

/: Box Xorigin '4' cm Yorigin '6' cm

/: Box Height '2' cm width '4' cm.

To declare lines in SAP-SCRIPT write the following code in form:

For ULINE declare in form

UL &ULINE(100)&

Hope this solve your issue

Regards,

Rajani

Answers (9)

Answers (9)

Former Member
0 Kudos
Former Member
0 Kudos

The SAP printer drivers based on page-oriented printers use these commands when creating output whereas the line printers and non-supported page-oriented printers ignore these commands.

Syntax:/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

This command draws a box of the specified size at the specified position.

The following calculation is performed internally to determine the absolute output position of a box on the page:

X(abs) = XORIGIN + XPOS

Y(abs) = YORIGIN + YPOS

WIDTH determines the width of the box.

Default: WIDTH value of the SIZE command.

HEIGHT determines height of the box.

Default: HEIGHT value of the SIZE command.

FRAME determines the thickness of frame.

Default: 0 (no frame).

INTENSITY determines the box contents as a grayscale percentage.

Default: 100 (full black)

The other details I guess is provided by friends who have posted before me.

Regards,

K.Sibi

Former Member
0 Kudos

Hi Nani,

To Draw a Box.

/:POSITION XORIGIN '1' CM YORIGIN '7' CM
/:SIZE WIDTH '1' CM HEIGHT '15' CM
/:BOX FRAME 10 TW

and line

/:POSITION XORIGIN '2' CM YORIGIN '4' CM
/:SIZE WIDTH '1' CM HEIGHT '0' CM
/:BOX FRAME 10 TW

You Need to adjust the X orgin and Y orgin Accordingly According with Width and Height

Hope this is help ful

Thanks

kalyan

Former Member
0 Kudos

Hi,

Do like this way....

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

also go through this link ..it is very useful to u..

[display lines and boxes|http://help.sap.com/saphelp_nw70/helpdata/EN/d1/802ec5454211d189710000e8322d00/frameset.htm]

Regards

Kiran

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

In the form in the command box write the command for box as

/: BOX WIDTH '10' CM HEIGHT 10 CM FRAME 10 TW INTENSITY 15

places a box.

/: BOX XPOS '10' CM WIDTH 0 TW HEIGHT '1' CM FRAME 10 TW

places a line.

Regards,

jaya

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.