2. EDIFACT Mapping Rules
2.1 How to Look at Segment Table/Mapping Table
How to look at the segment table and mapping table is explained below using the examples of thesegment table and mapping table.
See "Appendix Table 14-2-1 Example of Segment Table" and "Appendix Table 14-2-2 Example ofMapping Table" as the following corresponds to the descriptions of "Appendix Table 14-2-1 Exampleof Segment Table" and "Appendix Table 14-2-2 Example of Mapping Table".
In addition, see the Procedure Specification for the segment table and mapping table of procedures
subject to EDIFACT.
For PADIS EDIFACT, the same segment table and mapping table as UN/EDIFACT is used.

2.1.1 Segment Table(1) All the segments, including those not used in NACCS, are described.
(2) Tag column
Segment tags are described.
(3) UN/EDIFACT S/R column
Described using the mandatory/conditional classification and the maximum number ofrepetitions in United Nations standard messages as reference.
M : Mandatory (mandatory item)
C : Conditional (conditional item)(4) NACCS S/R column
Indicates the mandatory/conditional classification and the maximum number of repetitions inNACCS EDIFACT messages.
(The mandatory/conditional classification and the maximum number of repetitions of theNACCS S/R column shall be set for EDIFACT conversion process)M : Mandatory (mandatory item)
C : Conditional (conditional item)
X : Not used (item not used in NACCS)
When the segment or segment group is repeatedly used and the usage is different for each
repetition order, the number in parenthesis in the maximum number of repetitions indicatesthe order of a segment or segment group used.
(5) Field Name (for reference) column
Indicates the item number and field name in the List of Input/Output Fields of the NACCS
Procedure Specification.
When the use of a dummy data in the segment is required by syntax rules, it is described as"**.dummy data value (used as a dummy)"

Appendix 14-2-1

2.1.2 Mapping Table(1) Only the segments used in NACCS are described.
(2) UN/EDIFACT S column
Described using the mandatory/conditional classification of each data element in United
Nations standard messages as reference.
M : Mandatory (mandatory item)
C : Conditional (conditional item)(3) NACCS S column
Indicates the mandatory/conditional classification of each data element in NACCS.
(The mandatory/conditional classification of the NACCS S column shall be set for theEDIFACT conversion process)M : Mandatory (mandatory item)
C : Conditional (conditional item)
X : Not used (item not used in NACCS)(4) UN/EDIFACT FORMAT column
Described using the attribute and length of each data element in United Nations standard
messages as reference.
a: Alphabetical charactera3: Alphabetical characters, fixed length of 3 charactersn: Numeric charactern3: Numeric characters, fixed length of 3 characters
an: Alphanumeric character an3: Alphanumeric characters, fixed length of 3 characters
a..3: Alphabetical characters, variable length of up to 3charactersn..3: Numeric characters, variable length of up to 3charactersan..3: Alphanumeric characters, variable length of up to 3characters(5) NACCS FORMAT column
Indicates the attribute and length of each data element in NACCS.
(6) Item No. column
Indicates the item number in the List of Input/Output Fields of the NACCS ProcedureSpecification.
(7) Field Name/Setting Value column
Indicates the content of data set in NACCS.
• For those with an entry in the Item No. column, the input/output field name of the NACCS
Procedure Specification is described.
(8) Special Notes column
Indicates the additional information of the Field Name/Setting Value column.
• The code value is described with "=" used as a delimiter. (Example: 9=Original)• The local codes provided by NACCS Center are indicated by enclosing in "[ ]".
(9) Each segment is described using sample data in NACCS.
(10) Segment Group No. column
In case of a segment comprising a segment group, the segment group number to which
the segment belongs is described.

Appendix 14-2-2

(11) Attribute and length of numeric items
The attribute of numeric items is described as "n", and the length does not include decimal
point and minus sign characters.
However, NACCS EDI messages are processed with the attribute being assumed as "an"and a decimal point and minus sign character being counted as one in the length, and theattribute and length in the List of Input/Output Fields of the NACCS Procedure Specification
are used to convert to NACCS EDI messages.
Example)Example of values
actually entered
10.5

Mapping Table-10.5n..3

