And which one should be preferred / why?
So I have a TYPE defined locally:
TYPES:
BEGIN OF CUSTOMER_STRU_TYPE,
KUNNR TYPE KNA1-KUNNR,
NAME1 TYPE KNA1-NAME1,
END OF CUSTOMER_STRU_TYPE.
and I think these 2 statements seen below will both do the same thing:
DATA:
CUSTOMER_TAB TYPE CUSTOMER_STRU_TYPE OCCURS 5.
DATA:
CUSTOMER_TAB TYPE STANDARD TABLE OF CUSTOMER_STRU_TYPE.
Are there any differences between the 2 statements seen above and which one should be preferred?
OCCURSdefines an internal table with header line, the other defines an internal table without header line.OCCURS 5means that initially there will be assigned memory for 5 rows. - JaggerSTANDARD TABLE OF WITH HEADER LINEin one of the comments there. - Jagger