sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS SORT 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

No Field Symbols As Sort Criteria

When you sort internal tables, no field symbols may be used as sort criteria in ABAP Objects.

  • In ABAP Objects, the following statements cause an error message:


  • name = 'ITAB-COL1'.
    ASSIGN (name) TO .

    SORT itab BY .
  • 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 must 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 .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_SEPARATOR_1
    OO_OBS_SQL_STAR_1




    comments powered by Disqus