How to declare one internal table without header line without using structures?
Ans No, we cannot declare internal table without header line and without structure because it gives error ITAB cannot be a table, a reference, a string or contain any of these object. Code with Header without Structure TABLES : ZREKHA_EMP. DATA : ITAB LIKE ZREKHA_EMP OCCURS 0 WITH HEADER LINE. SELECT * FROM ZREKHA_EMP INTO CORRESPONDING FIELDS OF ITAB. APPEND ITAB. ENDSELECT. LOOP AT ITAB. WRITE : / ITAB-EMPNO, ITAB-EMPNAME,ITAB-DEPTNO. ENDLOOP. Code without Header with Structure TABLES : ZREKHA_EMP. DATA : BEGIN OF ITAB OCCURS 0, EMPNO LIKE XREKHA_EMP-EMPNO, EMPNAME LIKE XREKHA_EMP-EMPNAME, DEPTNO LIKE XREKHA_EMP-DEPTNO, END OF ITAB. SELECT * FROM ZREKHA_EMP INTO CORRESPONDING FIELDS OF ITAB. APPEND ITAB. ENDSELECT. LOOP AT ITAB. WRITE : / ITAB-EMPNO, ITAB-EMPNAME,ITAB-DEPTNO. ENDLOOP.