SAP STRUCTURE COMPONENT SELECTOR



Get Example source ABAP code based on a different SAP table
  


• - ABAP_SELECTOR

Structure Component Selector
A component comp of a structured data type or a structure struct is accessed using the name
struct-comp
In this case, the character - is the structure component selector. A structured data type or a structure struct must be specified as follows to the left of the structure component selector:
Name of a structure or a structured type that can itself be linked.
Functional method call or method chaining with a structured result.
Single or chained table expression that returns a structured table line.
The name comp of the component must be to the right of the structure component selector.

ABAP_EXAMPLE_VX5
Declaration of a structure struc with the structured data type spfli from the ABAP Dictionary and access to its component carrid. DATA struc TYPE spfli.

...

... struc-carrid ...
ABAP_EXAMPLE_END