*&---------------------------------------------------------------------*
*& Report ZUS_SDN_ITAB_WITH_HEADERLINE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zus_sdn_itab_with_headerline.
DATA: BEGIN OF itab OCCURS 0,
field1,
END OF itab.
DATA: itab1 LIKE itab OCCURS 0.
DATA: itab2 TYPE itab OCCURS 0.
DATA: BEGIN OF itab3 OCCURS 0.
INCLUDE STRUCTURE itab.
DATA: END OF itab3.
START-OF-SELECTION.
LOOP AT itab.
ENDLOOP.
* LOOP AT itab1. " syntax error due to missing header line
* ENDLOOP.
* LOOP AT itab2. " syntax error due to missing header line
* ENDLOOP.
LOOP AT itab3.
ENDLOOP.
END-OF-SELECTION.
I highly recommend NOT to use itabs with header lines anymore because
- they are not allowed anymore in ABAP-OO context and
- they mess up any "classical" coding
*& Report ZUS_SDN_ITAB_WITH_HEADERLINE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zus_sdn_itab_with_headerline.
DATA: BEGIN OF itab OCCURS 0,
field1,
END OF itab.
DATA: itab1 LIKE itab OCCURS 0.
DATA: itab2 TYPE itab OCCURS 0.
DATA: BEGIN OF itab3 OCCURS 0.
INCLUDE STRUCTURE itab.
DATA: END OF itab3.
START-OF-SELECTION.
LOOP AT itab.
ENDLOOP.
* LOOP AT itab1. " syntax error due to missing header line
* ENDLOOP.
* LOOP AT itab2. " syntax error due to missing header line
* ENDLOOP.
LOOP AT itab3.
ENDLOOP.
END-OF-SELECTION.
I highly recommend NOT to use itabs with header lines anymore because
- they are not allowed anymore in ABAP-OO context and
- they mess up any "classical" coding
감사합니다~