SAP ABAP Data Element TDCODEPAGE (Code page (character set) of a font family)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-SCR (Application Component) SAPscript
     STXD (Package) SAPscript
Basic Data
Data Element TDCODEPAGE
Short Description Code page (character set) of a font family  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type CPCODEPAGE    
Data Type NUMC   Character string with only digits 
Length 4    
Decimal Places 0    
Output Length 4    
Value Table TCP00    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short ChSet 
Medium 15 Character set 
Long 20 Character set 
Heading ChSet 
Documentation

Definition

Character set (codepage) of a font family. Characters entered are interpreted by SAPscript in the SAP system character set currently valid. If, however, a character set is specified for a font family in the SAPscript font maintenance, all subsequent characters are interpreted in this character set as soon as a corresponding font is activated.

This character-set change is terminated if a new font is selected which has no character set maintained for its font family. All subsequent characters are then again interpreted in the system character set.

When a character set is specified for a font family, the character set is changed as described and a print-control sequence is sent to the printer, when the document created is output, as soon as a corresponding font is selected.

The print-control sequences are defined in Table T022D, and are used, for example, for changing the character set on the printer. The print controls used by SAPscript to change the character set on the printer must have the code 'Sxxxx', where 'xxxx' is the four-digit number of the character set. The print control S0000 must set the character set usually used by the printer.

Example: If there is a printer type 'EXAMPLE ', which can print the machine-readable OCR-A digits 0 to 9 once it has received the control sequence 'ESCAPE O', the following must be maintained in order to print these digits with SAPscript:
1. A character set is created which contains the ten OCR-A digits, where the hex codes of these digits are the same as those for the "normal" digits 0 to 9 of the system character set. Imagine the character set has the number '4444'.
2. A font family 'OCRA' with a character set 4444 must be created in the SAPscript font maintenance.
3. The printer character set of the printer type 'EXAMPLE' must have ten new entries with the hex codes of the OCR-A digits used on the printer.
4. A control sequence 'ESCAPE 0' is maintained in Table T022D under the key 'EXAMPLE' 'S4444'.

If a system font is now selected in SAPscript with 'OCRA' as a font family, all subsequent digits 0 to 9 will be output on the printer as OCR-A digits.

History
Last changed by/on SAP  20010130 
SAP Release Created in