DIRDEFDirectory definition

This Directory definition message (DIRDEF) permits the transfer of the contents of a UN/EDIFACT or American National Standards Institute (ANSI) Accredited Standards Committee (ASC) X12 Directory set or parts thereof.

  • UNH
    M必须(Mandatory)
    Repeat 1

    To head, identify and specify a message.

  • BGM
    BEGINNING OF MESSAGE
    M必须(Mandatory)
    Repeat 1

    To indicate the type and function of a message and to transmit the identifying number.

  • DII
    DIRECTORY IDENTIFICATION
    M必须(Mandatory)
    Repeat 1

    To identify a directory and to give its release, status, controlling agency, language and maintenance operation.

  • DTM
    DATE/TIME/PERIOD
    O可选(Optional)
    Repeat 9

    To specify date, and/or time, or period.

  • FTX
    FREE TEXT
    O可选(Optional)
    Repeat 9

    To provide free form or coded text information.

  • NADLoop1NAME AND ADDRESS LOOPO可选(Optional)Repeat 9
    NADCTALoop1
    • NAD
      NAME AND ADDRESS
      M必须(Mandatory)
      Repeat 1

      To specify the name/address and their related function, either by C082 only and/or unstructured by C058 or structured by C080 thru 3207.

    • CTALoop1CONTACT INFORMATION LOOPO可选(Optional)Repeat 9
      CTACOM
      • CTA
        CONTACT INFORMATION
        M必须(Mandatory)
        Repeat 1

        To identify a person or a department to whom communication should be directed.

      • COM
        COMMUNICATION CONTACT
        O可选(Optional)
        Repeat 9

        To identify a communication number of a department or a person to whom communication should be directed.

  • MSGLoop1MESSAGE TYPE IDENTIFICATION LOOPO可选(Optional)Repeat 9999
    MSGATTFTXDTMSGULoop1FNTLoop1
    • MSG
      MESSAGE TYPE IDENTIFICATION
      M必须(Mandatory)
      Repeat 1

      To identify a message type and to give its class and maintenance operation.

    • ATT
      ATTRIBUTE
      O可选(Optional)
      Repeat 99

      To identify a specific attribute.

    • FTX
      FREE TEXT
      O可选(Optional)
      Repeat 999

      To provide free form or coded text information.

    • DTM
      DATE/TIME/PERIOD
      M必须(Mandatory)
      Repeat 1

      To specify date, and/or time, or period.

    • SGULoop1SEGMENT USAGE DETAILS LOOPO可选(Optional)Repeat 999
      SGUATTFTXGRULoop1
      • SGU
        SEGMENT USAGE DETAILS
        M必须(Mandatory)
        Repeat 1

        To specify the details of the usage of a segment within a message type structure.

      • ATT
        ATTRIBUTE
        O可选(Optional)
        Repeat 9

        To identify a specific attribute.

      • FTX
        FREE TEXT
        O可选(Optional)
        Repeat 99

        To provide free form or coded text information.

      • GRULoop1SEGMENT GROUP USAGE DETAILS LOOPO可选(Optional)Repeat 1
        GRUATTFTX
        • GRU
          SEGMENT GROUP USAGE DETAILS
          M必须(Mandatory)
          Repeat 1

          To specify the usage of a segment group within a message type structure and its maintenance operation.

        • ATT
          ATTRIBUTE
          O可选(Optional)
          Repeat 9

          To identify a specific attribute.

        • FTX
          FREE TEXT
          O可选(Optional)
          Repeat 99

          To provide free form or coded text information.

    • FNTLoop1FOOTNOTE LOOPO可选(Optional)Repeat 99
      FNTRELGIRATTFTX
      • FNT
        FOOTNOTE
        M必须(Mandatory)
        Repeat 1

        To identify a footnote.

      • REL
        RELATIONSHIP
        O可选(Optional)
        Repeat 1

        To identify relationships between objects.

      • GIR
        RELATED IDENTIFICATION NUMBERS
        O可选(Optional)
        Repeat 9

        To specify a related set of identification numbers.

      • ATT
        ATTRIBUTE
        O可选(Optional)
        Repeat 9

        To identify a specific attribute.

      • FTX
        FREE TEXT
        O可选(Optional)
        Repeat 9

        To provide free form or coded text information.

  • SEGLoop1SEGMENT IDENTIFICATION LOOPO可选(Optional)Repeat 9999
    SEGATTFTXELUFNTLoop2
    • SEG
      SEGMENT IDENTIFICATION
      M必须(Mandatory)
      Repeat 1

      To identify a segment and give its class and maintenance operation.

    • ATT
      ATTRIBUTE
      O可选(Optional)
      Repeat 9

      To identify a specific attribute.

    • FTX
      FREE TEXT
      O可选(Optional)
      Repeat 9

      To provide free form or coded text information.

    • ELU
      DATA ELEMENT USAGE DETAILS
      O可选(Optional)
      Repeat 99

      To specify the usage of a data element.

    • FNTLoop2FOOTNOTE LOOPO可选(Optional)Repeat 99
      FNTRELGIRATTFTX
      • FNT
        FOOTNOTE
        M必须(Mandatory)
        Repeat 1

        To identify a footnote.

      • REL
        RELATIONSHIP
        O可选(Optional)
        Repeat 1

        To identify relationships between objects.

      • GIR
        RELATED IDENTIFICATION NUMBERS
        O可选(Optional)
        Repeat 9

        To specify a related set of identification numbers.

      • ATT
        ATTRIBUTE
        O可选(Optional)
        Repeat 9

        To identify a specific attribute.

      • FTX
        FREE TEXT
        O可选(Optional)
        Repeat 9

        To provide free form or coded text information.

  • CMPLoop1COMPOSITE DATA ELEMENT IDENTIFICATION LOOPO可选(Optional)Repeat 9999
    CMPATTFTXELUFNTLoop3
    • CMP
      COMPOSITE DATA ELEMENT IDENTIFICATION
      M必须(Mandatory)
      Repeat 1

      To identify a composite data element and to give its class and maintenance operation.

    • ATT
      ATTRIBUTE
      O可选(Optional)
      Repeat 9

      To identify a specific attribute.

    • FTX
      FREE TEXT
      O可选(Optional)
      Repeat 9

      To provide free form or coded text information.

    • ELU
      DATA ELEMENT USAGE DETAILS
      O可选(Optional)
      Repeat 99

      To specify the usage of a data element.

    • FNTLoop3FOOTNOTE LOOPO可选(Optional)Repeat 99
      FNTRELGIRATTFTX
      • FNT
        FOOTNOTE
        M必须(Mandatory)
        Repeat 1

        To identify a footnote.

      • REL
        RELATIONSHIP
        O可选(Optional)
        Repeat 1

        To identify relationships between objects.

      • GIR
        RELATED IDENTIFICATION NUMBERS
        O可选(Optional)
        Repeat 9

        To specify a related set of identification numbers.

      • ATT
        ATTRIBUTE
        O可选(Optional)
        Repeat 9

        To identify a specific attribute.

      • FTX
        FREE TEXT
        O可选(Optional)
        Repeat 9

        To provide free form or coded text information.

  • ELMLoop1SIMPLE DATA ELEMENT DETAILS LOOPO可选(Optional)Repeat 9999
    ELMATTFTX
    • ELM
      SIMPLE DATA ELEMENT DETAILS
      M必须(Mandatory)
      Repeat 1

      To identify a simple data element and give related details.

    • ATT
      ATTRIBUTE
      O可选(Optional)
      Repeat 9

      To identify a specific attribute.

    • FTX
      FREE TEXT
      O可选(Optional)
      Repeat 9

      To provide free form or coded text information.

  • CDSLoop1CODE SET IDENTIFICATION LOOPO可选(Optional)Repeat 9999
    CDSFTXCDVLoop1
    • CDS
      CODE SET IDENTIFICATION
      M必须(Mandatory)
      Repeat 1

      To identify a code set and to give its class and maintenance operation.

    • FTX
      FREE TEXT
      O可选(Optional)
      Repeat 9

      To provide free form or coded text information.

    • CDVLoop1CODE VALUE DEFINITION LOOPO可选(Optional)Repeat 9999
      CDVATTFTX
      • CDV
        CODE VALUE DEFINITION
        M必须(Mandatory)
        Repeat 1

        To provide information related to a code value.

      • ATT
        ATTRIBUTE
        O可选(Optional)
        Repeat 9

        To identify a specific attribute.

      • FTX
        FREE TEXT
        O可选(Optional)
        Repeat 9

        To provide free form or coded text information.

  • UNT
    M必须(Mandatory)
    Repeat 1

    To end and check the completeness of a message.

