Ansicht
Dokumentation

ABENOO_OBS_STRUCTURE_1 - OO OBS STRUCTURE 1

ABENOO_OBS_STRUCTURE_1 - OO OBS STRUCTURE 1

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

No Obsolete Casting inFIELD-SYMBOLS

In ABAP Objects the STRUCTURE addition is not allowed in the FIELD-SYMBOLS statement.

In ABAP Objects, the following statement causes an error message:

FIELD-SYMBOLS <fs> STRUCTURE struc DEFAULT f.

Correct syntax:

FIELD-SYMBOLS <fs> TYPE|LIKE struc.

ASSIGN f TO <fs> CASTING.

Reason:

Field symbols defined with the STRUCTURE addition are a mixture of field symbols whose type is defined and a tool for casting on data types defined in the ABAP Dictionary or locally in the program. The types of field symbols are defined with the TYPE addition of the FIELD-SYMBOLS statement and the CASTING addition of the ASSIGN statement can be used for the casting.






TXBHW - Original Tax Base Amount in Local Currency   General Material Data  
This documentation is copyright by SAP AG.

Length: 1194 Date: 20240427 Time: 034411     sap01-206 ( 23 ms )