ABAP/4 Example Code: SELECT ... PACKAGE SIZE

Example

DATA: it_spfli TYPE TABLE OF SPFLI WITH HEADER LINE.

START-OF-SELECTION.
  SELECT * FROM spfli
           INTO TABLE it_spfli PACKAGE SIZE 5.
    LOOP AT it_spfli.
      WRITE:/ it_spfli-CARRID, it_spfli-CONNID,
              it_spfli-CITYFROM, it_spfli-AIRPFROM,
              it_spfli-CITYTO, it_spfli-AIRPTO.
    ENDLOOP.
    SKIP 1.
  ENDSELECT.

The output is:

 img85

Technorati Tags: ,

Post new comment