0% found this document useful (0 votes)
70 views89 pages

BAHAG INVOIC Guide D01B V2.1 DE AT LU NL SI Eng

The document is an EDIFACT guideline for invoice data interchange via EDI-INVOIC, specifically tailored for Germany, Austria, Luxembourg, Netherlands, and Slovenia. It includes detailed specifications on segment structure, data elements, and mandatory requirements for processing invoices electronically at BAHAG AG. The guideline also outlines changes made in various versions and provides a comprehensive segment summary for effective data interchange.

Uploaded by

inf.manuelc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views89 pages

BAHAG INVOIC Guide D01B V2.1 DE AT LU NL SI Eng

The document is an EDIFACT guideline for invoice data interchange via EDI-INVOIC, specifically tailored for Germany, Austria, Luxembourg, Netherlands, and Slovenia. It includes detailed specifications on segment structure, data elements, and mandatory requirements for processing invoices electronically at BAHAG AG. The guideline also outlines changes made in various versions and provides a comprehensive segment summary for effective data interchange.

Uploaded by

inf.manuelc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 89

EDIFACT Guideline

for
invoice data interchange
via EDI-INVOIC

- Germany - Austria - Luxembourg - Netherlands –


Slovenia -

INVOIC D01B UNOC:3


INVOIC D01B UNOY:4

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
1
Table of contents

Changelog 3
Introduction and general considerations 4
EDIFACT syntax overview 5
Segment summary 9
Detailed segment description 12
Message example 89

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
2
Changelog

Version Date Change


1.0 01.08.2017 • Initial Version
1.1 11.09.2017 • Change of examples
1.2 15.02.2018 • Removed MOA79 in SG52
1.3 22.09.2020 • Syntax identifier extended by UNOY:4 /
• format adjustmentan
1.4 08.10.2020 • Invoice number Format adapted
1.5 05.07.2021 • Invoice number Format adapted
1.6 08.12.2021 • Added Intra-Community triangular transaction
1.7 22.08.2022 • Edifact version number adapted
• Added tax-exempt article
• Added certificates
• Added configuration id
2.0 16.07.2024 • Sub-item information integrated into line item segment
• Notes added in several segments
• RCH, IGL, IGD and SE00 combined in one segment
• FTX+AAK only relevant for DE
• CTA+SR, COM+TE and COM+FX no longer necessary
• Slovenia added to the guide
• FII added as an optional field under supplier information
• GLNs for drop shipment orders DE, AT and NL specified
• Added the valid codes for surcharges and discounts
• Container description has been removed
• New examples of RFF+XA (certificates) at position level
2.1 28.10.2024 • Specification of the information in RFF+XA regarding
wood certificates at header and item level

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
3
Introduction and general considerations

1. The guideline is based on the EANCOM message type INVOIC, version D01B according to the
EANCOM specification.

2. The specifications contained therein describe the lengths and types of fields, as they are
required for processing at BAHAG AG. Failure to comply with these specifications will result
in the submitted EDI-message not being processed and considered as 'not received'.

3. The segment status as specified in the segment notes can differ from the official EANCOM
status displayed in the header.

4. The EDI-INVOIC files must be transmitted electronically to the agreed communication


endpoint.

5. As a general rule, all details that were previously communicated via paper invoices must also
be provided in the EDI-INVOIC message. Therefore, the contents of a paper invoice and its
EDI-INVOIC representation must be identical.

6. In an INVOIC message, only invoices for a regional subsidiary may be included.

7. One EDI-INVOIC message may contain multiple invoices (BGM+380).

8. If the supplier specified in the NAD+SU segment is not the provider of goods or services, its
details must be specified in the NAD+SF segment.

9. The central email address for all technical and support issues is [email protected].

10. EDI INVOIC messages are intended solely for the processing of invoices. Credit notes
(BGM+381) and Corrected invoices (BGM+384) will not be processed. Partial Statements are
valid depending on contractual agreements.

11. The EDI-INVOIC message has to be coded in ISO-8859-1 or as UTF-8. The corresponding
presentation is to be found in the UNB.

12. Due to rounding differences, a maximum of 3 cents is tolerated for the calculation of VAT
and the calculation of the total tax amount.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
4
EDIFACT Syntax overview
The EDIFACT syntax describes how data is structured into segments, segments into messages and
messages into a transmission file.

1. The structure of a transmission file

A transmission file is comprised of the following:


UNA Specification of separators conditional
UNB Head segment mandatory
UNG Message Group Head segment conditional
UNH Message head segment mandatory
payload as required
UNT Message End-segment mandatory
UNE message group End-Segment conditional
UNZ End segment mandatory

Segments starting with “UN” are called “service segments” and act as a frame for EDIFACT messages.
Other segments include the actual information that should be transmitted according to the specific
message type.

2. The structure of a message

A message is the sum of all segments and groups of segments that are required for the representation
of a business process (e.g. an Invoice). Each Segment has its own distinct position in the sequence of
segments/segment groups within the message.
Segments of the same type can appear at various places within the message, for instance in the head
section, in the details section and/or repeatedly in the same part of the message.

The INVOIC message is divided into 3 sections:


1. Head section
Specification of the partners involved, dates, invoice number, references and so on
2. Line item section
Indication of GTINs for identification of goods and services, their quantity, price and value
3. Summary section
The summary section contains the total amounts of the invoice, including information about
taxes

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
5
3. Segments/data Elements/groups of data elements
A segment is composed of:
• a segment identifier (for instance, RFF),
• simple data elements and/or groups of data elements,
• end of segment symbol
Groups of data elements contain two or more single data elements.
Data elements can be defined to be of a fixed or varying length.
This guideline describes all elements that can be used in a data interchange with BAHAG AG. The
elements are listed in the exact order they have to appear in the message. Each segment symbol and
each segment group is followed by a (C)an or (M)ust indicator, the maximal number of allowed
repetitions and the description of the segment including an example.

The most left column contains the name of a data element, the next column contains the description
and is followed by a column that contains the EDIFACT status identification (Conditional or
Mandatory), then by the data format and eventually by the length of the data element. These
details, which appear under the “EDIFACT” head row, lay out the original EDIFACT description. The
EDIFACT description is followed by details that are specific to BAHAG AG and appear in the fifth, sixth
and seventh columns under the head row “Application, allowed codes”.
The fifth column contains a status indicator for the usage of data elements, followed by the data
format as well as by the length of the element in column six and by the seventh column with
comments and utilized code values.

Status types:
Status Status Description
M Mandatory
N Not used
C Conditional

Format description:
Format Format Description
A alphabetic symbol
N numeric symbol
an alphanumeric symbol
a3 3 alphabetic symbols of a fixed length
n3 3 numeric symbols of a fixed length
an3 3 alphanumeric symbols of a fixed length
a..3 up to 3 alphabetic symbols
n..3 up to 3 numeric symbols
an..3 Up to 3 alphanumeric symbols

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
6
Color Scheme:
Color Scheme Clarification Example
Red Code value INVOIC = Invoice
Green Content description Date of issue
Blue Code description KGM = Kilogramm

4. Qualifiers

A qualifier is a special data element. Its value is coded and further specifies the meaning of a group of
data elements or to a segment. Valid values for these “qualifiers” are defined in a directory of codes.

5. Separators

Separators help to keep the payload size low

: colon = Separator of data elements within a group of data elements


+ plus = Separator of segment identifiers and data elements
‘ Apostrophe = End-Symbol of a segment
? Question mark = Escape character
e.g. 10?+15=25 means 10+15=25.
The plus symbol is not interpreted as a separator.

Example: DTM+137:20140119:102’

DTM = Segment identifier for the Segment “Date/Time/Period”


+ = Separator
137 = “Date” qualifier
: = Separator within a group of data elements
20140119 = Date
: = Separator within a group of data elements
102 = Format qualifier
‘ = End-of-segment symbol

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
7
6. Presentation of numerical data elements

a. Decimal symbols
Commas and period symbols are allowed. The decimal symbol is not counted when determining the
maximum field length of a data element’s value. When a decimal symbol is transferred it should be
preceded and followed by at least one more symbol.

b. Digit grouping symbols


With the exception of decimal symbols no other sub-division symbols are allowed.
Allowed: 2500000
Not allowed: 2,500,000 or 2.500.000 or 2 500 000

c. Algebraic signs
Numerical data elements are considered to be positive.
In case a negative value has to be provided, it must be must preceded at once by a minus sign, e.g.
-112. The minus sign does not count towards the length of data element.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
8
Segment Summary

UNB 1 Data header


