SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Перекодировка в DOS 866



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
stefan
Участник
Участник



Joined: 14 Feb 2008
Posts: 19

PostPosted: Wed Oct 08, 2008 10:09 am    Post subject: Перекодировка в DOS 866 Reply with quote

Доброе утро, подскажите пожалуйста, какую кодовую страницу указывать, чтобы текст преобразовался к DOS 866?

Code:
  TRANSLATE str TO CODE PAGE '1503'.


с 1503 не получается.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 180
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Oct 08, 2008 11:59 am    Post subject: Reply with quote

1500 - ISO8859-5 (SAP)
1503 - 866
1504 - 1251

Вообще то написано у Вас правильно. Может у вас еще какие-то преобразования происходят, например при передаче файла на рабочую станцию?
Back to top
View user's profile Send private message Blog Visit poster's website
Armann
Модератор
Модератор



Joined: 01 Jan 2008
Posts: 422
Location: Moscow

PostPosted: Wed Oct 08, 2008 1:51 pm    Post subject: Reply with quote

stefan, вам для выгрузки в текстовый файл нужно?
Как проверяете что не перекодировалось?
И какая версия R/3?
Back to top
View user's profile Send private message Blog
stefan
Участник
Участник



Joined: 14 Feb 2008
Posts: 19

PostPosted: Wed Oct 08, 2008 2:38 pm    Post subject: Reply with quote

Да, выгружаю в текстовый файл. В нем не досовская кодировка.
Система 4.6c не юникодная.
Выгружаю.

Code:
  CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            filename            = zfilename
            filetype            =  'DAT'
       TABLES
            data_tab            = lt_tab
       EXCEPTIONS
            file_open_error     = 1
            file_write_error    = 2
            invalid_filesize    = 3
            invalid_table_width = 4
            invalid_type        = 5
            no_batch            = 6
            unknown_error       = 7
            OTHERS              = 8.
Back to top
View user's profile Send private message
Armann
Модератор
Модератор



Joined: 01 Jan 2008
Posts: 422
Location: Moscow

PostPosted: Wed Oct 08, 2008 5:38 pm    Post subject: Reply with quote

А в результате у нас файл с кодировкой WIN или абракадаброй?
Например в системе 4.0 в WS_DOWNLOAD/WS_UPLOAD при выгрузке/загрузке любого файла кроме BIN происходит перекодировка текстовых строк, в результате при выгрузке данных в кодировке DOS происходила фигня. Вроде как нота 368202 может помочь, но мне не помогла - пришлось писать свои реализации загрузки/выгрузки.
Back to top
View user's profile Send private message Blog
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.