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

saving file on FTP encoded as code page 1804 from abap program

Former Member
0 Likes
543

hi,

i need to send file from abap program to ftp.

i need to write the file to ftp as code page 1804.

i am using FM FTP_R3_TO_CLIENT.

i tried to convert text before sending to FM by using FM /ATL/TRNSL_CODEPAGE_2_CODEPAGE

for each line of file but it didn't work - the file is still written in ftp as utf-8.

any suggestions?

thanks in advance.

Tomer

hi,

i need to send file from abap program to ftp.

i need to write the file to ftp as code page 1804.

i am using FM FTP_R3_TO_CLIENT.

i tried to convert text before sending to FM by using FM /ATL/TRNSL_CODEPAGE_2_CODEPAGE

for each line of file but it didn't work - the file is still written in ftp as utf-8.

any suggestions?

thanks in advance.

Tomer

1 REPLY 1
Read only

Former Member
0 Likes
419

try using FM SKTG_CODEPAGE_CONVERT where you can define input codepage (CI) and output codepage (C0).

CALL FUNCTION 'SKTG_CODEPAGE_CONVERT'

EXPORTING

ci = '1401'

co = '1404'

TABLES

text = it_tab.

hope that helped.