UNH 2 Message header
BGM 3 Beginning of the message
DTM 4 Document/message date/time
DTM 5 Delivery date/time, actual
FTX 6 Free text – Mutually defined
FTX 7 Free Text – Price conditions
FTX 8 Free Text – Regulatory information tax exempt
FTX 9 Free Text – Regulatory information Text for subsequent use
SG1
RFF 10 Order number
DTM 11 Order date
SG1
RFF 12 Delivery note number
DTM 13 Delivery note date
SG2
NAD 14 Supplier’s identification details
FII 15 Information about the financial institution
SG3
RFF 16 Supplier’s additional identification details
SG3
RFF 17 Supplier’s tribunal place registration entry
SG3
RFF 18 Supplier’s VAT registration number
SG3
RFF 19 Supplier’s license number (Matična številka)
SG3
RFF 20 Supplier’s fiscal number
SG3
RFF 21 Supplier’s certificate
SG2
NAD 22 Buyer’s identification details
SG3
RFF 23 Buyer’s VAT registration number
SG3
RFF 24 Buyer’s fiscal number
SG2
NAD 25 Identification details of the delivery party
SG2
NAD 26 Identification details of the shipping party / Warehouse from which the goods are shipped
SG3
RFF 27 VAT registration number of then shipping party
SG2
NAD 28 Identification details of the invoicee

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
9
SG6
TAX 29 Value added tax
SG7
CUX 30 Currency identification code
SG8
PAT 31 Payment terms
DTM 32 Payment net due date
SG8
PAT 33 Payment terms
DTM 34 Payment terms discount due date
PCD 35 Payment discount percentage
MOA 36 Payment discount amount
SG8
PAT 37 Number of value days
DTM 38 Value date
SG12
TOD 39 Terms of delivery or transport
SG16
ALC 40 Allowance or charge
SG19
PCD 41 Allowance or charge percentage
SG20
MOA 42 Allowance or charge amount
SG22
TAX 43 Allowance or charge VAT rate
SG26 - Line item information
LIN 44 Invoice line item number and GTIN item identification
PIA 45 Supplier’s item number
PIA 46 Buyer’s item number
PIA 47 Harmonized system number
IMD 48 Text description of invoiced product or service – free format
IMD 49 Description of invoiced product or service - Coded
QTY 50 Invoiced quantity
ALI 51 Country of origin
FTX 52 Free Text – Line item information
SG27
MOA 53 Line item amount
SG29
PRI 54 Net price / price per unit
SG30
RFF 55 Article certificate
SG30
RFF 56 configuration id
SG34
TAX 57 Line item VAT rate
MOA 58 Line item VAT amount

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
10
SG39
ALC 59 Allowance or charge
SG41
PCD 60 Allowance or charge percentage
SG42
MOA 61 Allowance or charge amount
UNS 62 Section control
SG50
MOA 63 Total invoice amount
MOA 64 Total line items amount
MOA 65 Total VAT amount
MOA 66 Total VAT taxable amount
MOA 67 Total charges/allowances amount
SG52
TAX 68 Value added tax
MOA 69 Total tax amountof the invoice (per tax rate)
MOA 70 Taxable amount of the invoice (per tax rate)
MOA 71 Total charges / allowances (per tax rate)
UNT 72 Message end segment (trailer)
UNZ 73 End segment

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
11
Detailed Segment Description

The following is a detailed description of used segments

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
12
Head section- Segment number 1
UNB M 1 head segment
EDIFACT Application, allowed codes
UNB
S001 SYNTAX IDENTIFIER M M
0001 Syntax identifier M a4 M a4 UNOC =
UN/ECE level C (ISO-8859-1)

UNOY =
UN/ECE level C (UTF-8 without
BOM)
0002 Syntax version number M n1 M n1 3 = Version 3 (only for UNOC)

4 = Version 4 (only for UNOY)


S002 INTERCHANGE SENDER M M
0004 Interchange sender identification M an..35 M n13 GLN of the data sender
0007 Identification code qualifier C an..4 M an..4 14 = GS1
S003 INTERCHANGE RECIPEIENT M M
0010 Interchange recipient M an..35 M n13 4024506000001 = GLN of the
identification recipient (DE)

9006713000000 = GLN of the


recipient (AT)

5430000366007 = GLN of the


recipient (LU)

8714252031300 = GLN of the


recipient (NL)

9006713000703 = GLN of the


recipient (SI)
0007 Identification code qualifier C an..4 M an..4 14 = GS1
S004 DATE AND TIME OF M M
PREPARATION
0017 Date of preparation M n6 M n6 Date of preparation
0019 Time of preparation M n4 M n4 Time of preparation
0020 Interchange control reference M an..14 M an..14 Interchange control reference
Unique reference for the
identification of the transmission
file. Assigned by the sender.
S005 RECIPIENT'S C N
REFERENCE/PASSWORD DETAILS
0022 Recipient reference / password M an..14 N
0026 Application reference C an..14 N
0029 Processing priority code C a1 N
0031 Acknowledgement request C n1 N
0032 Interchange agreement identifier C an..35 N
0035 Test indicator C n1 N n1 1 = Test
Empty = Production
Segment notes:

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
13
Segment status: Mandatory

Note: The test indicator in S005-0035 has no meaning for BAHAG AG.
Note: UNOY:4 is only to be used for UTF-8 without BOM encodings.

Example AT: UNB+UNOC:3+4000000000000:14+ 9006713000000:14+130606:1234+4321'


Example DE: UNB+UNOC:3+4000000000000:14+ 4024506000001:14+130606:1234+4321'
Example SI: UNB+UNOC:3+4000000000000:14+ 9006713000703:14+130606:1234+4321'
Example LU: UNB+UNOY:4+4000000000000:14+ 5430000366007:14+130606:1234+4321'
Example NL: UNB+UNOY:4+4000000000000:14+ 8714252031300:14+130606:1234+4321'

This segment is used to open, identify and describe the transferred file.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
14
Head section- Segment number 2
UNH M 1 Message Header
EDIFACT Application, allowed codes
UNH
0062 Message reference number M an..14 M an..14 Message reference number
Unique message reference of the
sender. Current number of the
message in the data interchange.
Identical to DE 0062 in UNT,
provided by the sender.
S009 MESSAGE-IDENTIFIER M M
0065 Message type M an..6 M an..6 INVOIC = Invoice
0052 Message version number M an..3 M an..3 D = Draft version
0054 Message release number M an..3 M an..3 01B = Release 2001 - B
0051 Controlling agency M an..2 M an..4 UN = UN/CEFACT
0057 Association assigned code C an..6 M EAN011 = EAN version control
number (GS1 Code)
Segment notes:
Segment status: Mandatory

Example: UNH+0001+INVOIC:D:01B:UN:EAN011'
This segment is used to open a message, identify and specify a message.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
15
Head section- Segment number 3
BGM M 1 Beginning of message
EDIFACT Application, allowed codes
BGM
C002 DOCUMENT/MESSAGE NAME C M
1001 Document name code C an..3 M an..3 380 = Commercial invoice
1131 Code list identification code C an..3 N
1000 Document/Message name C an..35 N
C106 DOCUMENT/MESSAGE C M
IDENTIFICATION
1004 Document identifier C an..35 M an..16 Invoice number
An invoice number assigned by
the sender of the document
1225 Message function code M an..3 M an..3 9 = Original
Segment notes:
Segment status: Mandatory

Comments to DE 1001:

380 = Commercial invoice

The document serves as a request for payment for goods delivered or services provided in accordance to
terms that were agreed between a Buyer and a Seller. The message is sent by a Supplier/Invoicing party to a
Buyer/Invoicee.

Note: NO special characters are allowed in the invoice number.

Example: BGM+380+8744256739+9'
The document number is 8744256739.
This segment serves to show the type and function of the message and to communicate the invoice number.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
16
Head section- Segment number 4
DTM M 35 Document
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 137 = Document/Message
code qualifier date/time
2380 Date or time or period value C an..35 M an..8 Date of the invoice
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Mandatory

The document or invoice date (Code 137) must be specified in a message.

Example: DTM+137:20241001:102'
The message was created on 01.10.2024.
This segment is used for specification of the document or message date.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
17
Head section- Segment number 5
DTM M 35 Delivery date, actual
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 35 = Delivery date/time, actual
code qualifier
2380 Date or time or period value C an..35 M an..8 Delivery date/time, actual
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Mandatory

DE 2005 = 35, actual delivery date/time: date, on which the supplier has delivered the goods. The actual
delivery date corresponds for tax purposes to the date when the services were provided or goods were
delivered.

Example: DTM+35:20240915:102'
Delivery took place on 15.09.2024.

This segment is used to specify the delivery date.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
18
Head Section – Segment number 6
FTX C 99 Free Text
EDIFACT Application, allowed codes
FTX
4451 Text subject code qualifier M an..3 M an..3 ZZZ = Mutually defined
4453 Free text function code C an..3 N
C107 TEXT REFERENCE C N
4441 Free text value code M an..17 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency code C an..3 N
C108 TEXT C M
4440 Free text value M an..512 M an..70 Free text
4440 Free text value C an..512 C an..70 Free text, line 2
4440 Free text value C an..512 C an..70 Free text, line 3
4440 Free text value C an..512 C an..70 Free text, line 4
4440 Free text value C an..512 C an..70 Free text, line 5
3453 Language name code C an..3 N
Segment notes:
Segment status: Conditional

Example: FTX+ZZZ+++Text:Text2:Text3:Text4:Text5'
This segment serves for specification of text information concerning the whole invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
19
Head section- Segment number 7
FTX C 99 Free Text
EDIFACT Application, allowed codes
FTX
4451 Text subject code qualifier M an..3 M an..3 AAK = Price conditions
4453 Free text function code C an..3 C an..3 1 = Text for subsequent use
C107 TEXT REFERENCE C C
4441 Free text value code M an..17 M an..3 ST1 = Payment reductions due to
discount and rebate
agreements
ST2 = payment reductions arising
from current framework
and condition agreements
ST3 = There are discount and
bonus agreements
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
C108 TEXT C M
4440 Free text value M an..512 M an..70 Free text
See the example text blocks
ST1 - ST3
4440 Free text value C an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
3453 Language name code C an..3 N
Segment notes:
Segment status: Depends

Note: MUST if it is an invoice to BAHAG Baus Handelsgesellschaft AG Germany.

Example: FTX+AAK+1+ST1+Payment reductions due to discount and rebate agreements'


This segment serves for specification of text information concerning the whole invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
20
Head section- Segment number 8
FTX C 99 Free Text
EDIFACT Application, allowed codes
FTX
4451 Text subject code qualifier M an..3 M an..3 REG = Regulatory information
4453 Free text function code C an..3 M an..3 1 = Text for subsequent use
C107 TEXT REFERENCE C N
4441 Free text value code M an..17 M an..17 RCH = Taxes are payable by the
receiver of the goods or services
IGL = intra community delivery
IGD = Intra-Community triangular
transaction
SE00 = tax exempt
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
C108 TEXT C N
4440 Free text value M an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
3453 Language name code C an..3 N
Segment notes:
Segment status: Depends

