Internaltable

How to Delete records from the internal table in SAP ABAP

The Data records present in the internal table can be deleted in following ways. Key or work area (structure) WHERE conditions. Index From Index TO Index Clean, Refresh, free DATA lt_internal_table TYPE TABLE OF ztt_db_table2. DATA ls_structure TYPE ztt_db_table2. SELECT *FROM ztt_db_Table2 INTO TABLE lt_internal_table.               ls_structure – contact_id = 102.               ls_structure – contact_name …

How to Delete records from the internal table in SAP ABAP Read More »

How to declare an internal table in three different ways

DECLARATION OF INTERNAL TABLE OF TYPE (DATABASE TABLE) DATA It_internal_table TYPE STANDARD TABLE OF ztt_db_table1. DATA Is_structure LIKE LINE OF It_internal_table. DO’s DATA Is_structure TYPE ztt_db_table1 DON’TS One common mistake observed from beginners: please declare the internal type explicitly like below ‘TYPE STANDARD TABLE OF’. Otherwise it will consider as structure. DATA ls_struct_instead_of_internal_table TYPE ztt_db_table1. …

How to declare an internal table in three different ways Read More »