Overview
We use command TYPES if in program wants local type.
Please look sample code. in this case it is define for work area or internal table because if we want define for variable, we can define by command DATA so almost we would use Types for internal table and structure.
sample code
TYPES: BEGIN OF ZTYPE, CNT TYPE N, VBELN TYPE VBAK-VBELN, COLUM3(10) TYPE C, END OF ZTYPE. * we can store a value by variable that is referning created Type. * In case internal table: DATA: ITAB_A TYPE TABLE OF ZTYPE. * In case work area: DATA: WA_A TYPE ZTYPE.
Please refer also here for Define Data
Recent Comments