Note: Reason for tax exemption must be specified in this segment.


Note: RCH, must also be indicated for domestic invoices that fall under Article 194 of the EU VAT Directive
2006/112/EC.

Example: FTX+REG+1+RCH'
For line items in this invoice sent with a tax rate of 0.00%, the tax liability is transferred to the
receiver of the goods or services.
Example: FTX+REG+1+IGL'
Tax free intracommunity delivery.
Example: FTX+REG+1+IGD'
Intra-Community triangular transaction
Example: FTX+REG+1+SE00::246'
The tax exempt amount is 246.

This segment serves for specification of text information concerning the whole invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
21
Head section- Segment number 9
FTX C 99 Free text
EDIFACT Application, allowed codes
FTX
4451 Text subject code qualifier M an..3 M an..3 REG = Regulatory information
4453 Free text function code C an..3 M an..3 1 = Text for subsequent use
C107 TEXT REFERENCE C N
4441 Free text value code M an..17 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
C108 TEXT C M
4440 Free text value M an..512 M an..70 Specification of the supplier’s
form of incorporation
4440 Free text value C an..512 C an..70 Specification of the company’s
headquarters
4440 Free text value C an..512 N
4440 Free text value C an..512 N
4440 Free text value C an..512 N
3453 Language name code C an..3 N
Segment notes:
Segment status: Depends

Note: The legal form MUST be transmitted for Austria and the Netherlands.

Example: FTX+REG+1++GmbH:Musterstadt'
The legal form of the supplier is GmbH and the headquarters are located in Musterstadt.
This segment serves for specification of text information concerning the whole invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
22
Head section- Segment number 10
SG1 C 99999 Order number / date
RFF M 1 Order number
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 ON = Order number (buyer)
1154 Reference identifier M an..70 M n..10 Buyer’s order number
(10-digit number)
Segment notes:
Segment status: Mandatory

Example: RFF+ON:1012345678'
The message refers to the customer’s order 3678201546.
This segment refers to the customer’s order.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
23
Head section- Segment number 11
SG1 C 1 Order number / date
DTM C 1 Order date
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 171 = Reference date / time
code qualifier
2380 Date or time or period value C an..35 M an..8 Order date
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Mandatory

Example: DTM+171:20240815:102'
The customer’s order is from 15.08.2024
This segment is used to specify a date in relation to/in context of the preceding RFF segment.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
24
Head section- Segment number 12
SG1 C 1 Delivery note number/date
RFF M 1 Delivery note number
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 DQ = Delivery note number
1154 Reference identifier M an..70 M an..35 Delivery note number
Segment notes:
Segment status: Mandatory

This segment holds the delivery note number associated with the invoice.

Example: RFF+DQ:4715'
The message refers to the delivery note 4715.
This message allows referring to the deliver note.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
25
Head section- Segment number 13
SG1 C 1 Delivery note number/date
DTM C 1 Delivery note date
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 171 = Reference date / time
code qualifier
2380 Date or time or period value C an..35 M an..8 Delivery note date
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Mandatory

Example: DTM+171:20240815:102'
The delivery note is from 15.08.2024
This segment is used to specify a date in relation to/in context of the preceding RFF segment.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
26
Head section- Segment number 14
SG2 M 1 Supplier’s identification details
NAD M 1 Supplier’s identification details
EDIFACT Application, allowed codes
NAD
3035 Party function code qualifier M an..3 M an..3 SU = Supplier
C082 PARTY IDENTIFICATION DETAILS C C
3039 Party identifier M an..35 M n13 Supplier’s GLN
1131 Code list identification code C an..17 N
3055 Code list responsible agency code C an..3 M an..3 9 = GS1
C058 NAME and ADDRESS C N
3124 Name and address description M an..35 M an..35
C080 PARTY NAME C M
3036 Party name M an..35 M an..35 Supplier’s name
3036 Party name M an..35 C an..35 Supplier’s name, line 2
3036 Party name M an..35 C an..35 Supplier’s name, line 3
3036 Party name M an..35 C an..35 Supplier’s name, line 4
C059 STREET C M
3042 Street and number or post office M an..35 M an..35 Supplier’s address, Street
box identifier
3042 Street and number or post office M an..35 C an..35 Supplier’s street, line 2
box identifier
3164 City name C an..35 M an..35 Supplier’s address, City
C819 COUNTRY SUB-ENTITY DETAILS C N
3229 Country sub-entity name code C an..9 N
3251 Postal identfication code C an..17 M an..17 Supplier’s address, Postcode
3207 Country name code C an..3 M an..3 Supplier’s address, Country code
Segment notes:
Segment status: Mandatory

Example: NAD+SU+4000000000000::9++MUSTERLIEFERANT+MUSTERSTRASSE+MUSTERORT++54321+DE'
The supplier has GLN 4000000000000 and the address as stated in the example line.
This segment is used for identification of the supplier and specification of its address.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
27
Head section – Segment number 15
SG2 M 1 Suppliers identification details
FII C 1 Information about the financial institution
EDIFACT Application, allowed codes
FII
3035 Party, Qualifier M an..3 M an..3 RB = Payment Institute
C078 Account Identification R C
3194 ID of the financial institution R an..35 M an..35 IBAN of the Bank
3192 Account name C an..35 M an..35 SWIFT of the Bank
3192 Account name C an..35 C an..35
C088 ID of the financial institution C N
3433 Institute, Code C an..11 C an..11
1131 Identification, Code C an..17 C an..17 25 = Bank
3055 Codelist C an..3 C an..3
3434 Industry identification C an..17 C an..17 9 = Bank (EAN)
1131 Codeliste C an..3 C an..3
3055 Name, Institute C an..70 C an..70 Name of the Bank
3432 Ort, Institute C an..70 C an..70
3207 Country Name C an..3 C an..3
Segment notes:
Segment status: Conditional

Example: FII+RB+SI56111122223333444:ABCDEFG+:25::9::Bank'
The amount should be transferred to the bank with the IBAN: SI56111122223333444.
This segment is used to identify an account and a related financial institution.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
28
Head section- Segment number 16
SG2 M 1 Supplier’s identification details
SG3 M 1 Supplier’s additional identification
RFF M 1 Supplier’s additional identification
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 YC1 = Additional party
identification (GS1 code)
1154 Reference identifier M an..70 M an..17 Internal identification of the
supplier by the customer
Segment notes:
Segment status: Mandatory

Example: RFF+YC1:128717'
The supplier’s number by the customer is 128717.
The RFF segment that comes after a NAD segment can contain mutually agreed additional identification.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
29
Head section- Segment number 17
SG2 M 1 Supplier’s identification details
SG3 C 1 Supplier’s commercial register entry
RFF M 1 Supplier’s commercial register entry
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 TRB = Commercial Register
registration (GS1-Code)
1154 Reference identifier M an..70 M an..70 Supplier’s Commercial Register
registration number / number
1156 Document line identifier M an..6 N
4000 Version identification reference M an..35 M an..35 City of the supplier’s commercial
register
Segment notes:
Segment status: Mandatory

Example: RFF+TRB:1264::Musterstadt'
The commercial register entry number is 1264 in Musterstadt.
In the RFF segment that follows a NAD segment the commercial register entry and the place of jurisdiction
must be stated.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
30
Head section- Segment number 18
SG2 M 1 Supplier’s identification details
SG3 C 1 Supplier’s VAT registration number
RFF M 1 Supplier’s VAT registration number
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 VA =VAT registration number

1154 Reference identifier M an..70 M an..20 VAT registration number of the


supplier
Segment notes:
Segment status: Mandatory

Example: RFF+VA:AT101010'
The VAT registration number is AT101010.
In the RFF segment that follows a NAD segment the VAT registration number must be stated.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
31
Head section – Segment number 19
SG2 MC 1 Supplier’s identification details Suppliers identification number
SG3 M 1 Supplier’s license number
RFF 1
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference, qualifier M an..3 M an..3 AHP = License number /
Matična številka
1154 Reference, identification M an..70 M an..70 Suppliers license number

Segment notes:
Segment status: Mandatory, if supplier is located in Slovenia.

Example: RFF+AHP:123456789'
The official license number/ Matična številka is 123456789.
In the RFF segment behind the NAD segment, the official license number must be specified.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
32
Head section- Segment number 20
SG2 M 1 Supplier’s identification details
SG3 C 1 Supplier’s fiscal number
RFF M 1 Supplier’s fiscal number
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 FC = Fiscal number of the supplier
1154 Reference identifier M an..70 M an..70 Fiscal number of the supplier
Segment notes:
Segment status: Conditional

Example: RFF+FC:07/408/123'
The fiscal number is 07/408/123.
In the RFF segment that follows a NAD segment the fiscal number must be specified.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
33
Head section- Segment number 21
SG2 M 1 Supplier’s identification details
SG3 C 1 Supplier’s certificate
RFF M 1 Supplier’s certificate
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 XA = Company registration
number
1154 Reference identifier M an..70 M an..35 Certificate (-number) of the
supplier
Segment notes:
Segment status: Conditional

Note: The wood certificate is only required if the invoice includes a wood certified item.

Example: RFF+XA:SGSCH-COC-050256'
The FSC certificate number is SGSCH-COC-050256.
RFF+XA:PEFC/04-04-0067'
The PEFC certificate number is PEFC/04-04-0067.
RFF+XA:WEEE DE51021519'
The WEEE certificate number is DE51021519.
In the RFF segment that follows a NAD segment the certification of the supplier must be specified.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
34
Head section- Segment number 22
SG2 M 1 Buyer’s Identification details
NAD M 1 Details of the buyer
EDIFACT Application, allowed codes
NAD
3035 Party function code qualifier M an..3 M an..3 BY = Buyer
C082 PARTY IDENTIFICATION DETAILS C C
3039 Party identifier M an..35 M n13 4024506000001 = Buyer GLN (DE)

