Jump to content

Arrays: Difference between revisions

332 bytes added ,  8 years ago
Line 138:
There are no real arrays in ABAP but a construct called internal tables.
<lang ABAP>
TYPES: tty_int TYPE STANDARD TABLE OF i
WITH NON-UNIQUE DEFAULT KEY.
 
DATA(itab) = VALUE tty_int( ( 1 )
( 2 )
( 3 ) ).
 
INSERT 4 INTO TABLE itab.
APPEND 5 TO itab.
DELETE itab INDEX 1.
 
cl_demo_output=>display( itab ).
cl_demo_output=>display( itab[ 2 ] ).
</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.