调试过程
完整程序
REPORT Z_TEST_DEFINE.
TYPES: BEGIN OF GTY_DATA,
NAME TYPE STRING,
AGE TYPE I,
END OF GTY_DATA.
DATA: GS_DATA TYPE GTY_DATA,
GT_DATA TYPE TABLE OF GTY_DATA.
DEFINE D_TEST.
GS_DATA-NAME = &1.
GS_DATA-AGE = &2.
APPEND GS_DATA TO GT_DATA.
END-OF-DEFINITION.
DO 5 TIMES.
D_TEST: 'tom' 2.
ENDDO.