cancel
Showing results for 
Search instead for 
Did you mean: 

creating a table in a sapscript

Former Member
0 Kudos

How can I create lines of a table form in SAPScript? I'm using &VLINE& &ULINE& manually inserted in the editor and hard to align.

Points for the helpful ideas. Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

u can use box command for the same.

Answers (3)

Answers (3)

Former Member
0 Kudos

I'm done with the box and the data are already aligned. Now, I'm trying to include horizontal lines on each record..like a table that has borders on each coloumn and row.

This the code that I'm using, each record has a line.

/: BOX XPOS 0 CM YPOS '0.45' CM WIDTH 108 CH HEIGHT 0 CH FRAME 10 TW

/: BOX XPOS 0 CM YPOS '0.9' CM WIDTH 108 CH HEIGHT 0 CH FRAME 10 TW

/: BOX XPOS 0 CM YPOS '1.35' CM WIDTH 108 CH HEIGHT 0 CH FRAME 10 TW

But not all records are fitted. I need to adjust each line so the line won't overlap the text. Is there other way? It's very time consuming.

Former Member
0 Kudos

Hi

use BOX command as below

Eg:

BOX YPOS '2' LN WIDTH '10' CM HEGIHT '0' CM FRAME '10' TW

Here YPOS means the position of Y axis and the width and height of the line. Frame 10 TW mwans the thickness of the line.

like this way call inside the window and draw the box or line in ur script.

Former Member
0 Kudos

thanks guys! i'm experimenting on it. but can't find the other angle of the box.

/: BOX XPOS 1 CH YPOS 1 IN WIDTH 20 CM HEIGHT 0 CM FRAME 10 TW

/: BOX XPOS 1 IN YPOS 1 IN WIDTH 0 CM HEIGHT 5 CM FRAME 10 TW

PH Company: &lt_header-ccode& &lt_header-cctxt&,,Material Slip/Delivery

Note:&lt_header-deltx&

PH Material Document No: &lt_header-matdn&,,Cost Center: &lt_header-costc&

PH Movement Type: &lt_header-mvtyp& &lt_header-mttxt&,,Plant

= &lt_header-plant& '/' lt_header-pltxt

PH Issued By: &lt_header-isdby&,,Storage Location: &lt_header-stloc&

&lt_header-sltxt&

PH Document Date: &lt_header-docdt&,,PO No: &lt_header-ponum&

PH Posting Date: &lt_header-postd&,,Page: &page&

PH Vendor: &lt_header-vendr& &lt_header-vname&

/: BOX XPOS 1 IN YPOS 1 IN WIDTH 0 CM HEIGHT 15 CM FRAME 10 TW

/: BOX XPOS 1 IN YPOS 1 IN WIDTH 0 CM HEIGHT 15 CM FRAME 10 TW

Former Member
0 Kudos

i want to put the title or the data inside the box.

Former Member
0 Kudos

Hi,

try these steps

1. write -


2. write headings with '|' at start and end as well as the field separator.

3. write -


4. similar to step two write the data with pipe separators.

5. write -


or u can use --

You can use <b>BOX</b> command :

For eg,

<b>/: BOX WIDTH '10' CM HEIGHT 1 CM FRAME 10 TW</b>

Regards

pankaj singh

p.s - use the tab position correctly in your paragraph format.