What is the difference between a work area, a field symbol and a data reference when you process an internal table? When do you use which?
Say your answer out loud first.
Practise another way
A work area is a separate copy of one row. Reading into it costs a copy, and changes need MODIFY to go back. A field symbol is a pointer to the real row in the table, so LOOP ASSIGNING lets me change the row in place without copying.
A data reference does the same but is a value I can store, pass and create dynamically. Header lines are obsolete. I default to field symbols or inline references for wide rows.
Work area. A structure that holds a copy of a row. LOOP AT itab INTO wa copies each row. Changing wa changes only the copy, so you need MODIFY itab FROM wa. For wide rows or large tables the copying costs time.
Field symbol. FIELD-SYMBOLS <fs> declares a placeholder. It is initial until you assign memory to it, normally with ASSIGN.
After assignment it behaves like the data object itself, the keyword documentation compares it to a dereferenced reference. Using an unassigned field symbol raises an exception, so check with IS ASSIGNED when the assignment can fail.
Data reference. A variable of type REF TO data (or a specific type). You create objects with NEW, point at existing ones with REF, and read through ref->* or ref->component.
Unlike a field symbol, it is a normal value: you can keep it in a table, pass it as a parameter, return it from a method.
LOOP AT lt_items ASSIGNING FIELD-SYMBOL(<item>).
<item>-status = 'X'. " changes the table row directly
ENDLOOP.
LOOP AT lt_items REFERENCE INTO DATA(lr_item).
lr_item->status = 'X'.
ENDLOOP.
ASSIGN COMPONENT 'STATUS' OF STRUCTURE <item> TO FIELD-SYMBOL(<dyn>). " dynamic access
When I use which:
- Small structures, read-only use, or when a copy is wanted: work area (
INTO DATA(wa)). - Changing rows in place, big rows, or dynamic component access: field symbol.
- Storing pointers, building trees or lists, returning generic data: data reference.
Pitfalls. Deleting or sorting a table while a field symbol points into it can leave it pointing at the wrong row. In a nested loop a field symbol assigned from a table you then modify structurally needs care.
Obsolete. A header line (a table with an implicit work area, OCCURS 0) is obsolete and forbidden in classes.
Do not write it, but you must read it in old code. Field symbols and references remain valid in ABAP Cloud, with the same restrictions on dynamic access to non-released objects.
Explains the copy versus alias difference, says why MODIFY is needed with a work area, and picks references for values that must be stored or passed.
Says a field symbol is just a faster work area, or forgets that an unassigned field symbol raises an exception.
Treating a field symbol as a copy. Changing <fs> changes the table row, which surprises people who think they are only reading.
- What does LOOP AT ... ASSIGNING do to performance for a 200-column row?
- How do you check a field symbol is assigned?
- Why would you use a reference instead of a field symbol?
- What is wrong with a header line?
3 official pages and 5 prep guides. Confidence: high. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.