SAP DOWN CAST - Glossary



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN

downcast
Also called narrowing cast. Assignment between reference variables in which the static type of the target variable is more specific than the static type of the source variable and the assignability is not checked until runtime. A downcast must always be performed explicitly. This is done using assignments with the casting operator ( ?=) and constructor expressions with the casting operator CAST . Downcasts are also still possible using the INTO addition of the statement WHEN TYPE of a case distinction using CASE TYPE OF. See also upcast.
ABAP_MORE_INFO