Ansicht
Dokumentation

ABENANONYMOUS_COMPONENTS - ANONYMOUS COMPONENTS

ABENANONYMOUS_COMPONENTS - ANONYMOUS COMPONENTS

General Data in Customer Master   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Anonymous Components

DATA: BEGIN OF struc,
        ...
        '...',
        ...
        space(len) $[TYPE c$],
        ...
      END OF struc.

Effect

If text field literals or the constant space (the latter also with a length specified in parentheses) are specified within the definition of a structure using DATA, CONSTANTS, or STATICS, nameless text fields are included at this position as anonymous components. For literals, the initial value and the length of these components are based on their content. If space is specified, a text field filled with blanks is created. These anonymous text fields cannot be addressed explicitly in programs. In particular, structures never contain components with the name space. Anonymous components can only be accessed using the structure name and the corresponding offset/length specifications.

Notes

  • Anonymous components must not be specified in classes or interfaces.
  • These anonymous components can be replaced easily by named components. Named components enhance the functions of anonymous components by allowing them to be accessed explicitly, without limiting their role as, for example, filler fields.





BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1899 Date: 20240427 Time: 004014     sap01-206 ( 48 ms )