sapdev logo background
sapdev logo sapdev logo
Comments

SAP CLASS ATTRIBUTES AS KEY documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Object References in Internal Tables
If the row type of an internal table contains object reference variables in the form of the component comp , the attributes attr of the object (to which each reference of the row points) can be used as key values for reading, sorting, and modifying rows in tables. This is possible in the following statements or expressions:

  • LOOP AT itab ... WHERE comp- attr ...

  • READ TABLE itab ... WITH [TABLE] KEY comp- attr = ...

  • ... itab[ KEY ... comp- attr = ... ] ...

  • SORT itab BY comp- attr ...

  • DELETE itab WHERE comp- attr ...

  • MODIFY itab ... TRANSPORTING ... WHERE comp- attr ...

  • If a table contains unstructured rows with the type of an object reference variable, the attributes of the object to which a row points can be addressed using table_line- attr .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    CLASS_ATTRIBUTES
    CLASS_BASED_EXCEPTION_GLOSRY




    comments powered by Disqus