APPEND

Use

APPEND ( <table> ).

APPEND ( <table> , <work area>).

The APPEND command appends a row to a table. The table can be a field of a complex structure. After the APPEND command has been executed, &TFILL contains the current number of rows.

See also INSERT and DELETE.

Without Work Area

An empty row is appended to the table.

With Work Area

A row is appended to the table. If the structure of the work area differs from that of the table, fields with the same name are filled.

Example

Here, we use a table parameter with parameter reference SPFLI[] and a structure parameter with parameter reference SPFLI.

APPEND ( SPFLI_TAB ).

LOG ( &TFILL ).

LOG ( SPFLI_TAB ).

APPEND ( SPFLI_TAB , SPFLI_WA ).

LOG ( &TFILL ).

LOG ( SPFLI_TAB ).