CL_ABAP_DB_C_WRITER - Character-like Database Write Stream

TXBHW - Original Tax Base Amount in Local Currency   ABAP Short Reference  
This documentation is copyright by SAP AG.

Functionality

Sequential writing of character-like data to a database field of DDIC type STRING.

Further information

The class contains the following methods:

  • WRITE generic write method

Example

Writing of file content to the field 'clob' of DDIC type STRING in the table 'dbtab'.

data: file type string value my_file',
container type string,
writer type ref to cl_abap_db_c_writer.

open dataset file in text mode encoding utf-8 for input.

update dbtab set clob = writer
where key1 = 1.

do.
read dataset file into container.
if sy-subrc = 4.
exit.
endif.
writer->write( container ).
enddo.

writer->close( ).
commit work.


Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.


Length: 1854 Date: 20120526 Time: 080103     triton ( 77 ms )