9006713000000 = Buyer GLN (AT)

5430000366007 = Buyer GLN (LU)

8714252031300 = Buyer GLN (NL)

9006713000703 = Buyer GLN (SI)


1131 Code list identification code C an..17 N
3055 Code list responsible agency code C an..3 M an..3 9 = GS1
C058 NAME AND ADDRESS C N
3124 Name and address description M an..35 M an..35
C080 PARTY NAME C M
3036 Party name M an..35 M an..35 BAHAG AG = Buyer’s name (DE)

Bahag Baus Handelsgesellschaft


AG = Buyer’s name (AT)

BAUHAUS Luxemburg SARL =


Buyer’s name (LU)

BAUHAUS Nederland C.V. =


Buyer’s name (NL)

BAHAUAS D.O.O., K.D. = Buyer’s


name
3036 Party name M an..35 M an..35 Buyer’s name, line 2
3036 Party name M an..35 M an..35 Buyer’s name, line 3
3036 Party name M an..35 M an..35 Buyer’s name, line 4
C059 STREET C M
3042 Street and number or post office M an..35 M an..35 Gutenbergstrasse 21 = Buyer’s
box identifier street and number (DE)

Straubinger Strasse 25 = Buyer’s


street and number (AT)

37-39 Parc d’Activités Capellen =


Buyer’s street and number (LU)

Regulierenring 2G = Buyer’s
street and number (NL)

Kajuhova 45 = Buyer’s street and


number

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
35
3042 Street and number or post office M an..35 M an..35 Buyer’s street and number, line 2
box identifier
3164 City name C an..35 M an..35 Wels = Buyer’s city name
Mannheim = Buyer’s city name
(DE)
Wels = Buyer’s city name (AT)
Capellen = Buyer’s city name (LU)
Bunnik = Buyer’s city name (NL)
Ljubljana = Buyer’s city name
C819 COUNTRY SUB-ENTITY DETAILS C N
3229 Country sub-entity name code C an..9 N
3251 Postal identification code C an..17 M an..17 68167 = Buyer’s postal code (DE)
4600 = Buyer’s postal code (AT)
8308 = Buyer’s postal code (LU)
3981 LB = Buyer’s postal code
(NL)
1000 = Buyer’s postal
3207 Country name code C an..3 M an..3 Buyer’s country code
Segment notes:
Segment status: Mandatory

Example DE: NAD+BY+4024506000001::9++BAHAG Baus Handelsgesellschaft AG+Gutenbergstrasse


21+Mannheim++68167+DE'
The buyer’s GLN is 4024506000001 and has an address as in the example above.

Example AT: NAD+BY+9006713000000::9++Bahag Baus Handelsgesellschaft AG+Straubinger Strasse


25+Wels++4600+AT'
The buyer’s GLN is 9006713000000 and has an address as in the example above.

Example LU: NAD+BY+5430000366007::9++BAUHAUS Luxemburg SARL+37-39 Parc d´Activités


Capellen+Capellen++8308+LU'
The buyer’s GLN is 5430000366007 and has an address as in the example above.

Example NL: NAD+BY+8714252031300::9++BAUHAUS Nederland C.V.+Regulierenring 2G+Bunnik++3981


LB+NL'
The buyer’s GLN is 8714252031300 and has an address as in the example above.

Example SI: NAD+BY+9006713000703::9++BAUHAUS D.O.O., K. D.+Kajuhova 45+Ljubljana++1000+SI'


The buyer’s GLN is 9006713000703 and has an address as in the example above.

This segment serves for the identification of the buyer and for specification of its address.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
36
Head section- Segment number 23
SG2 M 1 Buyer’s Identification details
SG3 C 1 Buyer’s VAT registration number
RFF M 1 Buyer’s VAT registration number
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
Reference code M an..3 M an..3 VA = VAT registration number
1153 qualifier
Reference identifier M an..70 M an..20 DE143872368 = Buyer’s VAT registration
1154 number (DE)
ATU23480702 = Buyer’s VAT registration
number (AT)
LU27872364 = Buyer’s VAT registration
number (LU)
NL853035210B01 = Buyer’s VAT registration
number (NL)
SI86657593 = Buyer’s VAT registration
number (SI)
Segment notes:
Segment status: Mandatory

Example DE: RFF+VA:DE143872368'


The VAT registration number of the buyer is DE143872368.
Example AT: RFF+VA:ATU23480702'
The VAT registration number of the buyer is ATU23480702.
Example LU: RFF+VA:LU27872364'
The VAT registration number of the buyer is LU27872364.
Example NL: RFF+VA:NL853035210B01'
The VAT registration number of the buyer is NL853035210B01
Example SI: RFF+VA:SI86657593'
The VAT registration number of the buyer is SI86657593.

In the RFF segment that follows a NAD segment the VAT registration number of the buyer should be stated

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
37
Head section- Segment number 24
SG2 M 1 Identification details of the buyer
SG3 C 1 Fiscal number of the buyer
RFF M 1 Fiscal number of the buyers
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 FC = Fiscal number
1154 Reference identifier M an..70 M an..70 37007/05224 = Fiscal number of
the buyer (DE)
46-954912-5 = Fiscal number of
the buyer (AT)
20132420743 = Fiscal number of
the buyer (LU)
58426019 = Fiscal number of the
buyer (NL)
46-954912-5 = Fiscal number of
the buyer (SI)

Segment notes:
Segment status: Conditional

Example DE: RFF+FC:37007/05224'


The fiscal number of the buyer is 37007/05224
Example AT: RFF+FC:46-954912-5'
The fiscal number of the buyer is 46-954912-5.
Example LU: RFF+FC:20132420743'
The fiscal number of the buyer is 20132420743.
Example NL: RFF+FC:58426019'
The fiscal number of the buyer is 58426019.
Example SI: RFF+FC:46-954912-5 '
The fiscal number of the buyer is 46-954912-5

In the RFF segment that follows a NAD segment can be given the fiscal number.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
38
Head section- Segment number 25
SG2 M 1 Identification details of the delivery party
NAD M 1 Identification details of the delivery party
EDIFACT Application, allowed codes
NAD
3035 Party function code qualifier M an..3 M an..3 DP = Delivery party
C082 PARTY IDENTIFICATION DETAILS C C
3039 Party identifier M an..35 M n13 GLN of the delivery party
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 M an..3 9 = GS1
code
C058 NAME AND ADDRESS C N
3124 Name and address description M an..35 M an..35
C080 PARTY NAME C M
3036 Party name M an..35 M an..35 Delivery party name
3036 Party name M an..35 M an..35 Delivery party name, line 2
3036 Party name M an..35 M an..35 Delivery party name, line 3
3036 Party name M an..35 M an..35 Delivery party name, line 4
C059 STREET C M
3042 Street and number or post M an..35 M an..35 Delivery party street and
office box identifier number or the post office box
identification
3042 Street and number or post M an..35 M an..35 Delivery party street, line 2
office box identifier
3164 City name C an..35 M an..35 Delivery party city
C819 COUNTRY SUB-ENTITY DETAILS C N
3229 Country sub-entity name code C an..9 N
3251 Postal identification code C an..17 M an..17 Delivery party postal
identification code
3207 Country name code C an..3 M an..3 Delivery party country code
Segment notes:
Segment status: Mandatory

Note: For drop shipment orders in Germany (online store), the GLN 4024506005006 is expected.
Note: For drop shipment orders in Austria (online store) the GLN 9006713000222 is expected.
Note: For drop shipment orders in the Netherlands (online store), the GLN 8714252031300 is expected.

Example: NAD+DP+9006713000000::9++MUSTERLAGER+MUSTERSTRASSE+MUSTERORT++5432+AT'
The delivery party GLN is 9006713000000 and it has an address as in the example above.
This segment always identifies the first delivery place.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
39
Head section- Segment number 26
SG2 M 1 Identification details of the shipping party
NAD M 1 Details of the shipping party / distribition warehouse
EDIFACT Application, allowed codes
NAD
3035 Party function code qualifier M an..3 M an..3 SF = shipping party / distribution
warehouse
C082 PARTY IDENTIFICATION DETAILS C C
3039 Party identifier M an..35 M n13 GLN of the shipping party
1131 Code list identification code C an..17 N
3055 Code list responsible agency code C an..3 M an..3 9 = GS1
C058 NAME AND ADDRESS C N
3124 Name and address description M an..35 M an..35
C080 PARTY NAME C C
3036 Party name M an..35 C an..35 Shipping party name
3036 Party name M an..35 C an..35 Shipping party name, line 2
3036 Party name M an..35 C an..35 Shipping party name, line 3
3036 Party name M an..35 C an..35 Shipping party name, line 4
C059 STREET C C
3042 Street and number or post office M an..35 C an..35 Shipping party street and number
box identifier or post office box identifier
3042 Street and number or post office M an..35 C an..35 Shipping party street, line 2
box identifier
3164 City name C an..35 C an..35 Shipping party city
C819 COUNTRY SUB-ENTITY DETAILS C N
3229 Country sub-entity name code C an..9 N
3251 Postal identification code C an..17 C an..17 Shipping party postal
identification code
3207 Country name code C an..3 M an..3 Shipping party country code
Segment notes:
Segment status: Depends

Note: If the supplier is not the direct provider of goods or services, this segment is mandatory.

