메뉴 건너뛰기

SAP 한국 커뮤니티

interanl table header line

sapjoy 2006.12.05 22:39 조회 수 : 4049 추천:41

*&---------------------------------------------------------------------*
*& 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