Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Processing Internal Data →  Streaming →  Streaming for Data Objects 

Streaming for Internal Tables

The specific classes for streaming for internal tables are:

  • CL_ABAP_ITAB_C_READER
  • CL_ABAP_ITAB_C_WRITER
  • CL_ABAP_ITAB_X_READER
  • CL_ABAP_ITAB_X_WRITER

These classes are subclasses of the abstract superclasses CL_ABAP_MEMORY_....

Other versions: 7.31 | 7.40 | 7.54


Example

Uses a reader stream to read an internal table.

DATA itab TYPE TABLE OF string WITH EMPTY KEY. 

itab = VALUE #( ( `abc` ) ( `def` ) ( `ghi` ) ). 

DATA(itab_reader) = NEW cl_abap_itab_c_reader( itab ). 

WHILE itab_reader->data_available( ) = 'X'. 
  cl_demo_output=>write_text( itab_reader->read( 3 ) ). 
ENDWHILE. 
itab_reader->close( ). 

cl_demo_output=>display( ).