Example: NAD+SF+4000000000000::9++MUSTERLAGER+MUSTERSTRASSE+MUSTERORT++54321+DE'
The provider of goods and of the service GLN is 4000000000000 and its address is as in the
example.
This segment identifies the provider of goods.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
40
Head section- Segment number 27
SG2 M 1 Identification details of the shipping party
SG3 C 1 VAT registration number of the shipping party
RFF M 1 VAT registration number of the shipping party
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 VA = VAT registration number
1154 Reference identifier M an..70 M an..20 VAT registration number of the
shipping party
Segment notes:
Segment status: Conditional

Note: The VAT identification number of the service provider must be specified here.

Example: RFF+VA:DE901010'
The VAT registration number of the buyer is DE901010
In the RFF segment that follows a NAD segment should be stated the VAT registration number.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
41
Head section- Segment number 28
SG2 M 1 Identification details of the invoicee
NAD M 1 Identification details of the invoicee
EDIFACT Application, allowed codes
NAD
3035 Party function code qualifier M an..3 M an..3 IV = Invoicee
C082 PARTY IDENTIFICATION DETAILS C C
3039 Party identifier M an..35 M n13 GLN of the invoicee
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 M an..3 9 = GS1
code
C058 NAME AND ADDRESS C N
3124 Name and address description M an..35 N
C080 PARTY NAME C N
3036 Party name M an..35 N
C059 Party name C N
3042 Party name M an..35 N
3164 Party name C an..35 N
C819 STREET C N
3229 Street and number or post office C an..9 N
box identifier
3251 Street and number or post office C an..17 N
box identifier
3207 City name C an..3 N
Segment notes:
Segment status: Mandatory

Example DE: NAD+IV+4024506000001::9'


The invoice recipient’s GLN is 4024506000001.
Example AT: NAD+IV+9006713000000::9'
The invoice recipient’s GLN is 9006713000000.
Example LU: NAD+IV+5430000366007::9'
The invoice recipient’s GLN is 5430000366007.
Example NL: NAD+IV+8714252031300::9'
The invoice recipient’s GLN is 8714252031300.
Example SI: NAD+IV+9006713000703::9'
The invoice recipient’s GLN is 9006713000703.

This segment serves for the identification of the invoicee.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
42
Head section- Segment number 29
SG6 M 1 VAT rate
TAX M 1 VAT rate
EDIFACT Application, allowed codes
TAX
5283 Duty or tax or fee function code M an..3 M an..3 7 = Tax
qualifier
C241 DUTY/TAX/FEE TYPE C M
5153 Duty or tax or fee type name C an..3 M an..3 VAT = Value added tax
code
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5152 Duty or tax or fee type name C an..35 N
C533 DUTY/TAX/FEE ACCOUNT C N
DETAIL
5289 Duty or tax or fee account code M an..6 M
5286 Duty or tax or fee assessment C an..15 N
basis quantity
C243 DUTY/TAX/FEE DETAIL C M
5279 Duty or tax or fee rate code C an..7 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5278 Duty or tax or fee rate C an..17 M an..17 Actual tax rate
5305 Duty or tax or fee category code C an..3 M an..3 E = Exempt from tax
S = Standard rate
Segment notes:
Segment status: Mandatory

The applicable tax rate of the document is specified here in the header of the message. Possible deviating
tax rates are displayed on the line item level.

Example: TAX+7+VAT+++:::19+S'
If there is not at least one tax-exempt line item in SG34, the applicable tax rate for the invoice is
19%.
This segment is used to specify the type of tax, its category and its rate for the whole invoice

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
43
Head section- Segment number 30
SG7 M 1 Currency identification code
CUX M 1 Currency identification code
EDIFACT Application, allowed codes
CUX
C504 CURRENCY DETAILS C M
6347 Currency usage code qualifier M an..3 M an..3 2 = Reference currency
6345 Currency identification code C an..3 M an..3 Invoice currency
EUR = Euro
ISO 4217 3-Alpha Code
6343 Currency type code qualifier C an..3 M an..3 4 = Currency of the invoice
C504 CURRENCY DETAILS C C
6347 Currency usage code qualifier M an..3 M an..3
6345 Currency identification code C an..3 M an..3
6343 Currency type code qualifier C an..3 M an..3
5402 Currency exchange rate C n..12 C n..12
Segment notes:
Segment status: Mandatory

Note: The currency transmitted for the invoice must correspond to the order currency. Usually these are
Euro (EUR).

Example: CUX+2:EUR:4'
The bill is invoiced in Euro.
This segment is used to specify the currency details for the whole invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
44
Head section- Segment number 31
SG8 M 1 Payment terms
PAT M 1 Payment terms
EDIFACT Application, allowed codes
PAT
5463 Payment terms type code M an..3 C an..3 3 = Fixed date
qualifier
C110 PAYMENT TERMS C N
4277 Payment terms description M an..17 N
identifier
C112 TERMS/TIME INFORMATION C N
2475 Time reference code M an..3 N
2009 Terms time relation code C an..3 N
2151 Period type code C an..3 N
2152 Period count quantity C an..3 N
Segment notes:
Segment status: Conditional

Example: PAT+3'
This segment is used by sender for the specification the payment terms that are applicable to the whole
document.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
45
Head section- Segment number 32
SG8 M 1 Payment terms
DTM M 1 Terms net due date
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 13 = Terms net due date
code qualifier
2380 Date or time or period value C an..35 M an..8 Due date
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Conditional

The date (Code 13), at which the payment is due, must be provided in the message.

Example: DTM+13:20241114:102'
The payment is due on 14.11.2024
This segment is used to provide the terms net due date.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
46
Head section- Segment number 33
SG8 M 1 Payment terms
PAT M 1 Payment terms
EDIFACT Application, allowed codes
PAT
5463 Payment terms type code M an..3 M an..3 22 = Discount
qualifier
C110 PAYMENT TERMS C N
4277 Payment terms description M an..17 N
identifier
C112 TERMS/TIME INFORMATION C C
2475 Time reference code M an..3 M an..3 5 = Date of invoice
2009 Terms time relation code C an..3 M an..3 3 = by reference
2151 Period type code C an..3 M an..3 D = Day
2152 Period count quantity C an..3 M an..3 Number of discount days
Segment notes:
Segment status: Conditional

The PAT segment must be provided.

Example: PAT+22++5:3:D:14'
This segment is used to specify the time period in which the discount is applicable.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
47
Head section- Segment number 34
SG8 M 1 Payment terms
DTM M 1 Terms discount due date
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 12 = Terms discount due
code qualifier date/time
2380 Date or time or period value C an..35 M an..8 Payment terms discount due date
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Conditional

The date (Code 12), at which the payment with a trade discount is due, must be provided in the message.

Example: DTM+12:20240530:102'
The payment is due on 30.05.2024.

This segment is used to specify the date by which the payment should be made so that the payment
discount can be applied.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
48
Head section- Segment number 35
SG8 M 1 Payment terms
PCD M 1 Payment/Trade discount
EDIFACT Application, allowed codes
PCD
C501 PERCENTAGE DETAILS M M
5245 Percentage type code qualifier M an..3 M an..3 12 = Discount
5482 Percentage C n..10 M n..10 Payment discount percentage
Segment notes:
Segment status: Conditional

A payment or trade discount is a discount that is granted when the payment id done within a certain time
period or until a specified date.

Example: PCD+12:3'
There is a trade discount of 3%.

This segment is used for specification of the discount rate in percent.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
49
Head section- Segment number 36
SG8 C 1 Payment terms
MOA M 1 Trade discount monetary amount
EDIFACT Application, allowed codes
MOA
C516 Monetary amount C M
5025 Monetary amount type code M an..3 M an..3 8 = Allowance or charge amount
qualifier
5004 Monetary amount C n..35 M n..18 Trade discount monetary amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory, if conditions were granted

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+8:6.38:EUR'
The monetary amount is 6,38 EURO.
This segment is used to represent monetary allowances or charges, if the invoicee pays (or does not) on
time.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
50
Head section- Segment number 37
SG8 C 1 Payment terms
PAT C 1 Number of value days
EDIFACT Application, allowed codes
PAT
5463 Payment terms type code M an..3 M an..3 22 = Discount
qualifier
C110 PAYMENT TERMS C N
4277 Payment terms description M an..17 N
identifier
C112 TERMS/TIME INFORMATION C C
2475 Time reference code M an..3 M an..3 66 = Specified date
2009 Terms time relation code C an..3 N
2151 Period type code C an..3 N
2152 Period count quantity C an..3 M an..3 Number of value days
Segment notes:
Segment status: Conditional

Example: PAT+22++66:::12'
This segment is used to specify the number of value days.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
51
Head section- Segment number 38
SG8 C 1 Payment terms
DTM C 1 Value date
EDIFACT Application, allowed codes
DTM
C507 DATE/TIME/PERIOD M M
2005 Date or time or period function M an..3 M an..3 209 = Value date
code qualifier
2380 Date or time or period value C an..35 M an..8 Value date
2379 Date or time or period format C an..3 M an..3 102 = JJJJMMTT
code
Segment notes:
Segment status: Conditional

The value date (Code 209) can be provided in the message.

Example: DTM+209:20240530:102'
The value date is 30.05.2024
This segment is used to provide date details in context of the payment terms that are specified in the
invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
52
Head section- Segment number 39
SG12 C 1 Terms of delivery or transport
TOD M 1 Terms of delivery or transport
EDIFACT Application, allowed codes
TOD
4055 Delivery or transport terms function C an..3 M an..3 6 = Delivery terms
code
4215 Transport charges payment method C an..3 N
code
C100 TERMS OD DELIVERY OR TRANSPORT C M
4053 Delivery or transport terms C an..3 C an..3 Delivery or transport terms
description code description code
INCOTERMS

