TOP-OF-PAGE的用法

 

 

DATA: header(30) TYPE c,
      spfli_tab TYPE SORTED TABLE OF spfli
                         WITH UNIQUE KEY cityto carrid connid,
      spfli_line TYPE spfli.

INITIALIZATION.
    header = 'Demo program for report event'.
    
    
START-OF-SELECTION.
    SELECT *  FROM spfli
              INTO CORRESPONDING FIELDS OF spfli_line.
             INSERT spfli_line INTO TABLE spfli_tab.
    ENDSELECT.

END-OF-SELECTION.
    LOOP AT spfli_tab INTO spfli_line.
        WRITE: / spfli_line-cityfrom,
                 spfli_line-cityto,
                 spfli_line-carrid,
                 spfli_line-connid.
    ENDLOOP.

TOP-OF-PAGE.
    WRITE: header.
    SKIP.

posted @ 2019-10-23 16:49  纱缚之印  阅读(998)  评论(0编辑  收藏  举报