Pages

Sunday, 13 April 2025

Using The “VALUE” Constructor Operator:

 In SAP ABAP, the VALUE constructor operator is used to create or initialize data objects directly within the ABAP code. It is often used in combination with data declarations or inline declarations to provide initial values to variables. The VALUE operator is versatile and supports different types of data objects such as elementary data types, structures, and internal tables.

t_itab i TYPES TYPE STANDARD TABLE OF WITH DEFAULT KEY.

Before:

Data : itab type t_itab.

append : 10 to itab,

20 to itab,

30 to itab.

After:

DATA(itab) = VALUE t_itab( ( 10 ) ( 20 ) ( 30 ) ).

No comments:

Post a Comment