Internal Table with Structure
Task
Create an internal table using a structure and loop through its entries.
Write Your ABAP Code
Loading...
📥 Sample Input & Output
1 Apple 2 Banana
💡 Hint
Use APPEND and LOOP AT.
✅ View Reference Solution
ls_item-id = 1. ls_item-name = 'Apple'. APPEND ls_item TO it_items. ls_item-id = 2. ls_item-name = 'Banana'. APPEND ls_item TO it_items. LOOP AT it_items INTO ls_item. WRITE: ls_item-id, ls_item-name. ENDLOOP.