How to resolve the Error ‘Database table must be a flat structure’ in SAP ABAP

DATA: BEGIN OF ps_struct. INCLUDE STRUCTURE zss_db_table1. “ ==>Below syntax Error: “ZSS_DB_TABLE! must be a flat structure.                             “Internal tables, strings, references, and structures cannot be used as components. DATA field4 TYPE i. DATA: END of ps_struct. DATA lt_internal_table TYPE TABLE OF ztt_db_Table1. SELECT *FROM ztt_db_table1 INTO TABLE lt_internal_table. LOOP AT lt_internal_table ASSIGNING FIELD-SYMBOL(<ls_struct>).               …

How to resolve the Error ‘Database table must be a flat structure’ in SAP ABAP Read More »