field-group

来源:互联网 发布:星座分布 大数据 编辑:程序博客网 时间:2024/06/08 06:56

When the data that has to be handled is very large, then internal tables are not used as they create some problem with memory, so in the place of internal tables field-groups are used.
they use some special method of extracting data from database tables .
see the sample example;
REPORT demo_extract.

NODES: spfli, sflight.

FIELD-GROUPS: header, flight_info, flight_date.

START-OF-SELECTION.
INSERT: spfli-carrid spfli-connid sflight-fldate
INTO header,
spfli-cityfrom spfli-cityto
INTO flight_info.

GET spfli.
EXTRACT flight_info.

GET sflight.
EXTRACT flight_date.

END-OF-SELECTION.
SORT STABLE.
LOOP.
AT FIRST.
WRITE / 'Flight list'.
ULINE.
ENDAT.
AT flight_info WITH flight_date.
WRITE: / spfli-carrid , spfli-connid, sflight-fldate,
spfli-cityfrom, spfli-cityto.
ENDAT.
AT flight_date.
WRITE: / spfli-carrid , spfli-connid, sflight-fldate.
ENDAT.
AT LAST.
ULINE.
WRITE: cnt(spfli-carrid), 'Airlines'.
ULINE.
ENDAT.
ENDLOOP.

原创粉丝点击