Skip to Content
avatar image
Former Member

Designing tables in sapscripts

Hi,

my requirement is i have to desing a script

it contains two tables. which is of variable size.

that means in runtime they may get one entry or multiple entries.

can any one plz tell me how to desing tables in sap scripts with variable size.

Thanks & Regards

Nageshwar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 27, 2011 at 11:51 AM

    Hi,

    If I am not wrong, you cannot really design tables in SAP Scripts. Instead you can use vline uline or box commads(?) after each line is displayed to draw the table.

    regds,

    Madan..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2011 at 11:24 AM

    i am planning to use box command only.

    can any one provide some code or some idea to design table using box command .the table size should be dynamic.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Generally speaking, you have a FIRST page, that points to NEXT or PAGE2 or something...this is declared in the SAPScript page....

      One usually has a MAIN window of the same width, but different placement on page NEXT for example....

      My MAIN might start at 10CM from top on page FIRST, but on NEXT, the data is a continuation, so I might start MAIN on page 2 at 2CM from the top.... Set your MAIN using page windows....SAPScript will expect same width but will allow different height, etc.

  • avatar image
    Former Member
    Oct 27, 2011 at 12:31 PM

    well you could however use box-commands.

    the box-command can work with variables as well instead of hardcoded values.

    These values can be determined and set at runtime in driver program or external perform.

    But still i wouldnt advise to host tables in sap-script. This is gonna be a endless task.

    regards

    Add comment
    10|10000 characters needed characters exceeded