EXW = Ex Works
FCA = Free Carrier
FAS = Free alongside ship
FOB = Free on Board
CFR = Cost and Freight
CIF = Cost, Insurance and
Freight
DAT = Delivered at Terms
DAP = Delivered at Place
CPT = Carriage paid to
CIP = Carriage and
Insurance Paid to
DDP = Delivered Duty Paid
1131 Codelist, Code C an..3 N
4052 Delivery or transport terms C an..70 C an..70 Delivery or transport terms
description description
4052 Delivery or transport terms C an..70 C an..70 Delivery or transport terms
description description
Segment notes:
Segment status: Conditional

Example: TOD+6++CIF::Cost, Insurance and Freight'


The order was delivered carriage free.
This segment is used to provide details of delivery and transport terms.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
53
Head section- Segment number 40
SG16 C 1 Allowances or charges
ALC M 1 Allowances or charges
EDIFACT Application, allowed codes
ALC
5463 Allowance or charge code M an..3 M an..3 A = Allowance
qualifier C = Charge
C552 ALLOWANCE/CHARGE C N
INFORMATION
1230 Allowance or charge identifier C an..35 N
4471 Settlement means code C an..3 N
1227 Calculation sequence code C an..3 M Calculation sequence code

1 = First step of calculation


2 = Second step of calculation

etc…

9 = Ninth step of calculation


C214 SPECIAL SERVICES C M
IDENTIFICATION
7161 Special service description code C an..3 M an..3 Special service description code

DI = Discount
FC = Freight charge
IN = Insurance
PC = Packing
MAC = Small-quantity surcharge
CRS = Waste disposal costs
AEO = Surcharge for recycling

1131 Code list identification code C an..3 N


3055 Code list responsible agency C an..3 N
code
7160 Special service description C an..35 C an..35 Discount description
Segment notes:
Segment status: Mandatory, when there are allowances or charges

For each allowance or charge its own segment group is created.


The allowances / charges in the head part of the invoice are independent of those in the line item part, i.e.
ALC in the line item part does not override ALC in the head part.

Example: ALC+A+++1+DI::: Discount


There is a head discount.
This segment is used to specify all allowances and charges that refer to the whole invoice, e.g. Packing
charges. Only the five mentioned above types are allowed to be transmitted.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
54
Head section- Segment number 41
SG16 C 1 Allowances or charges
SG19 M 1 Payment terms
PCD M 1 Allowance / Charges percentage rate
EDIFACT Application, allowed codes
PCD
C501 PERCENTAGE DETAILS M M
5245 Percentage type code qualifier M an..3 M an..3 3 = Allowance or charge
5482 Percentage C n..10 M n..10 Percentage of allowance or charge
Segment notes:
Segment status: Conditional

Example: PCD+3:3'
This segment is used to specify allowance / charge percentages in the ALC group in question.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
55
Head section- Segment number 42
SG16 C 1 Allowance or charge
SG20 C 1 Monetary amount
MOA M 1 Allowance otr charge monetary amount
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 8 = Allowance or charge amount
qualifier
5004 Monetary amount C n..35 M n..18 Allowance or charge amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory, when there are allowances or charges

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+8:2.97:EUR'
Allowance or charge is 2,97 EURO.
This segment is used to specify the monetary amounts of allowances or charges in the ALC group in
question.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
56
Head section- Segment number 43
SG16 C 1 Allowance or charge
SG20 C 1 Monetary amount
SG22 M 1 Value added tax
TAX M 1 Allowance or charge value added tax
EDIFACT Application, allowed codes
TAX
5283 Duty or tax or fee function code M an..3 M an..3 7 = Tax
qualifier
C241 DUTY/TAX/FEE TYPE C M
5153 Duty or tax or fee type name C an..3 M an..3 VAT = Value added tax
code
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5152 Duty ot tax or fee type name C an..35 N
C533 DUTY/TAX/FEE ACCOUNT DETAIL C N
5289 Duty or tax or fee account code M an..6 N
5286 Duty or tax or fee assessment C an..15 N
basis value
C243 DUTY/TAX/FEE DETAIL C M
5279 Duty or tax or fee rate code C an..7 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5278 Duty or tax or fee rate C an..17 M an..17 Actual tax rate
5305 Duty or tax or fee category code C an..3 M an..3 E = Exempt from tax
S = Standard rate
Segment notes:
Segment status: Depends, when there are allowances or charges and different tax per line item.

This segment indicates with which tax rate allowances or charges are associated.

Example: TAX+7+VAT+++:::19+S'
The invoice discount refers to the part of the invoice that is subject to 19% VAT.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
57
Line item section- Segment number 44
SG26 M 1 Line item information
LIN M 1 Line item number and GTIN item identification
EDIFACT Application, allowed codes
LIN
1082 Line item identifier C an..6 M an..6 Line item number
1229 Action request/notification C an..3 N
description code
C212 ITEM NUMBER IDENTIFICATION C C
7140 Product / service identifier C an..35 C an..35 GTIN item identification
7143 Product / service identification C an..3 C an..3 SRV = GS1 international
code item number/ Global
Trade Item Number,
EAN/GTIN
1131 Code list identification code C an..3 N
3055 Code list responsible agency code C an..3 N
C829 SUB-LINE INFORMATION C N
5495 Sub-line indicator code C n..2 C n..2 1 = Sub-line item information
1082 Line item identifier C an..6 C an..6 Line item number to which the
sub-line item refers
Segment notes:
Segment status: Mandatory

Note: C829 is only used if sub-line items are required.

Example: LIN+1++4000000000000:SRV'
The invoiced item is identified with GTIN 4000000000000.
This segment indicates the beginning of the line item section of the invoice. The line item section is formed
by repeating segment groups that start with a LIN segment.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
58
Line item section- Segment number 45
SG26 M 1 Line item information
PIA C 1 Supplier’s article number
EDIFACT Application, allowed codes
PIA
4347 Product identifier code qualifier M an..3 M an..3 1 = Additional identification
C212 ITEM NUMBER IDENTIFICATION M M
7140 Item identifier C an..35 C an..35 Supplier’s internal article number
7143 Item type identification code C an..3 C an..3 SA = Supplier’s article number
Segment notes:
Segment status: Conditional

The article number of the supplier should always be transmitted if available.

Example: PIA+1+AB123456:SA'
The internal article number of the supplier is AB123456.
This segment is used to specify additional or substitutional item identification, e.g. item number of the buyer
or of the supplier.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
59
Line item section- Segment number 46
SG26 M 1 Line item information
PIA C 1 Buyer’s article number
EDIFACT Application, allowed codes
PIA
4347 Product identifier code qualifier M an..3 M an..3 1 = Additional identification
C212 ITEM NUMBER IDENTIFICATION M M
7140 Item identifier C an..35 C n..8 Buyer’s internal article number
7143 Item type identification code C an..3 C an..3 IN = Buyer’s article number
Segment notes:
Segment status: Conditional

The article number of the buyer should always be transmitted if available

Example: PIA+1+12345678:IN'
The internal article number of the buyer is 12345678.
This segment is used to specify additional or substitutional item identification, e.g. item number of the buyer
or of the supplier.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
60
Line item section- Segment number 47
SG26 M 1 Line item information
PIA C 1 Harmonised system number
EDIFACT Application, allowed codes
PIA
4347 Product identifier code qualifier M an..3 M an..3 1 = Additional identification
C212 ITEM NUMBER IDENTIFICATION M M
7140 Item identifier C an..35 C an..35 Harmonized system number
7143 Item type identification code C an..3 C an..3 HS = Harmonized system number
Segment notes:
Segment status: Conditional

The harmonized system number must be transmitted if available.

Example: PIA+1+84539123456CD:HS'
The harmonized system number is 84539123456CD.

This segment is used to specify additional or substitutional item identification, e.g. item number of the buyer
or of the supplier.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
61
Line item section- Segment number 48
SG26 M 1 Line item information
IMD M 1 Product / service description – free format
EDIFACT Application, allowed codes
IMD
7077 Description format code C an..3 M an..3 A = Free format – long
description
C272 ITEM CHARACTERISTIC C N
7081 Item characteristic code C an..3 N
C273 PRODUCT / SERVICE M M
DESCRIPTION
7009 Product / service description C an..17 N
code
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
7008 Product / service description C an..256 M an..70 Long article description
7008 Product / service description C an..256 C an..70 Long article description, line 2
3453 Language name code C an..3 N
Segment notes:
Segment status: Mandatory

Example: IMD+A++:::Text1:Text2'
The line has long article description: Text 1 and Text 2.
This segment is used to describe the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
62
Line item section- Segment number 49
SG26 M 1 Line item information
IMD C 1 Product / service description - Code
EDIFACT Application, allowed codes
IMD
7077 Description format code C an..3 M an..3 C = Code
C272 ITEM CHARACTERISTIC C N
7081 Item characteristic code C an..3 N
C273 PRODUCT / SERVICE M M
DESCRIPTION
7009 Product / service description C an..17 C an..17 SG = Standard group of products
code code (GS1 Code)
(for the description of stand up
display within the main line
item)
CU = Consumer Unit GS1
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 C an..3 9 = GS1
code
7008 Product / service description C an..256 N
7008 Product / service description C an..256 N
3453 Language name code C an..3 N
Segment notes:
Segment status: Conditional

Example: IMD+C++SG::9'
According to the item description, there is a stand up display, described within the main line
item, to which the current line item refers.
Example: IMD+C++CU::9'
According to the article description there is a container, so that every line item refers to the main
line item.

This segment is used to describe the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
63
Line item section- Segment number 50
SG26 M 1 Line item information
QTY M 1 Invoiced quantity
EDIFACT Application, allowed codes
QTY
C186 QUANTITY DETAILS M M
6063 Quantity type code qualifier M an..3 M an..3 47 = Invoiced quantity
6060 Quantity M an..35 M n..15 Invoiced quantity
Remark:
Only numerical values are allowed
6411 Measurement unit code C an..3 M an..3 KGM = Kilogramm
PCE = Piece (GS1-Code)
LTR = Liter
MTR = Meter
CT = Carton
(additional measurement unit
codes to be found in index)
Segment notes:
Segment status: Mandatory

