Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Conversion

Former Member
0 Likes
352

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

2 REPLIES 2
Read only

Former Member
0 Likes
313

Try this function. RSAB_CONVERT_RAW_TO_CHAR

Read only

Former Member
0 Likes
313

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.