Skip to Content
avatar image
Former Member

Table format in SAP SCRIPT

Hi,

Could any one of you please tell me how to print the data in table format in SAP script.

Regards,

Sooraj.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 19, 2006 at 11:19 AM

    Hi

    U have to design a box using the statament BOX, POSITION and SIZE (see the help for more details):

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

    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]

    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2006 at 11:19 AM

    hi,

    Like smartform there is no option for draw table directly in sap script.

    u have to draw table using line or box.

    Try and check on the below logic....

    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 this.

    You can use BOX command :

    For eg,

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

    Regards

    Anver

    <b><i>

    if hlped pls mark points</i></b>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 20, 2006 at 03:57 AM

    Hello,

    TO print data in the table follow the following procedure.

    1.The text element for data should be executed first.

    /e data

    -


    2.The text element for the box should be executed

    /e box

    /: BOX XPOS '0' CM WIDTH '18.5' CM HEIGHT &G_F_COUNT20& CM FRAME 2tw

    follow the above procedure and let me know if u face any problem.

    Regards

    Add comment
    10|10000 characters needed characters exceeded