Skip to content

ABAP Keyword Documentation →  ABAP Glossary 

down cast

Also called narrowing cast. Assignment between reference variables, where the static type of the target variable is more specific than the static type of the source variable and the assignability is checked at runtime. A down cast must always be performed explicitly. Assignments can be made using the casting operator (?=) and constructor expressions can be specified using the casting operator CAST. Down casts are also still possible using the INTO addition of the statement WHEN TYPE of a case distinction using CASE TYPE OF. See also up cast.


Other versions: 7.31 | 7.40 | 7.54