Example: QTY+47:17:PCE'
17 pieces are invoiced.
This segment is used to indicate the invoiced quantity of the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
64
Line item section- Segment number 51
SG26 M 1 Line item information
ALI C 1 Country of origin
EDIFACT Application, allowed codes
ALI
3239 Country of origin name code C an..3 C an..3 DE = Germany
9213 Duty regime type code C an..3 N
4183 Special condition code C an..3 N
Segment notes:
Segment status: Conditional

This segment is used to specify the country of origin.

Example: ALI+DE'
The country of origin is Germany.
This segment indicates that special conditions apply depending on the origin, customs preference and fiscal
or economic factors.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
65
Line item section- Segment number 52
SG26 M 1 Line item information
FTX C 99 Free text
EDIFACT Application, allowed codes
FTX
4451 Text subject code qualifier M an..3 M an..3 LIN = Line item information
4453 Free text function code C an..3 N
C107 TEXT REFERENCE C N
4441 Free text value code M an..17 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
C108 TEXT C M
4440 Free text value M an..512 M an..70 Free text
4440 Free text value C an..512 C an..70 Free text, Line 2
4440 Free text value C an..512 C an..70 Free text, Line 3
4440 Free text value C an..512 C an..70 Free text, Line 4
4440 Free text value C an..512 C an..70 Free text, Line 5
3453 Language name code C an..3 N
Segment notes:
Segment status: Conditional

Example: FTX+LIN+++Text:Text2:Text3:Text4:Text5'
This segment is used to provide text information concerning the current position.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
66
Line item section- Segment number 53
SG26 M 1 Line item information
SG27 C 1 Monetary amount
MOA M 1 Line item amount
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 203 = Line item amount
qualifier
5004 Monetary amount C n..35 M n..18 Line item amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

The price that is given in the PRI segment is a net price and it is used to calulate the line item amount as
follows:
Line item amount = (Quantity * Price)

Example: MOA+203:212.5:EUR'
The net value of the goods is 212,50 EURO.
This segment is used to specify all monetary amounts concerning the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
67
Line item section- Segment number 54
SG26 M 1 Line item information
SG29 C 1 Price details
PRI C 1 Net price
EDIFACT Application, allowed codes
PRI
C509 PRICE INFORMATION C M
5125 Price code qualifier M an..3 M an..3 AAA = Calculation net
5118 Price amount C n..15 M n..15 Net price per invoiced item
5375 Price type code C an..3 N
5387 Price specification code C an..3 N
5284 Unit price basis value C n..9 C n..9 Product quantity that constitutes
a basis for the price
6411 Measurement unit code C an..3 M an..3 KGM = Kilogram
PCE = Piece (GS1-Code)
LTR = Liter
MTR = Meter
(additional measurement unit
codes to be found in index)
Segment notes:
Segment status: Mandatory

This segment must be used to indicate the prices used for the calculation of the value of the goods.
In an invoice only one calculation method is allowed to be used to determine the value of the goods.

Example: PRI+AAA:12.50:::1:PCE'
The net price per piece is 12,50 EURO.
This segment is used to provide price details for the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
68
Line item section- Segment number 55
SG26 M 1 Line item information
SG30 C 1 Certificate details
RFF M 1 Article certficate
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 XA = Company registration number
1154 Reference identifier M an..70 M an..35 Certificate (-number) of the article,
Classification
Segment notes:
Segment status: Conditional

Note: The wood certificate class must be specified here. Alternatively, the wood certificate and class can be
specified here if it is not possible to specify the wood certificate at header level.

Example: RFF+XA:FSC Mix'


FSC Mix stands for products in which materials from FSC-certified forests, recycled material and
material from controlled sources (Controlled Wood) can be used.
RFF+XA:FSC 100 %'
The material is made from 100% FSC-certified forests.
RFF+XA:FSC recycled'
The material is made exclusively from recycled material.
RFF+XA:SGSCH-COC-050256, FSC Mix 70%'
The FSC certificate number is SGSCH-COC-050256, and the certificate stands for products in which
materials from FSC-certified forests, recycled material and material from controlled sources
(Controlled Wood) can be used.
RFF+XA:PEFC-certified'
The material is PEFC-certified.

This segment is used to specify the certificate number for the current position.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
69
Line item section- Segment number 56
SG26 M 1 Line item information
SG30 C 1
RFF M 1 Configuration id
EDIFACT Application, allowed codes
RFF
C506 REFERENCE M M
1153 Reference code qualifier M an..3 M an..3 ACD = Additional reference
number
1154 Reference identifier M an..70 M an..70 configuration id
Segment notes:
Segment status: Conditional

Example: RFF+ACD:9c917f84-d5da-f39b-5414-12d14040ab10'
The configuration id is 9c917f84-d5da-f39b-5414-12d14040ab10.
This segment is used to specify the configuration id for the current position.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
70
Line item section- Segment number 57
SG26 M 1 Line item information
SG34 M 1 Value added tac
TAX M 1 Line item value added tax
EDIFACT Application, allowed codes
TAX
5283 Duty or tax or fee function code M an..3 M an..3 7 = Tax
qualifier
C241 DUTY/TAX/FEE TYPE C M
5153 Duty or tax or fee type name C an..3 M an..3 VAT = VAT
code
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5152 Duty ot tax or fee type name C an..35 N
C533 DUTY/TAX/FEE ACCOUNT DETAIL C N
5289 Duty or tax or fee account code M an..6 M
5286 Duty or tax or fee assessment C an..15 N
basis value
C243 DUTY/TAX/FEE DETAIL C M
5279 Duty or tax or fee rate code C an..7 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5278 Duty or tax or fee rate C an..17 M an..17 Actual tax rate
5305 Duty or tax or fee category code C an..3 M an..3 E = Exempt from tax
S = Standard rate
Segment notes:
Segment status: Mandatory

The tax rate of the article must be displayed on the line item level.

Example: TAX+7+VAT+++:::19+S'
The line item is subject to a tax rate of 19%.
This segment is used to provide the type of tax, it´s category and rate for the current line item.
If there is at least one tax-exempt line item, the tax exemption also has to be displayed in the head section
(SG6).

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
71
Line item section- Segment number 58
SG26 M 1 Line item information
SG34 M 1 Value added tax
MOA C 1 Valur added tax amount
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 124 = Tax amount
qualifier
5004 Monetary amount C n..35 M n..18 Tax amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Conditional

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+124:2.38:EUR'
The value added tax amount for this line item is 2,38 EURO.
This segment is used to provide monetary amounts related to the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
72
Line item section- Segment number 59
SG26 M 1 Line item information
SG39 C 1 Allowances or charges
ALC M 1 Allowance or charge
EDIFACT Application, allowed codes
ALC
5463 Allowance or charge code M an..3 M an..3 A = Allowance
qualifier C = Charge
C552 ALLOWANCE/CHARGE C N
INFORMATION
1230 Allowance or charge identifier C an..35 N
4471 Settlement means code C an..3 N
1227 Calculation sequence code C an..3 N Calculation sequence code

1 = First step of calculation


2 = Second step of calculation

etc.

9 = ninth step of calculation


C214 SPECIAL SERVICES C M
IDENTIFICATION
7161 Special service description code C an..3 M an..3 DI = Discount
CRS = Disposal fee
AEO = Collection and recycling
service
MC = Material surcharge
1131 Code list identification code C an..3 N
3055 Code list responsible agency C an..3 N
code
7160 Special service description C an..35 M an..35 Discount description
Segment notes:
Segment status: Mandatory, when there are allowances or charges

For each line item its own segment group 39 is created, when applicable.
The allowances / charges in the head section of the invoice are independent of those in the line item
section, i.e. ALC in the line item section does not override ALC in the head section.

Example: ALC+A+++1+DI:::Discount
There is a discount on the line item level.
This segment is used to specify all allowances / charges related to the current line item. Please note to only
send discounts on position level. Freight charge, Packing and Insurance need to be send in the head
section.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
73
Line item section- Segment number 60
SG26 M 1 Line item information
SG39 C 1 Allowances or charges
SG41 M 1 Payment terms
PCD M 1 Allowance / Charges percentage rate
EDIFACT Application, allowed codes
PCD
C501 PERCENTAGE DETAILS M M
5245 Percentage type code qualifier M an..3 M an..3 3 = Allowance or charge
5482 Percentage C n..10 M n..10 Percentage of allowance or charge
Segment notes:
Segment status: Mandatory, when applicable

Example: PCD+3:3'
This segment is used to specify percentages of allowances or charges for the calculated position.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
74
Line item section- Segment number 61
SG26 M 1 Line item information
SG39 C 1 Allowance or charge
SG42 C 1 Monetary amount
MOA M 1 Allowance / charge monetary amount
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount, Qualifier M an..3 M an..3 8 = Allowance or charge amount
5004 Monetary amount C n..35 M n..18 Allowance or charge amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory, if there are allowances or charges

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+8:2.97:EUR'
Allowance or charge is 2,97 EURO.
This segment is used to specify the monetary amounts of allowances or charges in the ALC group in
question.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
75
Summary section - Segment number 62
UNS M 1 Section control segment
EDIFACT Application, allowed codes
UNS
0081 Section identification M a1 M a1 S = Detail/summary section
separation
Segment notes:
Segment status: Mandatory

