Ansicht
Dokumentation

ABENOO_OBS_ASSIGN_TYPE_1 - OO OBS ASSIGN TYPE 1

ABENOO_OBS_ASSIGN_TYPE_1 - OO OBS ASSIGN TYPE 1

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

No obsolete castings withASSIGN

In ABAP Objects you are not allowed to use the additions TYPE and DECIMALS for assigning data objects to field symbols using ASSIGN.

Error message in ABAP Objects if the following syntax is used:

ASSIGN f TO <fs> TYPE ... [DECIMALS ...].

Correct syntax:

ASSIGN f TO <fs> CASTING TYPE|LIKE ...

Reason:

The TYPE and DECIMALS additions have been replaced by the addition CASTING [TYPE|LIKE].

Unlike the TYPE addition, CASTING supports any data type.






ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 809 Date: 20240328 Time: 131602     sap01-206 ( 14 ms )