Preserve Leading Spaces When Mapping to a Positional Data Format

About this task

In the EDIFACT and ANSI standards, leading spaces in fields are eliminated. However, in the CII format, according to the CII Syntax Rule, leading spaces are typically preserved (although they can be eliminated).

To preserve leading spaces in a map for translating CII to the positional format:

Procedure

  1. From the Sterling B2B Integrator Map Editor Edit menu, select Details.
  2. In the Map Details dialog box, select Use Configurable Trimming and click OK to close the dialog box.
  3. In each field on the positional side of the map, open the Field Properties dialog box, and click the Position tab.
  4. If the spaces are single-byte:
    1. In the characters used in empty portions of the map box, type SP.
    2. From the data alignment options, select beginning of the field.
  5. If the spaces in the field are double-byte and the data is encoded in Shift-JIS (windows code page 932), for Enter the character used in empty portions of the field, type 0x8140 or the appropriate key code combination.
  6. Click OK.