Error message in ABAP objects for:
name = 'ITAB-COL1'.
ASSIGN (name) TO <fs>.
SORT itab BY <fs>.
Correct syntax:
name = 'COL1'.
SORT itab BY (name).
Reason:
Sort criteria must be defined with reference to the line structure (columns) of the
internal table. Field symbols point to data objects and may not be used to name structure components.
Since it is possible to define the name dynamically, it is not necessary to define a column with field symbols that point to the work area used. This variant was only possible for tables with a header line.
Overview:
Replacement for Obsolete Statements ABAP Objects