星期四, 八月 12, 2010

ABAP Label for Operands

  • Structured data types or data objects (structure)
    A component comp of a structured data type or a structure struct is accessed using the label struct-comp.
  • Instances of classes (objects)
    The label ref->comp is used to access a component comp of an object. The character -> is the object component selector
  • Classes

    The label class=>comp can be used to access a static component comp of a class without an instance of the class having to be created. The character => is the class component selector.


  • Interfaces

    The label

    intf~comp

    is used to access a component comp of an interface. The character ~ is the interface component selector.

  • Escape character for names
    The character ! can be written directly before a name in order to distinguish it from an ABAP word of the same name in a statement.