Banner

Attention: open in a new window. PDFPrintE-mail

2008
19
Jul

Discussing Unicode

Extract from SAP Help: "Prior to Basis Release 6.10, the code pages were listed in tables that contain the code page number, SAP characterID, and code point for each character.  As of Basis Release 6.10, characters are no longer based on SAP characterIDs but on standard Unicode scalar values. In addition, code pages contains a list of segments, and a code page building rule.

 

UNICODE CHARACTER ID

Unicode is an international standard that assigns characters from virtually every language and script a unique number, for example /B/ is U+0042 and /š/ is U+0161. The "U+" is a naming convention and the number is in hexadecimal notation. As of Basis Release 6.10 all characters are defined with a Unicode CharID, regardless of the system code page. For more information about the Unicode Standard, see the Unicode homepage: www.unicode.org

 

Note: The code pages formats in 4.6D and earlier releases and the code page format in 6.10 and later releases are incompatible, and code pages cannot be transported between releases using SAP character IDs and releasing using Unicode character IDs. It is possible to convert existing -- SAP character ID based -- code pages to Unicode-based code pages.

Checks

Tx: SCP: Check the Consistency of a Code Page

Report: RSCP0132 : Check the Consistency of a Code Page Segment

Report: RSCP0125 : Round Trip Measurement

 

Old

New

 

TCP02/3/7

TCPSPTS/L, TCPSBUILD

Code page maintenance  (Transaction)

SPAD

SCP

Code page comparison

RSCP0023

RSCP0129

Code page comparison (remote)

RSCP0023

RSCP0133

Upload/Download of code pages

RSTXCPAG

RSCP0025

Transport object for segments

 

R3TR SCPS

 

See OSS Note 747615 for a Tool for converting files from one code page to another.

 

Example ABAP using Codepage to upload an Excel file (according to OSS note 752835):

 

 cl_gui_frontend_services=>file_open_dialog(
   
exporting
     with_encoding           = 
'X'
   
changing
     file_table              = file_table
     rc                      = rc
     file_encoding           = 
l_encod
   exceptions
     file_open_dialog_failed = 
1
     cntl_error              = 
2
     error_no_gui            = 
3
     not_supported_by_gui    = 
4
     ).

    read table file_table into la_file index 1.
    
if sy-subrc eq 0.
      file_name1 = la_file.
    
endif.

 

    call method cl_gui_frontend_services=>gui_upload
    
exporting
      filename                = file_name1
      filetype                = 
'ASC'
      codepage                = 
l_encod
    
changing
      data_tab                = itab_excel
    
exceptions
      file_open_error         = 
1
      file_read_error         = 
2
      no_batch                = 
3
      gui_refuse_filetransfer = 
4
      invalid_type            = 
5
      no_authority            = 
6
      unknown_error           = 
7
      bad_data_format         = 
8
      header_not_allowed      = 
9
      separator_not_allowed   = 
10
      header_too_long         = 
11
      unknown_dp_error        = 
12
      access_denied           = 
13
      dp_out_of_memory        = 
14
      disk_full               = 
15
      dp_timeout              = 
16
      not_supported_by_gui    = 
17
      error_no_gui            = 
18
      
others                  = 19.

Last Updated (Tuesday, 30 November 1999 00:00)