NACCS ProcedureSpecification
an4n..3

an5* Notes on describing a numeric data element[1] A period (".") is uniformly used as a decimal point in NACCS.
[2] A comma separator for every 3 digits shall not be used.
[3] When the data value is negative, a minus sign ("-") shall immediately precede thevalue.

(12) When an input field in the NACCS Procedure Specification is divided into multiple dataelements, "(〃)" is given in the Field Name/Setting Value column.
(Divided into segments of the length given in the NACCS FORMAT column.)
Example) Case of an input field "10. Ship’s Agent (an50)" in the NACCS ProcedureSpecification
TAG

COMP

NAME

UN/EDIFACT

NACCS

Item

Field

No.

Name/SettingSpecial NotesValue
SC058

NAME AND

FORMATS FORMATCC

M an..35

M an..35

10

Ship's agent

Can..35

C an..15

10(〃)C

an..35

XC

an..35

XC

an..35X

ADDRESS
3124

Name andaddress line

3124

Name andaddress line

3124

Name andaddress line

3124

Name andaddress line

3124

Name andaddress line(13) When multiple data elements of EDIFACT messages are combined (without adding adelimiter) into an input/output field in the NACCS Procedure Specification, "(〃)" is given inthe Field Name/Setting Value column.
Example) Case of an output field "10. Ship’s Agent (an50)" in the NACCS ProcedureSpecification(See the example of (12) above.)

Appendix 14-2-3

(14) When multiple input/output fields in the NACCS Procedure Specification are combined into adata element of EDIFACT messages, multiple item numbers are given in the Item No.
column.
Example) Case of input fields "20. Container Size Code (an2)" and "21. Container Type
Code (an2)" in the NACCS Procedure Specification
TAG

COMP

NAME

UN/EDIFACT

NACCS

Item FieldNo.

Special Notes

Name/SettingValueSC224

EQUIPMENTFORMAT

SIZE CS FORMATM

AND TYPE
8155

Equipment size and C

an..10M an..4

type identification

20

Container Size

21

CodeContainer Type
Code(ISO 6346)

1131

Code list qualifier

C

an..3

X

3055

Code list responsible C

an..3

X

an..35X

agency, coded
8154

Equipment size and C
type(15) When a data element of EDIFACT messages is divided into multiple input/output fields in theNACCS Procedure Specification, multiple item numbers are given in the Item No. column.
Example) Case of output fields "20. Container Size Code (an2)" and "21. Container TypeCode (an2)" in the NACCS Procedure Specification(See the example of (14) above.)

Appendix 14-2-4

Appendix Table 14-2-1 Example of Segment Table<CUSREP (D98B)/Registration of Vessel Operation Information (VTX01)>
UN/EDIFACT

NACCS(Input Fields) (*5)

TagUNH

NameMessage header

(*1)
SM

(*2)
R1

(*3)
SM

(*4)
R1BGM

Beginning of message

M1M

1

1. Input common fields (Procedure Code)
1. Input common fields (Input Message ID)
2. Processing type code

DTM

Date/time/periodC9X

QTY

QuantityC9X

POC

Purpose of conveyance call

C99

X

FTX

Free text

C

9M

1(1)

1. Input common fields (Identifying Number)
1. Input common fields (User Password)
1. Input common fields (Message Tag)
1. Input common fields (Index Tag)FTXFree text

C9C

1(2)

4. Order of port call to Japan when correcting one port

FTXFree text

C9C

1(3)

26. Existence of ship's doctor
27. Name of ship's doctor

1(4)12. Voyage number(2)Field Name (for reference)
Message reference number

FTX

Free text

C9C

MEA

Measurements

C

9X

GIS

General indicator

C

9C

1(1)

10. Hereafter, oceangoing for the moment

GIS

General indicator

C

9C

1(2)

13. By liner/tramper

C

99

X

RFF

Reference

M

1

X

DTM

Date/time/period

C

1

X

C

99

X

LOC

Place/location identification

M

1X

DTM

Date/time/period

C

9X

C

9C

1

Ship sanitation control certificate information

DOC

Document/message details

M

1M

1

**.796 (used as a dummy)
22. Type of ship sanitation control certificate

