Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 for Enterprise Applications Description, User's Guide and Reference


2.2.10 Setting up a code page for connecting to a Unicode version SAP system

JP1/AJS3 for EAP communicates with SAP systems by using an RFC library that does not support Unicode. Character data sent or received when connecting to a Unicode version SAP system must first be converted into Unicode from the code page on the JP1/AJS3 for EAP side, or conversely on the SAP system side.

The default code page on the JP1/AJS3 for EAP side is set to the German code page number 1100. Therefore, to exchange character data with a Unicode version SAP system, you must specify code page number 8000, which is the Shift JIS code page number.

To use Japanese UTF-8 as the character code in Linux, you must specify the same code page number.

Use either of the methods described below to set up the code page.

Organization of this subsection

(1) Setting up the default code page

Set up the default code page in the Codepage key in the command section of the environment settings file for job control. For details about the setup method, see 2.2.1 Setting the operating environment for JP1/AJS3 for EAP (job control).

(2) Specifying a separate code page for each job to be executed

Define the following environment variable in the execution environment of the command provided by JP1/AJS3 for EAP:

SAP_CODEPAGE=8000

If you are using a JP1/AJS custom job, you cannot define an environment variable for each job. In this case, define the code page as a system environment variable of the machine on which JP1/AJS3 for EAP is installed, or set up the default code page by following the procedure described in (1) Setting up the default code page.

Important
  • If the code page number is not correctly set up, non-US7ASCII character data will be corrupted. Even when a code page number is set up, data corruption occurs if the SAP system cannot convert the character data. Corrupted character data is displayed as a hash mark (#).

  • If an environment variable (SAP_CODEPAGE) is specified, the specification in this environment variable takes precedence over the specification for the Codepage key in the environment settings file.