*&---------------------------------------------------------------------* *& Report Z10 *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT z10. "定义结构体 TYPES: BEGIN OF ty_itab1, field1 TYPE char20, field2 TYPE int2, END OF ty_itab1. TYPES:t_itab1 TYPE ty_itab1 OCCURS 0. "声明内表类型 TYPES:t_itab2 TYPE TABLE OF ty_itab1. "志明内表类型 DATA:itab1 TYPE TABLE OF ty_itab1. "定义内表变量1 DATA:itab2 TYPE t_itab1. "定义内表变量2 DATA:itab3 TYPE t_itab2. "定义内表变量3 DATA:itab4 LIKE itab1. "定义内表变量4 DATA str TYPE char20. str = '11'. "自带工作区的内表,工作区名称与内表名称相同 DATA: BEGIN OF itab5 OCCURS 0, field1 TYPE char20, field2 TYPE int2, END OF itab5. "参考已定义的内表 DATA:ITAB6 TYPE TABLE OF sflight. DATA:ITAB7 TYPE STANDARD TABLE OF itable1. DATA:ITAB8 TYPE SORTED TABLE OF itable1 WITH UNIQUE KEY field2. "定义排序表 DATA:ITAB9 TYPE HASHED TABLE OF itable1 WITH UNIQUE KEY field2. "定义哈希表 BREAK-POINT.
标签:内表,itab1,TYPE,ABAP,TABLE,DATA,定义 From: https://www.cnblogs.com/hua900822/p/16879227.html