Segment
EDIFACT EDI Release D10B
To head, identify and specify a message.
Elements
  • UNH010062MESSAGE REFERENCE NUMBER
    AN
    M必须(Mandatory)
    Min 0 / Max 14

    Unique message reference assigned by the sender.

  • UNH02S009MESSAGE IDENTIFIERM必须(Mandatory)
    0065005200540051005701100113
    • UNH02010065Message type
      ID
      M必须(Mandatory)
      Min 0 / Max 6

      Code identifying a type of message and assigned by its controlling agency.

      Codes (211)
    • UNH02020052Message version number
      ID
      M必须(Mandatory)
      Min 0 / Max 3

      Version number of a message type.

      Codes (8)
    • UNH02030054Message release number
      ID
      M必须(Mandatory)
      Min 0 / Max 3

      Release number within the current message version number.

      Codes (55)
    • UNH02040051Controlling agency, coded
      ID
      M必须(Mandatory)
      Min 0 / Max 3

      Code identifying a controlling agency.

      Codes (26)
    • UNH02050057Association assigned code
      AN
      O可选(Optional)
      Min 0 / Max 6

      Code, assigned by the association responsible for the design and maintenance of the message type concerned, which further identifies the message.

    • UNH02060110Code list directory version number
      AN
      O可选(Optional)
      Min 0 / Max 6

      Version number of the code list directory.

    • UNH02070113Message type sub-function identification
      ID
      O可选(Optional)
      Min 0 / Max 6

      Code identifying a sub-function of a message type.

      Codes (21)
  • UNH030068COMMON ACCESS REFERENCE
    AN
    O可选(Optional)
    Min 0 / Max 35

    Reference serving as a key to relate all subsequent transfers of data to the same business case or file.

  • UNH04S010STATUS OF THE TRANSFERO可选(Optional)
    00700073
    • UNH04010070Sequence of transfers
      N
      M必须(Mandatory)
      Min 0 / Max 2

      Number assigned by the sender indicating the transfer sequence of a message related to the same topic. The message could be an addition or a change to an earlier transfer related to the same topic.

    • UNH04020073First and last transfer
      ID
      O可选(Optional)
      Min 1 / Max 1

      Indication used for the first and last message in a sequence of messages related to the same topic.

      Codes (2)
  • UNH05S016MESSAGE SUBSET IDENTIFICATIONO可选(Optional)
    0115011601180051
    • UNH05010115Message subset identification
      AN
      M必须(Mandatory)
      Min 0 / Max 14

      Coded identification of a message subset, assigned by its controlling agency.

    • UNH05020116Message subset version number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Version number of the message subset.

    • UNH05030118Message subset release number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Release number within the message subset version number.

    • UNH05040051Controlling agency, coded
      ID
      O可选(Optional)
      Min 0 / Max 3

      Code identifying a controlling agency.

      Codes (26)
  • UNH06S017MESSAGE IMPLEMENTATION GUIDELINE IDENTIFICATIONO可选(Optional)
    0121012201240051
    • UNH06010121Message implementation guideline identification
      AN
      M必须(Mandatory)
      Min 0 / Max 14

      Coded identification of the message implementation guideline, assigned by its controlling agency.

    • UNH06020122Message implementation guideline version number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Version number of the message implementation guideline.

    • UNH06030124Message implementation guideline release number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Release number within the message implementation guideline version number.

    • UNH06040051Controlling agency, coded
      ID
      O可选(Optional)
      Min 0 / Max 3

      Code identifying a controlling agency.

      Codes (26)
  • UNH07S018SCENARIO IDENTIFICATIONO可选(Optional)
    0127012801300051
    • UNH07010127Scenario identification
      AN
      M必须(Mandatory)
      Min 0 / Max 14

      Code identifying scenario.

    • UNH07020128Scenario version number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Version number of a scenario.

    • UNH07030130Scenario release number
      AN
      O可选(Optional)
      Min 0 / Max 3

      Release number within the scenario version number.

    • UNH07040051Controlling agency, coded
      ID
      O可选(Optional)
      Min 0 / Max 3

      Code identifying a controlling agency.

      Codes (26)