ABAP Tutorial:

ABAP Loops


When looping over internal tables, it is generally preferable to ASSIGN to a field symbol rather than loop INTO a work area. Assigning field symbols simply updates their reference to point to the next line of the internal table during each iteration, whereas using INTO results in the line of the table being copied into the work area, which can be expensive for long/wide tables.

ABAP Loops Examples:

Related ABAP Tutorial Topics:

Other Tutorial Topics:

This modified content is an extract of the original Stack Overflow Documentation released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow. This topic was created and modified by the Stack Ovedrflow Contributor.