CL_ABAP_DB_X_WRITER - Binary Database Write Stream
Fill RESBD Structure from EBP Component Structure ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
Sequential writing of binary data to a database field of DDIC type RAWSTRING.
Further information
The class contains the following methods:
- WRITE generic write method
- FLUSH - No function
Example
Writing of file content to the field 'blob' of DDIC type RAWSTRING in the table 'dbtab'.
data: file type string value 'my_file',
container type xstring,
writer type ref to cl_abap_db_x_writer.
open dataset file in binary mode for input.
update dbtab set blob = writer
where key1 = 1.
do.
read dataset file into container.
if sy-subrc = 4.
exit.
endif.
writer->write( container ).
enddo.
writer->close( ).
commit work.
commit work.
General Data in Customer Master Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 1859 Date: 20120526 Time: 080351 triton ( 125 ms )






