🏆

SAP ABAP 100 Days Challenge

Day 14 — INTO TABLE vs APPENDING TABLE

1
0
0
0
0

Interview Question

1. What is the difference between INTO TABLE and APPENDING TABLE? 2. When do we use INTO TABLE and APPENDING TABLE?

Answer

1. INTO TABLE stores the fetched data into an Internal Table. 2. If the Internal Table already contains data, INTO TABLE replaces the existing records. 3. APPENDING TABLE adds new records to the existing Internal Table. 4. Existing records are not deleted when using APPENDING TABLE. 5. Use INTO TABLE for the first data fetch and APPENDING TABLE to combine additional data.

Real-Time Example

1. The program first fetches Sales Orders from VBAK INTO TABLE lt_vbak. 2. The Internal Table now contains today's Sales Orders. 3. Next, the program fetches yesterday's Sales Orders. 4. APPENDING TABLE is used to add the new records. 5. Finally, the Internal Table contains both today's and yesterday's Sales Orders.

Practice Questions

1. What is INTO TABLE? 2. What is APPENDING TABLE? 3. What happens if the Internal Table already contains data? 4. When do you use APPENDING TABLE? 5. Give one real-time example.

Related Jobs — ABAP

See all

Discussion

to join the discussion.

Be the first to comment.