Skip to Content
avatar image
Former Member

creating a table in a sapscript

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 11, 2006 at 05:29 AM

    u can use box command for the same.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 11, 2006 at 05:32 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 11, 2006 at 05:33 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 13, 2006 at 07:24 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded