SAP CONSTRUCTOR EXPRESSION CAST



Get Example source ABAP code based on a different SAP table
  


• CAST ABAP_CONSTRUCTOR
• # CAST

CAST, Casting Operator

ABAP_SYNTAX
... CAST type( $[let_exp$] dobj ) ...

What does it do?
A constructor expression with the casting operator CAST performs a downcast or an upcast for the argument dobj and creates a reference variable of the static type type as a result. type can be specified as:
any non-generic data type dtype or the completely generic data type data
any object type (class or interface) including the completely generic object type object.