Skip to Content
0
Former Member
Mar 13, 2007 at 09:51 AM

SAPScript box drawing

113 Views

Hi Guys,

I'm facing difficulties on drawing a box with records in SAPScript. Im using below for box drawing:

1. Draw main box

/: BOX WIDTH 280 MM HEIGHT 130 MM FRAME 10 TW

2. Draw vertical line to separate each different COLUMN

/: BOX XPOS 15 CH WIDTH 0 CH HEIGHT 130 MM FRAME 10 TW

3. Draw <b>horizontal line</b> to separate each different RECORD

/: BOX YPOS 4 CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW

Problems:

1. For drawing <b>horizontal line</b> to seprate each record, basically i fix a static incremental counter for YPOS xxx CH.

For eg:

1st line -> /: BOX YPOS <b>4</b> CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW

2nd line -> /: BOX YPOS<b> 6</b> CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW

3rd line -> /: BOX YPOS <b>8</b> CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW

... and so on, until the end of the box

The output LINE for first few records still ok, but for the rest it is <b>overlapping</b> with the records.

---> Please comment the right way to overcome above.

2. The code for drawing horizontal line is a lot, is there a better to perform the drawing?

-


> Please comment

Thanks in advance.