Segment group 1Segment group 2Segment group 3RFFReferenceC1

X

DTM

Date/time/periodC1

C1

25. Ship sanitation control certificate issuance date

LOC

Place/location identification

C1

C

1

23. Ship sanitation control certificate issuance port code
24. Ship sanitation control certificate issuance port name(*1) Indicates the types of "M" (mandatory item) and "C" (conditional item) of the segment or segment group in United Nations standard messages.
(*2) Indicates the maximum number of repetitions of the segment or segment group in United Nations standard messages.
(*3) Indicates the types of "M" (mandatory item), "C" (conditional item), and "X" (unused item) of the segment or segment group in NACCS.
(*4) Indicates the maximum number of repetitions of the segment or segment group in NACCS.
When the segment or segment group is repeatedly used and the usage is different for each repetition order,
the number in parenthesis in the maximum number of repetitions indicates the order of a segment or segment group used.
(*5) Indicates the item number and field name in the List of Input/Output Fields of the NACCS Procedure Specification.

Appendix 14-2-5

Appendix 14-2-2 Example of Mapping Table---SEGMENT GROUP 5--(*1)

C9(*2)

C
(*3)

(*4)

COMP NAME

NAD3035

C082

UN/EDIFACTNACCSSFORMAT S
FORMAT

NAME AND ADDRESSPARTY QUALIFIER

(*6)
M
M

(*7)
1an..3(*8)
M
M

PARTY IDENTIFICATION DETAILS

C

3039
1131
3055

Party id. identification
Code list qualifier
Code list responsible agency, codedMCC

an..35an..3an..3M
X
M

3124
3124
3124
3124
3124

NAME AND ADDRESSName and address line
Name and address line
Name and address line
Name and address line
Name and address line

C
M
CCC
C

an..35an..35an..35an..35an..35C
M
CC
X
X

3036
3036
3036
3036
3036
3045

PARTY NAME
Party name
Party name
Party name
Party name
Party name
Party name format, coded

C
M
CC
C
C
C

an..35an..35an..35an..35an..35an..3C
M
CX
X
X
X

an..3X

C058

C080

(*5)
(*13)

NAD:NAME AND ADDRESS
TAG

1(1)

(*14)
Item
No.

(*9)
1an..3(*10)

an..415

Field Name/Setting Value
(*12)

OV

OV=Owner of means of transport

M

an..3

Vessel owner

code

166

166=US, National Motor FreightClassification

an..35an..35an..3517
17
17

Vessel owner(Repeated)(Repeated)addressan..35an..3516
16

Vessel owner name
(Repeated)::3207

COUNTRY, CODED

CSpecial Notes

(*11)

(*15)
NAD+OV+ABCD::166++TOKYO ABC SEALINE CO LTD'(*1)

Indicates the number of the segment group which includes the segment in United Nations standard messages.

(*2)

Indicates the types of "M" (mandatory item) and "C" (conditional item) of the segment group in United Nations standard messages.

(*3)

Indicates the maximum number of repetitions of the segment group in United Nations standard messages.

(*4)

Indicates the types of "M" (mandatory item), "C" (conditional item), and "X" (unused item) of the segment group in NACCS.

(*5)

Indicates the maximum number of repetitions of the segment group in NACCS.

(*6)

Indicates the types of "M" (mandatory item) and "C" (conditional item) of each data element in United Nations standard messages.

(*7)

Indicates the attribute and length of each data element in United Nations standard messages as reference.

(*8)

Indicates the types of "M" (mandatory item), "C" (conditional item), and "X" (unused item) of each data element in NACCS.

(*9)

Indicates the attribute and length of each data element in NACCS.

(*10) Indicates the item number in the List of Input/Output Fields of the NACCS Procedure Specification.
(*11) Indicates the item and data value set in NACCS.
(*12) Indicates the additional information of the item and data value set in NACCS.
The code enclosing in "[ ]" indicates the local codes provided by NACCS Center.
(*13) Indicates the maximum number of repetitions of the segment in United Nations standard messages.
(*14) Indicates the maximum number of repetitions of the segment in NACCS.
(*15) Indicates the sample data of the segment in NACCS.

Appendix 14-2-6