Creating a Code Page
Use this procedure to create new code pages. SAP recommends that you copy an existing code page and modify the copied code page as described in the following section Copy and Modify a Code Page.

Do not change a SAP defined code page or segments of a SAP defined code page! Changing an SAP code page or its segments is a serious modification of an SAP object.
In the transaction SCP enter the code page you want to copy. For example, enter the code page 1116, which is the printer code page for HPLJIIID for ISO 8859/1 and then execute the transaction. The following screen shows the tree view of the topmost node of the code page. Open the two topmost nodes:

If you open the segment nodes, the characters will be displayed.
The code page is 1116, the Top Segment is 1116T and all other nodes (1116M,
ASCII, and so on) are Code Page Segments.
Assume that HP has added printer support for a Smily face, which is character U+263A and you want to copy the code page 1116 and add this character to the printer code page. Because the code page structure is hierarchical, copy the lowest node first and then work up the hierarchy.
Steps |
Example |
Copy the Segment you want to change (and higher nodes, if any) |
1116M |
Copy the Top segment: |
1116T |
Copy the Code Page |
1116 |
Check the consistency of the code page |
|
Add the character you want |
U+263A |
Check the consistency of the code page |
|
...
Copy the segment you want to change
Select the node 1116M and then select Copy from the toolbar. In the popup screen, enter the new segment ID, for example 3116M. (There is no naming convention for segments, but using "T" for "top" makes it easier to distinguish code page segments.) You will then be asked "Should the dependent entries also be copied?" Choose yes.
On the next screen Change View "Segments": Details, change the global name to 3116M (for our example) and make sure that the Segment Type is Code Page Segment w. Mappings Between Code Point & Byte Seq..
In the menu bar,
select
and
.
Note:
In this example there is only one segment below the Top Segment. In other cases, there may be multiple intervening nodes; repeat the same steps for each node.
Copy the Top segment
Select the node 1116T and then select Copy from the toolbar. In the popup screen, enter the new segment ID, for example 3116T. You will then be asked "Should the dependent entries also be copied?" Select yes.
On the next screen Change View "Segments": Details change the global name to Top segment of code page 3116 (for our example) and make sure that the Segment Type is Sequence of Other Code Page Segments (See Type Pool SCP). .
In the menu bar,
select
and
.
Create New Segment Chain
After copying a child node and the corresponding parent node, change the parent node so that it contains the new child node. Go back to the tree view and select the segment 3116T and then select Change from the toolbar. On the next screen Change View “Segments”: Details, doubleclick node Subsegements. Choose pushbutton New Entries from the toolbar. First add the new segment 3116M with the same detail information like 1116M.
Afterwards delete
subsegment 1116M from top segment 3116T. In the subsegments table choose the row which
contains subsegment 1116M and
select
.
Note:
If there are multiple intervening nodes, repeat the same steps for each parent node.
Select
. You will get a popup ‘After saving the
data in transaction SCP perform a consistency check for all code pages
changed. Do you want to save changes?’ Choose yes.
Copy the Code Page
Go back to the
entrance screen of transaction SCP. Choose radiobutton ‘Code Page’
in section Initial Node and enter 1116 in
selection field Code Page. All other fields can use the default
values.
Choose
.
Select the node
1116 and then choose
from the toolbar. In the popup screen, enter the new code page
ID, which must numeric; for example 9990. You will then be
asked ‘Should the dependent
entries also be copied.’ Choose yes.
In the Change View “Properties”: Details you see the Code Page Definition. Fill in the following fields (in our example all other fields can use the default values).
Code Page Definition
Name |
Name of the code page |
ZHPLJIIID |
Developed from |
Code page used to create this copy |
1116 |
System Code Page |
Can be used as a system code page |
No |
Output Code Page |
Can be used as an output code page |
Yes |
GUI Code Page |
Can be used as a Front End code page |
No |
Tool Code Page |
Can be used for internal conversion |
No |
Superimposed characters |
Multiple characters can be superimposed over each other (for example, in Thai) |
No |
Start Segment |
The start segment of the code page |
3116T |

SAP does not support any customer-defined system code pages or customer-defined GUI code pages.
Select
.
1. Check the consistency of the copied code page
●
Enter the code page
9990 in the entrance
screen of transaction SCP and choose
. Make
sure that all of the nodes are correct. Choose
.
●
In the entrance
screen of transaction SCP, enter code page 9990 and choose
radiobutton ‘Consistency Check’ in section Display or Check. In all other sections keep the default values.
Choose
.
● If an exception occurs, the applicable error category is marked ‘X’ in the table display. Click on the marked cell and press F1 to get more information about the error.
2. Add character to the segment
Go back to the
entrance screen, enter segment 3116M,
and choose
. Select node 3116M and then choose
from the toolbar. In the following screen, the
dialog structure in the left frame of the screen shows two folders
● Short Byte Sequences: (character less than 4 bytes long)
● Long Byte Sequences: (character more than 4 bytes long)
Select the folder Short Byte Sequences. Choose pushbutton New Entries. Add the following values:
Code Page Segment |
Character |
Multibyte Length |
Bytesequence |
3116M |
U+263A |
3 |
1CB665 |

Note: The multibyte length and byte sequence are made up numbers for our example.
Select
.
You will get a popup with warning ‘Segment 3116M was/is used in <xx> code pages’.
Reason: All changes to a code page segment are valid for all code pages that use that segment. This makes is easier to maintain multiple code pages, because changes apply to one or more code pages; this also makes it easier to damage more than one code page.
The segment is not saved yet. You can still cancel the changes or check first which code pages use this segment.
On the following popup screen ‘Do you want to save changes?’ select yes.
3. Check the consistency of the code page
Check the consistency of code page 9990 again as described above.
On the entrance
screen of transaction SCP, leave all fields empty, and choose
. Select
from the toolbar. A popup screen will offer the
following options.
● Code page
● Segment (Sequence)
● Segment (Mapping)
● Segment (Rule)
● Character
Select one of the options. In general, follow the same steps as described in Copy and Modify a Code Page, above. But there are some additional steps:
...
1. Code page specify the definition, including Code Page ID Name, Version, Start Segment (see 3. Copy the Code Page above). In addition, you must also fill in the following
○ Character set Family
■ EBCDIC
■ ISO/ASCII-based, 8 Bits
■ 7 seven bits only, but ISO / ASCII based
○ Byte Indicator
■ "SBCS" - one byte characters (printer code page 1116, for example)
■ "DBCS" - one byte characters mixed with two byte characters (one byte characters with multibyte characters. Eurojapan (6100), for example)
■ Mixed length (SJIS code page, for example)
○ Extension Method
■ all characters are equally long (for SBCS)
■ Fano rules
○ Memory Space: TSCPSEG
● Segment (Sequence): You must specify all subsegments
● Segment (Mapping): You must enter in all characters that you want to include in the segment. Select Short Byte Sequences and enter the characters you want to include in the segment, or select Long Byte Sequences for characters longer than 4 bytes.
● Segment (Rule): You must specify the rule. Rules exist for SAP Icons and Unicode. You cannot create new rules or modify existing rules,
Afterwards check the consistency of the codepage as described above.