Example: UNS+S'
Separation of the line item and Summary sections
This segment is used to separate the line item and Summary sections of the message.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
76
Summary section - Segment number 63
SG50 C 1 Monetary amount
MOA M 1 Total invoice amount
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 77 = Invoice amount
qualifier
5004 Monetary amount C n..35 M n..18 Total invoice amount
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+77:249.34:EUR'
The invoice amount is 249,34 EURO.
This segment is used to specify advance payments or aggregate amounts for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
77
Summary section - Segment number 64
SG50 C 1 Monetary amunt
MOA M 1 Total line items amount in the invoice
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 79 = Total line items amount
qualifier
5004 Monetary amount C n..35 M n..18 Total line items amount oft he
invoice
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+79:212.5:EUR'
The sum of all net values is 212,50 EURO.
This segment is used to specify advance payments or aggregate amounts for the entire invoice. Tolerance 3
cents.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
78
Summary section - Segment number 65
SG50 C 1 Monetary amount
MOA M 1 Total tax amount of the invoice
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 124 = Tax amount
qualifier
5004 Monetary amount C n..35 M n..18 Total tax amount of the invoice
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+124:39.81:EUR'
The tax amount is 39,81 EURO.
This segment is used to specify advance payments or aggregate amounts for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
79
Summary section - Segment number 66
SG50 C 1 Monetary value
MOA M 1 Taxable amount of the invoice
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 125 = Taxable amount
qualifier
5004 Monetary amount C n..35 M n..18 Taxable amount of the invoice
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+125:209.53:EUR'
The taxable amount of the invoice is 209,53 EURO.
This segment is used to specify advance payments or aggregate amounts for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
80
Summary section - Segment number 67
SG50 C 1 Monetary amount
MOA M 1 Charges / allowances
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 131 = Charges / Allowances
qualifier
5004 Monetary amount C n..35 M n..18 The sum of charges and
allowances
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory, if there are charges or allowances

This MOA segment contains the sum of the allowances / charges of the bill document on the invoice level.

Note DE 5004: The amount must be communicated with the correct sign.

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+131:-2.79:EUR'
This sum of invoice discounts is 2,79 EURO.
This segment is used to specify advance payments or aggregate amounts for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
81
Summary section per tax rate- Segment number 68
SG52 C 1 VAT rate
TAX M 1 VAT rate
EDIFACT Application, allowed codes
TAX
5283 Duty or tax or fee function code M an..3 M an..3 7 = Tax
qualifier
C241 DUTY/TAX/FEE TYPE C M
5153 Duty or tax or fee type name C an..3 M an..3 VAT = VAT
code
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5152 Duty or tax or fee type name C an..35 N
C533 DUTY/TAX/FEE ACCOUNT DETAIL C N
5289 Duty or tax or fee account code M an..6 M
5286 Duty or tax or fee assessment C an..15 N
basis value
C243 DUTY/TAX/FEE DETAIL C M
5279 Duty or tax or fee rate code C an..7 N
1131 Code list identification code C an..17 N
3055 Code list responsible agency C an..3 N
code
5278 Duty or tax or fee rate C an..17 M an..17 Actual tax rate
5305 Duty or tax or fee category code C an..3 M an..3 E = Exempt from tax
S = Standard rate
Segment notes:
Segment status: Depends, this segment group must be used if the invoice contains more than one VAT rate.

If the invoice contains multiple VAT rates then this group must be repeated for each tax rate. If the invoice
has only one VAT rate then SG52 must NOT be transmitted.

Example: TAX+7+VAT+++:::19+S'
VAT rate of 19% applies to this part of the invoice.
This segment is used to provide the type of tax, its category and rate for the current line item.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
82
Summary section per tax rate- Segment number 69
SG52 C 1 Monetary amount
MOA M 1 Total tax amount of the invoice (per tax rate)
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 124 = Tax amount
qualifier
5004 Monetary amount C n..35 M n..18 Tax amount per tax rate
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Depends, this segment group is mandatory, if the invoice contains more than one VAT rate.

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+124:20.00:EUR'
The tax amount for the given VAT rate is 20,00 EURO.
This segment is used to specify advance payments or aggregate amounts per tax rate for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
83
Summary section per tax rate- Segment number 70
SG52 C 1 Monetary amount
MOA M 1 Taxable amount of the invoice (per tax rate)
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 125 = Taxable amount
qualifier
5004 Monetary amount C n..35 M n..18 Taxable amount per tax rate
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Depends, this segment group is mandatory, if the invoice contains more than one VAT rate.

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+125:115.97:EUR'
The taxable amount of the invoice for the given tax rate is 115,97 EURO.
This segment is used to specify advance payments or aggregate amounts per tax rate for the entire invoice.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
84
Summary section per tax rate- Segment number 71
SG52 C 1 Monetary amount
MOA M 1 Total charges / allowances (per tax rate)
EDIFACT Application, allowed codes
MOA
C516 MONETARY AMOUNT C M
5025 Monetary amount type code M an..3 M an..3 131 = Total charges / allowances
qualifier
5004 Monetary amount C n..35 M n..18 Sum of charges / allowances per
tax rate
6345 Currency, coded C an..3 C an..3 Invoice currency
Segment notes:
Segment status: Mandatory, if there are charges or allowances

This MOA segment contains the sum of the allowances / charges on document level.

Note DE 5004: The amount must be communicated with the correct sign.

Note:
Transferring a currency in the MOA segments is optional. If a currency is transferred in the MOA segments, it
must accord to the reference currency from the CUX segment.

Example: MOA+131:-5.00:EUR'
The sum of the discounts in the invoice for a tax rate is 5,00 EURO.
This segment is used to specify advance payments or aggregate amounts per tax rate for the entire invoice

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
85
Message Trailer - Segment number 72
UNT M 1 End segment of the message
EDIFACT Application, allowed codes
UNT
0074 Number of segments in the M n..6 M n..6 The total number of segments in
message the message
0082 Message reference number M an..14 M an..14 The message reference numbered
detailed here should equal the one
specified in the UNH segment
Segment notes:
Segment status: Mandatory

Example: UNT+123+0001'
Number of segments in the message is 123.
The UNT segment is a mandatory segment in UN / EDIFACT. It must always be the last segment in the
message.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
86
Interchange Control Reference - Segment number 73
UNZ M 1 End segment of useful data
EDIFACT Application, allowed codes
UNZ
0036 Data interchange counter M n..6 M n..6 Number of messages or number of
functional groups in an
interchange
0020 Data interchange reference M an..14 M an..14 Identical to the DE 0020 in UNB
segment
Segment notes:
Segment status: Mandatory

Example: UNZ+1+4321'
This segment is used to end the data interchange and to check its completeness.

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
87
Test message D01B

UNB+UNOC:3+4000000000000:14+4024506000001:14+130606:1234+4321++++++1'
UNH+0001+INVOIC:D:01B:UN:EAN011'
BGM+380+8744256739+9'
DTM+137:20121001:102'
DTM+35:20120915:102'
FTX+ZZZ+++Text:Text2:Text3:Text4:Text5'
FTX+AAK+1+ST1+Hinweis auf Entgeltminderungen'
FTX+REG+1++GmbH:Musterstadt'
RFF+ON:1012345678'
DTM+171:20120815:102'
RFF+DQ:4715'
DTM+171:20120815:102'
NAD+SU+4000000000000::9++MUSTERLIEFERANT+MUSTERSTRASSE+MUSTERORT++54321+DE'
RFF+YC1:128717'
RFF+TRB:1264::Musterstadt'
RFF+VA:DE101010'
RFF+FC:07/408/123'
RFF+XA:325656'
NAD+BY+4024506000001::9++BAHAG Baus Handelsgesellschaft AG+Gutenbergstr. 21+Mannheim++68167+DE'
RFF+VA:DE143872368'
RFF+FC:37007/05224'
NAD+DP+4000000000000::9++MUSTERLAGER+MUSTERSTRASSE+MUSTERORT++68809+DE'
NAD+IV+4024506000001::9 '
TAX+7+VAT+++:::19+S'
CUX+2:EUR:4+3'
PAT+3'
DTM+13:20131114:102'
PAT+22++5:3:D:14'
DTM+12:20130530:102'
PCD+12:3'
MOA+8:6.38'
PAT+22++66:::12'
DTM+209:20130530:102'
TOD+6++CIF:::frei Haus'
ALC+A+++1+FC:::Frachtkosten'
PCD+3:3'
MOA+8:10.00'
TAX+7+VAT+++:::19+S'
LIN+1++4000000000000:SRV'
PIA+1+AB123456:SA'
PIA+1+12345678:IN'
PIA+1+84539123456CD:HS'
IMD+A++:::Text1:Text2'
IMD+C++SG::9'
QTY+47:17:PCE'
ALI+DE'
FTX+LIN+++Text:Text2:Text3:Text4:Text5'
MOA+203:212.50'

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
88
PRI+AAA:12.50:::1:PCE'
RFF+ACD:9c917f84-d5da-f39b-5414-12d14040ab10'
RFF+XA:325656'
TAX+7+VAT+++:::19+S'
MOA+124:2.38'
ALC+A+++1+DI:::Rabatt'
MOA+8:2.97'
LIN+1++4000000000000:SRV+1:1'
PIA+1+AB123456:SA'
PIA+1+12345678:IN'
PIA+1+84539123456CD :HS'
IMD+A++:::Text1:Text2'
IMD+C++CU::9'
QTY+47:17:PCE'
ALI+DE'
UNS+S'
MOA+77:264.77
MOA+79:212.5'
MOA+124:42.27'
MOA+125:222.5'
MOA+131:10.00'
UNT+74+0001'
UNZ+1+4321'

BAHAG AG / Zweigniederlassung Mannheim


EDI-INVOIC guide
Gutenbergstraße 21
DE, AT, LU, NL, SI- Version 2.1
D – 68167 Mannheim
Date: 28.10.2024
[email protected]
www.bahag.com
89

You might also like