SAP ABAP: Using Elementary data type and reference type with keyword VALUE

It is not possible. Check this link for details:

ABAP Documentation

The correct way for using “VALUE” with elementary data type is by assigning initial value and you should use NEW operator to assign initial value.

DATA(l_value) = NEW char4( 'AAA' ).

Updated on: 12-Feb-2020


Kickstart Your Career

Get certified by completing the course

Get Started