UN/EDIFACT DRAFT DIRECTORY
PART 4 UNITED NATIONS RULES FOR ELECTRONIC DATA INTERCHANGE
FOR ADMINISTRATION, COMMERCE AND TRANSPORT
CHAPTER 2.4 - UN/EDIFACT Message Design Guidelines
TABLE OF RULESRules for the design of new data elements RULE 1 ......... RULE 2 ......... Rules associated with the design of coded data elements RULE 3 ......... RULE 4 ......... Rules for the design of composite data elements RULE 5 ......... RULE 6 ......... RULE 7 ......... RULE 8 ......... RULE 9 ......... RULE 10 ........ RULE 11 ........ RULE 12 ........ RULE 13 ........ RULE 14 ........ RULE 15 ........ Rules for UN/EDIFACT composite data element maintenance RULE 16 ........ RULE 17 ........ RULE 18 ........ Rules for the design of new segments RULE 19 ........ RULE 20 ........ RULE 21 ........ RULE 22 ........ RULE 23 ........ RULE 24 ........ RULE 25 ........ RULE 26 ........ RULE 27 ........ Rules for UN/EDIFACT segment maintenance RULE 28....... RULE 29....... Rules for segment groups design RULE 30....... RULE 31....... Rules for message design RULE 32....... RULE 33....... RULE 34....... RULE 35....... RULE 36....... RULE 37....... Rules for the design of message types RULE 38....... Rules for the use of UNS segments RULE 39....... RULE 40....... SECTION 1 1. INTRODUCTION1.1 Guidelines & Rules1.1.1 One of the key requirements before organizations can exchange administrative, commercial and transport information between their computer applications, without manual intervention, is agreement on the content and structure of the information to be transmitted. 1.1.2 In UN/EDIFACT, this is achieved by developing United Nations Standard Messages (UNSMs), for both national and international use. 1.1.3 The guidelines and rules relate to work carried out by the United Nations Economic Commission for Europe, Working Party Number 4 (UN/ECE/WP.4) and the International Organization for Standardization (ISO), known as EDIFACT (Electronic Data Interchange for Administration, Commerce and Transport). 1.1.4 At the regional level, the work of the UN/ECE is supported by UN/EDIFACT Rapporteur's Advisory and Support Teams (RTs). The RTs provide a range of support and advisory services for their region, and the full addresses and contact numbers for each of the current RTs are given in Informative Annex B. 1.1.5 Most UN/EDIFACT RTs will have available (or will have access to) a database (known as a UN/EDIFACT database) which will normally contain both the current UN/EDIFACT Working Directory, and the UNTDED directory (United Nations Trade Data Element Directory - ISO 7372). Any user requiring information regarding UN/EDIFACT directories should contact their regional EDIFACT Secretariat (see Informative Annex B). 1.1.6 These guidelines and rules are intended for: a) those who want to submit a draft message for registration as a new UNSM. To achieve this status: -the proposed draft message and its contents shall be designed for International use; -there must be no existing UNSM having a function identical to, nor one encompassing the function of, the proposed draft, and -the proposer(s) of the draft message need to accept that the message may be the subject of joint development, if other sectors and/or Rapporteurs' teams indicate interest in participating in the development of the message. b) those who wish to propose an amendment to an existing UNSM by means of a "Change Request"; and c) use by RTs for future technical assessment. 1.1.7 Many sections of this document are divided into sub-sections identifying "Guidelines" and "Rules". The sub-sections under the heading of "Rules" must be observed by message designers. Correct application of the rules will be verified during the course of the technical assessment of messages submitted for consideration as UNSMs. 1.1.8 The sub-sections under the heading of "Guidelines" are provided as further clarification to the UNSM message design process, and may detail additional message design concepts which may be applied at the discretion of message designers. The guideline sub-sections contents' will not be the subject of any technical assessment considerations. 1.1.9 It is essential that newcomers to the UN/EDIFACT process should be familiar with the available supporting documentation (see 1.3 below), and in particular with the rules for Syntax specified in ISO 9735. 1.1.10 Rules shown in this document shall be followed, whereas the guidelines shown are intended as an aid to message designers. 1.2 Terms and Definitions
1.2.1 The general terms used in these guidelines are those specified
in ISO 9735.
Code Set: A set of code values related to a specific coded data
element and specified in a Code List Directory.
Component Data Element: A simple data element which is a subordinate
portion of a composite data element and in an
interchange is identified by its position
within the composite data element. (ISO 9735)
Composite Data Element: A data element containing two or more
component data elements. (ISO 9735)
Data: A representation of facts, concepts or instructions in a
formalized manner suitable for communication, interpretation or
processing by human beings or by automatic means. (ISO 2382)
Data Element: A unit of data which in a certain context is
considered indivisible (ISO 2382). A unit of data
for which the identification, description and value
representation have been specified. (ISO 9735)
Electronic Data Interchange: The exchange, between organizational
entities, of computer processable data
in a standard format.
(ISO/IEC JTC 1/WG3/N106)
Externally Maintained Code List: A list of code values, not included
in a UN/EDIFACT Code List Directory,
that is maintained and published by
a recognized Maintenance Agency.
Interchange: Communication between partners in the form of a
structured set of messages and service segments starting
with an interchange control header and ending with an
interchange control trailer. (ISO 9735)
Message: An ordered series of characters intended to convey
information (ISO 2382). A set of segments in the order
specified in a message directory starting with the message
header and ending with the message trailer. (ISO 9735)
Message Type: An identified and structured set of data elements
covering the requirements for a specified type of
transaction, e.g. invoice. (ISO 9735)
Open-EDI: Automated electronic data interchange performed by multiple
participants capable of multiple, simultaneous transactions
using public standards and pre-defined, structured data to
accomplish an explicit shared business goal.
(ISO/IEC JTC 1/WG3/N106)
Qualifier: A data element whose value shall be expressed as a code
that gives specific meaning to the function of another
data element, composite data element or segment. (ISO 9735)
Segment Group: A segment may depend on a segment on a higher
hierarchical level in a message structure and
consequently be nested in that segment. (ISO 9735)
Segment: An identified hierarchical set of segments and/or segment
groups within a message
Separator Character: A character used for syntactical separation of
data. (ISO 9735)
Simple Data Element: A data element containing a single value.
(ISO 9735)
Syntax Rules: Rules governing the structure of an interchange and its
functional groups, messages, segments and data elements.
(ISO 9735)
Tag: A unique code for the identification of a message type, segment,
composite data element or data element.
Trigger Segment: The first segment in a segment group. No repetition
is allowed for this segment and it is mandatory
within the segment group.
UNSM: A message may be referred to as a UN/EDIFACT standardized
message only if it complies with the rules and directories
in the United Nations Trade Data Interchange Directory
(UNTDID), and if it has been approved by the United Nations
Economic Commission for Europe (UN/ECE) as a Status 2 message.
1.3 Related Documentation
1.3.1 UN/EDIFACT documentation is published and maintained by the
United Nations Economic Commission for Europe, Working Party
Number 4 (UN/ECE/WP.4) and the International Organization for
Standardization (ISO).
1.3.2 This documentation forms a set of internationally agreed
standards, directories and guidelines for the electronic
interchange of structured data, and in particular, that
related to trade in goods and services, between independent
computerized information systems.
Within the context of UN/EDIFACT, the major relevant documents
are:
Guidelines & Rules
- ISO 9735 EDIFACT Syntax Rules
- The UN/EDIFACT Syntax Implementation Guidelines
- The UN/EDIFACT Message Design Guidelines
- The UN/EDIFACT Rapporteur's Procedures & Message
documentation rules
Directories
- UNTDID : The United Nations Trade Data Interchange
Directory (which is the current UN/EDIFACT
Standards Directory Set),
which comprises:
EDMD - the EDIFACT messages directory
EDSD - the EDIFACT segments directory
EDCD - the EDIFACT composite data elements directory
EDED - the EDIFACT data elements directory
(part of the UNTDED, United Nations Trade Data
Element Directory, also released as ISO 7372)
EDCL - the EDIFACT codes list directory
- UN/EDIFACT Working Directory Set which includes:
TRMD - Trial Messages Directory
TRSD - Trial Segments Directory
TRCD - Trial Composite Data Elements Directory
TRED - Trial Data Elements Directory
1.3.3 Should message designers not be familiar with these
publications, they should consult their national committee
/organization for the Facilitation of International Trade
Procedures, or the relevant standardization organization in
their country responsible for the dissemination of UN/EDIFACT
standards, or their regional RT (see Informative Annex B for
regional RT details).
1.3.4 All of the documents in the above list are important to message
designers, with the ISO 9735 EDIFACT Syntax Rules being the
international standard for formatting data elements and segments
into messages. These guidelines and rules for message design
are in accordance with this standard.
1.3.5 The ISO 9735 EDIFACT Syntax Rules define the rules for the
structuring of message data and the use of the service segments.
The UN/EDIFACT Syntax Implementation Guidelines expands some of
the detail and contains more examples. Therefore, if required,
this document should also be studied, and can be obtained from
regional RTs.
1.4 Status of UN/EDIFACT Messages and Directories
1.4.1 Once approved within the UN/ECE WP.4, both messages and
directories are accorded a certain status, the meaning of
which follows.
1.4.2 Messages can have one of three status levels as follows:
Status 0 - UN/EDIFACT message under development
Status 1 - UN/EDIFACT Draft Recommendation
Status 2 - UNSM Recommendation (available for
operational use)
1.4.3 Published UN/EDIFACT directories have one of two designations.
Status "S" represents a Standards Directory and Status "W"
represents a Working Directory.
1.4.4 UN/EDIFACT directories are published regularly. Full details
can be obtained via regional RT Secretariats, or directly from
the UN/ECE WP.4 Secretariat.
1.4.5 The documentation for Status 0 messages is self supporting and
is not included in any directory. The documentation refers to
a specific working directory and, when relevant, includes any
new segment or amended/data element, as well as new values for
coded data elements.
1.5 UN/EDIFACT Standard Message Definition
1.5.1 A UN/EDIFACT standard message (known as a UNSM) is one which
has been approved, published, and which is maintained by the
UN/ECE.In this case, the Message Type, Version Number, the
Release Number and the Controlling Agency used in all UNSM
Message Headers are allocated and controlled only by the
UN/ECE. In this documentation the term message(s) can refer
to a message at to any status.
1.6 Overview
1.6.1 As with many activities, there is little point in re-inventing
"wheels" which have already been designed. Message development
needs to be undertaken in a coordinated, progressive and
structured way if the general aim of the UN/EDIFACT initiative
to develop an integrated series of messages is to be achieved.
1.6.2 Message designers are urged to consult with their relevant
organization responsible for the dissemination of UN/EDIFACT
standards in their country, or with the UN/EDIFACT Rapporteur
responsible for coordination in their area, before starting any
new message design. In some cases the required message may
already exist (or an existing message may be capable of
amendment to meet the required function), or alternatively,
work may have already started on an identical or similar
message. Guidance on message development processes is given
in later sections of this document.
1.6.3 A MESSAGE is the term used to describe the structuring of data
to perform a specific business or administrative function in
such a way as to allow for their optimal transfer and handling
by ELECTRONIC means.
1.6.4 A message designed for electronic data interchange (EDI) must
have a clearly defined business function. It should be borne in
mind however, that the order of presentation and the content of
data in an EDI message need not (and indeed, often does not)
necessarily follow the order and content of data carried on
documents.
1.6.5 Although the function of a message may be the equivalent to
a business document, message designers should not infer from
this that the data element content of such messages will
necessarily be identical to that contained in the equivalent
document. Further, when designing a UNSM, the opportunity
should be taken to analyze the traditional functionality, since
it may be more effective to take a new approach, rather than to
simply emulate the original. In some cases, the functions of
messages may be the equivalent to the more traditional documents
or business processes. In other cases, a single message may
be equivalent to the functionality covered by a series of
documents, or it may represent the direct replacement of all
or part of a paper-based document or business process. Business
and information modelling techniques provides a structured
approach to help with task.
1.6.6 More importantly, designers should not infer that the order of
data in a message needs to be the same as that found in the
equivalent existing paper document or business process. However
during the initial message design stage, it may be more
practical to order the segments and segment groups in a
sequence that assists with the interpretation of the message
functionality, but during the final design stage, due account
should be taken of the benefits of truncation and omission
afforded by the rules for syntax, in terms of the order of
presentation of data.
1.6.7 UN/EDIFACT message documentation defines each segment and its
sequence within the MESSAGE, and indicates the DATA ELEMENTS
and their sequence within each SEGMENT specified for use in the
message. See Informative Annex C for the message structure.
1.6.8 Development of messages requires two important skills: people
who are expert in the specific business area to which the
message applies, be it commercial, payment, insurance,
transport, etc., and people who understand the UN/EDIFACT
syntax message design principles, business and information
modelling, and computing systems.
SECTION 2 2. GENERAL GUIDELINES FOR MESSAGE DESIGN2.1 The Building Blocks of Messages
2.1.1 The basic "building blocks" of messages are:
1) data elements for use in segments, or as components of
composite data elements;
2) composite data elements;
3) segments (which can be used individually, or as part of
segment groups within a message), and
4) the structure of the message itself, detailing the order
of segments and/or segment groups.
2.2 Design of New UN/EDIFACT Messages - UNSMS
2.2.1 The objective of the design process is to meet genuine data
interchange requirements with the minimum of complexity and
redundancy. The aim should be to:
- support a well-defined and understood business need;
- be comparatively simple (in terms of function and design),
and
- avoid unnecessary emulation of paper-based procedures;
2.2.2 The current UN/EDIFACT Working Directory should be used to
review existing messages and segments, and utilized as a
starting point in developing a new message.
2.2.3 Messages and segments should allow for multi-sectoral
applications rather than a single, confined usage.
2.2.4 Simplicity is a major objective in message design. Over-
complication creates difficulties in comprehension, especially
for new users. Messages should not be made more complex to
save a few characters in transmission.
2.3 Requests for New UNSMS or for Changes to Existing UNSMS
2.3.1 If a group of users need an EDI message covering international
requirements, they should first check whether a UNSM exists
which has been designed for the function in question--perhaps
from which a sub-set can be taken.
2.3.2 If one does exist, they may then find that it does not totally
meet their requirements, in which case they can request a
change or addition to the relevant UNSM, which will be passed
to the appropriate message design group(s).
2.3.3 If no such message exists, they may then submit a "New UNSM
Request" covering the function they require, which must be
submitted to the local RT Secretariat for processing under RT
procedures.
2.4 Before Designing a New Message
2.4.1 The following describes a step by step approach to message
design.
Step Action
1. Analyze business requirements for all relevant
communications with business partners.
2. Model the key aspects of the business environment
3. Identify the EDI messages which are needed to satisfy
the required business function. Verify if messages
already exist in the current UN/EDIFACT Working
Directory which should be used or amended.
4. Select the highest priority message for development
and define the "Business Function" for the message.
If at this stage it is decided that a new UNSM is
required, a "New UNSM Request" form must be prepared
and submitted immediately to the relevant RT Secretariat
for expedient processing.
5. Determine the detailed business data needs.
6. Select segments from the current UN/EDIFACT Working
Directory and review segment groups already specified
for use in other UNSMs to meet the requirements for
each entity identified.
7. i) Identify the data items not covered by existing
UN/EDIFACT segments;
ii) determine whether the requirements for these data
items can be met by requesting additional qualifier
values for use in existing generic segments. If not,
check whether they are already defined in the current
UN/EDIFACT Working Data Elements Directory or in the
Trade Data Elements Directory (UNTDED). If not, then
submit a Change Request for a new data element;
iii) determine whether the requirements for these data items
can now be met by adding them to the end of an existing
UN/EDIFACT segment or composite having the correct
function in the current Working Directory;
iv) classify any remaining data items into conceptually
related sets, providing a functional description for
each set for the creation of a new segment to meet each
function, and
v) determine the mandatory or conditional status for each
data element, composite, segment, segment group and the
number of permitted repeats.
SECTION 3 3. DESIGN OF THE COMPONENT PARTS OF A MESSAGE3.1 Interchange Structure & Directory Relationships
3.1.1 Informative Annex C demonstrates the hierarchical structure of
a UN/EDIFACT message.
3.1.2 To support this hierarchical structure, within the UN/EDIFACT
process, five directories are held in UNTDID between all of
which there is both an upward and downward hierarchical
relationship.
| +----------------+ ^
| | MESSAGES | |
| +----------------+ |
| | Segments | |
| +----------------+ |
| | Composite Data | |
| | Elements | |
| +----------------+ |
| | Data Elements | |
| +----------------+ |
| | Code Lists | |
V +----------------+ |
3.2 Design of Data Elements3.2.1 Guidelines for data element design
3.2.1.1 If a new data element has to be designed it should be
generic, allowing for use across the widest possible number
of applications.
3.2.1.2 Having identified all of the data elements required to
satisfy the function of the message under development,
designers need to ascertain whether the required data
elements are included in the current UN/EDIFACT Working
Directory, by taking the following steps:
Search the current UN/EDIFACT Working Directory:
1) If the required data element is found and exactly
meets the user's requirement, it should be specified
for use;
2) If the required data element is found, but it appears
that its name, description and/or its format/
representation does not exactly meet the user's
requirement, the Rapporteur Change Request procedures
should be followed, to request an amendment to the
element in question, or
3) If the required data element is not found a "New Data
Element Request" must be submitted under the Rapporteur
Change Request procedures, with reference to UNTDED as
necessary.
In the case of coded data elements:
1) If the required coded data element is found and the
required code value is present in its associated code
list, then the element should be specified for use;
2) If the required coded data element is found, but the
required code value is not present, a "New Code Request"
should be submitted, or
3) If a "New Data Element Request" has been submitted for a
coded element, a code request for each code value required
for the data element must be submitted.
3.2.2 Data element types and categories
3.2.2.1 A data element is the smallest unit of information within the
structure of a message and there are two types, a simple data
element, and a component data element used in Composite Data
Elements (see Section 3.3)
3.2.2.2 A simple data element can be one of three categories:
1) Where it defines a precise business function, it is
termed a specific simple data element.
In tag, name and format order, an example could be:
Data Element Data element name Format tag
5284 Unit price basis n..9
(where n..9 means variable length
numeric containing 1 to 9 digits)
2) Where it defines a global business function which could
be used across the widest range of functional/industry
area, it is termed a generic simple data element.
An example of such a generic simple data element could be:
Data Element Data element name Format tag
6064 Quantity difference n..15
(where n..15 means variable length
numeric containing 1 to 15 digits)
On its own, "quantity difference" has no specific meaning.
In order to identify its precise business function, a data
element qualifier is associated with it.
3) Where it gives a generic simple data element a precise
business function, it is termed a data element qualifier.
An example of a data element qualifier could be:
Data Element Data element name Format tag
6063 Quantity qualifier an..3
(where an..3 means variable length
alphanumeric containing 1 to 3
characters)
The qualifier code values give precise meaning to the data
being qualified. For example, the list includes a code of
"126" for "Quantity of goods that disappeared in transport"
which, combined with the Quantity difference, gives
explicit meaning to the number contained in the Quantity
difference.
3.2.2.3 A component data element is one which is used within a
composite data element (see Section 3.3). A component element
can be one of the three categories defined above for simple
data elements.
3.2.3 Rules for the design of new data elements
RULE 1: Existing qualified data elements shall always be used in
preference to creating new data elements.
RULE 2: The following naming and formatting conventions shall be
followed in the UN/EDIFACT data elements directory:
a) A data element which qualifies a generic simple data
element, composite, or segment shall end with the name
"qualifier" (e.g. "Currency qualifier").
The format of qualifiers shall be: an..3. The code
lists for qualifiers shall be specified in EDCL only.
b) A non-qualifier coded data element name shall end with
" , coded" (e.g. "Currency, coded").
The format of non-qualifier coded data elements shall
be: an..3
c) Other coded data element names shall end with
"identification" (e.g. "Hazard code identification").
The format of other coded data elements shall be:
an..x (where x > 3)
d) Clear (plain language) data elements already specified
in UNTDED shall adopt the same name and format in UNTDID.
e) A new clear language data element not already specified
in UNTDED shall have a format of either an..17, an..35
or an..70, along with its corresponding name, as
dictated by business requirements.
f) The format and naming of other types of data elements
shall be specified to meet business requirements.
3.2.4 Coded data elements
3.2.4.1 A coded data element is an element which has as its value a
code, described in a Code Lists directory.
3.2.4.2 There are two types of UN/EDIFACT coded data elements: those
which are qualifiers; and other coded data elements.
3.2.5 Rules associated with the design of coded data elements
RULE 3: Coded data elements which are qualifiers shall not have data
elements 1131/3055 associated with them.
RULE 4: Generic coded simple data elements shall be specified in a
composite data element in conjunction with conditional data
elements 1131/3055.
3.3 Design of Composite Data Elements3.3.1 Guidelines for composite data element design
3.3.1.1 A composite data element is two or more component data
elements grouped together to permit related information to be
expressed in a structured way.
3.3.1.2 The composite data element directory contained in the current
UN/EDIFACT Working directory should be studied to identify
composite specification/layout.
3.3.1.3 One type of design of composites is where the composite
itself is mandatory and all of its components are conditional.
At least one of the components must be present under ISO 9735
Syntax Rules.
3.3.1.4 When deciding on the composite data elements required in a
message under development, designers need to ascertain whether
all of the required composite data elements are already
defined in the current UN/EDIFACT Working Directory by taking
the following steps:
Search the current UN/EDIFACT Working Directory:
1) If the required composite data element is found and
exactly meets the user's requirement, it should be
specified for use.
2) If the required composite data element is found, but it
appears that its name, description and/or its format/
representation does not exactly meet the user's
requirement, the Rapporteur Change Request procedures
should be followed, to request an amendment to the
composite in question.
3) If the required composite data element is not found in
the current Working Directory, then using the Rapporteur
Change Request procedures, a "New Composite Data Element
Request" must be submitted.
3.3.2 Guidelines for the design of non-qualified and qualified composites
3.3.2.1 A non-qualified composite is one which has a single function
needing no qualification.
Example:
Composite name : MOVEMENT TYPE
Function of composite : Description of type of service
for movement of cargo.
Components in the composite : Movement type, coded;
Movement type
The above composite could then take the form:
...+[Movement type, coded]:[Movement type]+...
3.3.2.2 A qualified composite is one which needs a qualifier to
identify its function.
Example:
Composite name : PERCENTAGE DETAILS
Function of composite : Identification of the usage
of a percentage
Components in the composite : Percentage qualifier;
Percentage;
Percentage basis, coded
The specific percentage (and if appropriate the percentage
basis) is identified according to the value of the
composite qualifier (Percentage qualifier). The values
of the "Percentage qualifier" are listed in the
UN/EDIFACT codes lists directory. For example:
1 - Allowance; 2 - Charge; etc.
A PERCENTAGE DETAILS composite carrying "Allowance"
percentage details would take the form:
+1:[Percentage]+
3.3.2.3 The use of qualified composites significantly reduces the
number of entries in the Composite Data Elements Directory,
and provides flexibility. For example, if the need for a new
"percentage details" composite function is identified, all
that is required is the addition of a further qualifier code
in the relevant code list.
3.3.3 Rules for the design of composite data elements
RULE 5: Composite data element shall have a single function, with
each component data element relating directly to the
function of the composite.
RULE 6: A composite data element shall comprise two or more
component data elements. Pairs or triplets of associated
components shall not be repeated within a composite.
RULE 7: Composite data elements contained in the current UN/EDIFACT
Composite Data Elements Working Directory shall be used,
unless it is demonstrated that the required function cannot
be achieved either by:
- the addition of a new qualifier value to an existing
qualified composite, or by the addition of a composite
data element qualifier.
- the addition of a component data element at the end of an
existing composite (except as defined in Rule 16).
RULE 8: New composite data elements shall not contain the entire
contents of an existing composite, nor shall the function
of an existing composite be duplicated.
RULE 9: New composite data elements shall be designed to support
the widest possible number of applications.
RULE 10: A qualifier giving specific meaning to a generic simple
data element shall be placed directly after the data
element. Both elements then become component data elements
of a composite data element.
The following examples explain the position and use of such
a qualifier within a composite:
...+QDE:Q+... where:
QDE - Qualified data element as
a component in a composite
Q - Qualifier as a component
in a composite
Example:
C279 QUANTITY DIFFERENCE INFORMATION
6064 Quantity difference
6063 Quantity qualifier
which could contain the following data :
...+150:126+... where 126 means "Quantity
of goods that disappeared in transport"
RULE 11: If a single component data element is to be qualified as
part of a composite data element containing several
component data elements, the qualifier shall appear after
the data element to be qualified.
Examples :
...+QCEl:Q:CE2:CE3+... where:
QCE1 - Qualified component element
Q - Qualifier for QCE1
CE2/CE3 - Component data elements
...+CE1:QCE2:Q:CE3+... where:
QCE2 - Qualified component element
Q - Qualifier for QCE2
CE1/CE3 - Component data elements
...+CE1:QCE2:Q1:QCE3:Q2+.. where:
CE1 - Component data element
QCE2 - Qualified component element
Q1 - Qualifier for QCE2
QCE3 - Qualified component element
Q2 - Qualifier for QCE3
RULE 12: If a composite data element is to be qualified
(i.e. the complete set of component data elements contained
in a composite data element), then the qualifier shall be
placed at the beginning of the set as a component data
element.
The following examples explain the use of the qualifier
in these circumstances:
...+Q:CE1:CE2:CE3+... where:
Q - Qualifier
CE1; CE2 & CE3 - Qualified component data
elements.
C501 PERCENTAGE DETAILS
5482 Percentage
5249 Percentage basis, coded
1131 Code list qualifier
3055 Code list responsible agency, coded
which could be transmitted as:
...+12:20:4+... where 12 indicates that the percentage
and percentage basis is that of
"DISCOUNT PERCENTAGE".
RULE 13: All mandatory components of a composite data element shall
be placed at the beginning of the composite, followed by
conditional components.
RULE 14: A component data element shall not repeat within a
composite data element more than five times, and then
only when a valid business reason can be specified and
agreed by message design groups.
RULE 15: a) The clear (plain language) component of a coded/clear
pair of data elements shall repeat up to a maximum of
two times in the composite data element when its format
is defined as an..35.
b) The clear (plain language) component of a coded/clear
pair of data elements shall not repeat when its format
is defined as an..70.
c) The FTX segment shall be used in a segment group instead
of the clear component(s) of the composite data element
in question when more than 70 characters are required.
3.3.4 Rules for UN/EDIFACT composite data element maintenance
RULE 16: The Addition of a component data element to a composite
data element shall result in the component being added to
the end of the composite data element. The only exceptions
to this are:
a) if a mandatory component data element is approved for
insertion in a composite data element; or
b) if the component data elements 1131 and 3055 need to be
inserted between a coded/clear pair of component data
elements in an already existing composite data element.
If either of the above amendments are approved, a new tag
shall be assigned and the original composite data element
in the next Working Directory shall be marked for deletion
after three years.
RULE 17: All new messages shall always use the new composite if it
is required in the message.
RULE 18: At the end of the three year period, the composite data
element marked for deletion shall be replaced in all
segments and associated messages with the new composite
data element.
3.4 Design of Segments3.4.1 Guidelines for segment design3.4.1.1 When designing messages existing segments contained in the current UN/EDIFACT Working directory should be used, before considering the design of new segments. 3.4.1.2 Many advantages ensue from the use of existing segments, including acceleration of the message design process and conformity across industry and national borders. 3.4.1.3 Before designing a new segment, the following options need to be considered: If a qualified segment covering the function exists, the segment qualifier can be used to provide the segment with the required specific meaning, by requesting an addition to the associated segment qualifier code list. If it is possible to meet the required function by adding an element to an existing segment, then UN Rapporteur Change Request Procedures should be followed to request the addition at the end of the segment. If the required function can be met by use of two or more existing segments, these can be placed in a segment group within the message. (See Section 4.4) 3.4.1.4 If a new segment has to be designed, it should be generic, allowing for use across the widest possible number of applications. 3.4.1.5 By designing generic segments, it is then possible to place the segment in a range of segment groups to express different functions. This concept should however under no circumstances result in solutions not supportive of specific business requirements. The creation of a specific segment needed for certain defined business areas is permissible whenever the result is approved under the maintenance procedures. 3.4.1.6 Once designed, the status of composites/data elements within the segment (i.e. whether they are Mandatory or Conditional) needs to be decided, with mandatory data appearing before conditional data in the segment. If a segment is to be used in several different messages, in one message an element may be mandatory, while being conditional in another. If this circumstance arises, the element should be made conditional, and the usage specified in the message implementation guidelines. 3.4.2 Non-qualified and qualified segments
3.4.2.1 A non-qualified segment needs no qualification to define
its function.
Example:
Segment : DLI DOCUMENT LINE IDENTIFICATION
Function : To specify the processing mode of a
specific line within a referenced
document
Data Elements in Segment : DOCUMENT LINE
INDICATOR, CODED;
LINE ITEM NUMBER
The above segment could then take the form:
DLI+[Document line indicator]+[Line item number]
3.4.2.2 A qualified segment is one which needs a qualifier to specify
its usage. The specific usage of the segment is attributed
to it according to the value of an appropriate segment
qualifier code, as defined in 3.4.2.3.
Example:
Segment : COT CONTRIBUTION DETAILS
Function : To specify details about membership
contributions
Data elements in segment : CONTRIBUTION
QUALIFIER;
CONTRIBUTION TYPE;
INSTRUCTION;
etc.
The specific contribution type and instruction is identified
according to the value of the segment qualifier
(CONTRIBUTION QUALIFIER).
The values of the CONTRIBUTION QUALIFIER are listed in the
EDIFACT codes set directory. The following qualifier values
are examples only: 1 - Normal, 2 - Special, 3 - Reversal
Therefore, a COT segment carrying "Normal" contribution
details could take the form:
...COT+1+[Contribution type]+[Instructions]...
3.4.2.3 The use of qualified segments significantly reduces the
number of entries in the Segment Directory, and provides
flexibility. If a required segment purpose is not covered
in the existing qualifier code list, a new qualifier code
value should be requested. Where relevant, this technique
should always be used in preference to designing a new and
specific segment for the same purpose.
3.4.3 Implicit & explicit representation of segments in
|