Application Development 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: 

open dataset ANSI

Former Member
0 Kudos

Hi,

I use

OPEN DATASET l_f_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT WITH WINDOWS LINEFEED

to write data on application server, the problem is that I get a data file in UTF-8. Is it possible to get an ANSI data file?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try something like that

OPEN DATASET i_filename FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE i_codepage

where i_codepage is the relevant sap codepage for your ansi codepage

(ex. 1704 for 1253 MS windows Greek)

3 REPLIES 3

Former Member
0 Kudos

Try something like that

OPEN DATASET i_filename FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE i_codepage

where i_codepage is the relevant sap codepage for your ansi codepage

(ex. 1704 for 1253 MS windows Greek)

0 Kudos

hi,

how di I get the relevant codepage? I don't know which codepage I need for ANSI

0 Kudos

The ANSI codepage depends of you MS windows instalation the SAP covers the following

1160 Microsoft 1252, Superset of ISO 8859-1 English

8805 Microsoft 1258, Vietnamese with combining chars

1404 Microsoft Windows 1250 for Central Europe

1504 Microsoft Windows 1251 mit kyrillisch

1804 Microsoft Windows 1255 for Hebrew

1824 Microsoft Windows 1255 for Hebrew without RTL/LTR

1904 Microsoft Windows 1257 fuer litauisch (f. Inhalte)

8604 Microsoft Windows 874 for Thai

8704 MS 1256 Arabic Windows

1614 MS Windows 1254 wie ISO 8859-9 (Latin Nr.5)

1405 MS-Windows 1250 for Hungarian on Latin-1 system

1704 MS-Windows griechisch