Ansicht
Dokumentation

ABENOO_OBS_FS_2 - OO OBS FS 2

ABENOO_OBS_FS_2 - OO OBS FS 2

BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Cannot Use Field Symbols As Class Components

You cannot declare field symbols as components of classes in the declaration part of the class definition. However, you can create local field symbols within methods.

In the declaration part of the class, the following statement causes an error message::

FIELD-SYMBOLS ...

Correct syntax:

DATA ... TYPE REF TO ...
or
ALIASES ...

Cause:

The only components allowed in classes are attributes, methods, and events. Field symbols are symbolic names for other fields. They work by means of value semantics. Their role as pointers is now performed in ABAP Objects by reference variables. Their role as symbolic names has now been replaced by aliases.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   General Material Data  
This documentation is copyright by SAP AG.

Length: 1038 Date: 20240424 Time: 172657     sap01-206 ( 24 ms )