🏆

SAP ABAP 100 Days Challenge

Day 16 — READ TABLE

1
0
0
0
0

Interview Question

1. What is READ TABLE? 2. Why do we use READ TABLE?

Answer

1. READ TABLE is used to search a specific record in an Internal Table. 2. It searches using a key or index. 3. If the record is found, sy-subrc becomes 0. 4. If the record is not found, sy-subrc becomes 4. 5. READ TABLE improves performance by avoiding unnecessary LOOP statements.

Real-Time Example

1. Customer data is stored in an Internal Table. 2. The user enters Customer Number 100001. 3. READ TABLE searches for Customer 100001. 4. If found, customer details are displayed. 5. If not found, the program shows "Customer Not Found."

Practice Questions

1. What is READ TABLE? 2. Why do we use READ TABLE? 3. What is sy-subrc after READ TABLE? 4. How do you search a record using READ TABLE? 5. Give one real-time example.

Related Jobs — ABAP

See all

Discussion

to join the discussion.

Be the first to comment.