Professional Documents
Culture Documents
Chapter 06 Review of Concepts-Work Areas & Internal Tables
Chapter 06 Review of Concepts-Work Areas & Internal Tables
Chapter 06 Review of Concepts-Work Areas & Internal Tables
Objectives
2 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
3 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
CHECK
SELECT * SY-SUBRC
DATA
SOURCE
RECORD # 1
4 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
CHECK
SELECT * SY-SUBRC
DATA
SOURCE
RECORD # 2
RECORD # 1
No Longer Available LFA1 WORK AREA
5 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
DATA
INTERNAL TABLE SOURCE
RECORD # 1 RECORD # 6
RECORD # 2
LFA1 WORK AREA
RECORD # 3
APPEND ITAB
6 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
BEFORE AFTER
RECORD # 3
CLEAR LFA1.
RECORD # 1
REFRESH ITAB.
RECORD # 2
RECORD # 3
7 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
Demonstration
8 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
Practice
9 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
Summary
TABLES statement in ABAP creates a workarea for the database table specified.
Workareas can hold only one record during the program execution whereas, an
Internal table can hold multiple records at a time.
For the above reason, when we have to retrieve multiple entries from the
database, we should be using internal tables instead of an workarea. Because
use of workarea will mean we have get the data from database multiple times.
CLEAR statement deletes the content of workarea. It can be used to initialize the
header line of an internal table as well.
REFRESH statement wipes off the contents of the internal table.
10 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013
IBM Global Business Services
Questions
11 Review of Concepts: Work Areas & Internal Tables | 4.06 Dec-2008 IBM Corporation 2013