‎2008 Mar 19 5:51 AM
Hi friends,
Actually I Have to Access the data from the database table "AFRCSDATA" in this table the ARFCDATA01 field is in Raw Data type , So I want to get this information in normal Text Format.
Regards,
S.Janani
‎2008 Mar 19 5:54 AM
‎2008 Mar 19 6:02 AM
Hi,
You can use DOWNLOAD / WS_DOWNLOAD / GUI_DOWNLOAD function module to fetch the data from
database table into flatfile(text format).
Have a look on the folowing code.
data: itab like t001 occurs 0 with header line.
select * from t001 into table itab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = 'D:\ABAP EVE\fiel3.txt'
FILETYPE = 'ASC'
TABLES
data_tab = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11.
IF sy-subrc <> 0.
write:/ 'not created'.
else.
write:/ 'created in os'.
ENDIF.
Reward,if it is useful.
Thanks,
Chandu.