You have several options for this.
If you use SAP BW, there are many standard tools available to help you perform extraction and automate processes.
ABAP ( 1), .
(RFC) SAP RFC.
RFC - SOAP/HTTP.
, , script, .
- :
report ZEXTRACT_EXAMPLE.
data: lt_t001 type table of t001.
data: ls_t001 type t001.
data: lv_filename type string value '/tmp/outfile.txt'.
select * from t001 into table lt_t001.
open dataset lv_filename for output in text mode encoding default.
loop at lt_t001 into ls_t001.
transfer ls_t001-bukrs to lv_filename.
endloop.
close dataset lv_filename.
, . ( ) /tmp/outfile.txt , . ( ).
SM36 .