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

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: 2020-02-12T10:28:09+05:30

418 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements