Sales report as EDIFACT-Format (EANCOM)

1. Document information

Message typeDateVersionSubsets
SLSRPT03.08.20161.2D.96A/D.01B

2. Structure of an EDIFACT interchange

In the following you´ll see an overview of the structure of an EDIFACT interchange.
 

Structure

Segment

Status

Function

    

UNA

C

Separator character

    
    

UNB

M

Head of interchange

     
   

UNH

M

Head of message 1

  

 

Message segments

  

UNT

M

End of message 1

  

UNH

M

Head of message 2

  

 

Message segments

  

UNT

M

End of message 2

     
   

UNZ

M

End of interchange

    


3. Description of the EDIFACT service segments UNA, UNB, UNZ

All necessary elements in one segment are displayed. Not used elements not indicated. Codes and attributes in the column "content/comments" are displayed in black, bold and italic notation. At any segment there is an example below the description.

Note: EDIFACT allows to group multiple messages within an interchange but this not supported by beeline actually.

UNAC1SERVICE STRING ADVICE
Function:To define the characters selected for use as delimiters and indicators in the rest of the interchange that follows.
 Element  Status  Format  Description  Content/Notes 
UNA1Man1Component data element separator: - colon
UNA2Man1Data element separator+ - plus sign
UNA3Man1Decimal notation. - full stop
UNA4Man1Release indicator? - question mark
UNA5Man1Reserved for future usespace character
UNA6Man1Segment terminator' - apostrophe
 
Example:UNA:+.? '  
UNBM1INTERCHANGE HEADER
Function:To start, identify and specify an interchange.
 Element  Status  Format  Description  Content/Notes 
S010M SYNTAX IDENTIFIER 
0001Ma4Syntax identifierUNOC
0002Mn1Syntax version number3
S002M INTERCHANGE SENDER 
0004Man..35Interchange sender identificationGLN of the sender
0007Can..4Identification code qualifier14 - GLN
S003M INTERCHANGE RECIPIENT 
0010Man..35Interchange recipient identificationGLN of the recipient
0007Can..4Identification code qualifier14 - GLN
S004M DATE AND TIME OF PREPARATION 
0017Mn6Date070208 - YYMMDD
0019Mn4Time1511 - HHMM
0020Man..14Interchange Control Reference787878
 
Example:UNB+UNOC:3+4016632000000:14+4334400000008:14+070208:1511+787878'  
UNZM1INTERCHANGE TRAILER
Function:To end and check the completeness of an interchange.
 Element  Status  Format  Description  Content/Notes 
0036Mn..6Interchange Control CountThe count of the number
of messages in the
interchange.
0020Man..14Interchange Control ReferenceShall be identical to 0020
in UNB
 
Example:UNZ+1+787878'  

 

4. SLSRPT - Segment description

All service-segments will be specified in the following. All effective elements in one segment are displayed in black lettering. Codes and attributes in the column "content/comments" are displayed in black and italic lettering. All elements which are unused in one segment are grey deposited. At any segment there is an example below the description.

UNHM1MESSAGE HEADER
Function:To head, identify and specify a message.  
 Element  Status  Format  Description  Content/Notes 
0062Man..14Message reference numbere.g. 123456
S009M MESSAGE IDENTIFIER 
0065Man..6Message typeSLSRPT
0052Man..3Message version numberD
0054Man..3Message release number96A (D.96A)
01B (D.01B)
0051Man..2Controlling agencyUN
0057Can..6Association assigned codeEAN004 (D.96A)
EAN007 (D.01B)
 

Example D.96A:

UNH+123456+SLSRPT:D:96A:UN:EAN004'  

Example D.01B:

UNH+654321+SLSRPT:D:01B:UN:EAN007'  

BGMM1BEGINNING OF MESSAGE
Function:To indicate the type and function of a message and to transmit the identifying number.  
 Element  Status  Format  Description  Content/Notes 
C002C DOCUMENT/MESSAGE NAME 
1001Can..3Document/message name, coded73E - sales report
3055Can..3Code list responsible agency, coded9 - GTIN
1004Can..35Document/message numberIdentifier e.g. 654321
1225Can..3Message function, coded9 - Original
 

Example:

BGM+73E::9+654321+9'  

DTMM35DATE/TIME/PERIOD
Function:To specify date, and/or time, or period.  
 Element  Status  Format  Description  Content/Notes 
C507M DATE/TIME/PERIOD 
2005Man..3Date/time/period qualifier137 - Document/message
date/time
356 - Sales date
2380Can..35Date/time/periodz.B. 20061229
2379Can..3Date/time/period format qualifier102 - CCYYMMDD
 
Example:DTM+137:20061229:102'  
Example:DTM+356:20061229:102'  
Note:DTM segment is mandatory for qualifier 137 and 356 (Element 2005).  
SG1 (D.96A)
SG2 (D.01B)

M

5

NAD

NADM1NAME AND ADDRESS
Function:To specify the name/address and their related function, either by CO82 only and/or unstructured by CO58 or structured by CO80 thru 3207.  
 Element  Status  Format  Description  Content/Notes 
3035Man..3Party qualifierSU - Supplier
BY - Buyer
C082C PARTY IDENTIFICATION DETAILS 
3039Man..35Party id. identificationGLN (z.B. 4016632000000)
3055Can..3Code list responsible agency, coded9 - GTIN
 
Example:NAD+SU+4016632000000::9'  GLN of supplier
Example:NAD+BY+1234567890123::9'  GLN of buyer
Note:NAD segment is mandatory for qualifier SU and BY (Element 3035)  
SG4 (D.96A)
SG5 (D.01B)

C

5

CUX

CUXM1CURRENCIES
Function:To specify currencies used in the transaction and relevant details for the rate of exchange.  
 Element  Status  Format  Description  Content/Notes 
C504C CURRENCY DETAILS 
6347Man..3Currency details qualifier- Reference currency
6345Can..3Currency, codedISO 4217 
3-Alpha-Code (e.g. EUR)
6343Can..3Currency qualifier10 - Currency
 
Example:CUX+2:EUR:8'  
Note:CUX segment is mandatory.  
SG5 (D.96A)
SG6 (D.01B)
M200000LOC-DTM-SG7 (D.96A)

LOC-DTM-SG8 (D.01B)
LOCM1PLACE/LOCATION IDENTIFICATION
Function:To identify a country/place/location/related location one/related location two.  
 Element  Status  Format  Description  Content/Notes 
3227Can..3Place/location qualifier162 - Place or location of
sale
C517C LOCATION IDENTIFICATION 
3225Can..25Place/location identificationGLN of Point of sale
1131Can..3Code list qualifier 
3055Can..3Code list responsible agency, coded9 - GTIN
92 - Article code at the
buyer
3224Can..70Place/location 
C519C RELATED LOCATION ONE IDENTIFICATION 
3223Can..25Related place/location one identification 
1131Can..3Code list qualifier 
3055Can..3Code list responsible agency, coded 
3222Can..70Related place/location one 
C519C RELATED LOCATION TWO IDENTIFICATION 
3223Can..25Related place/location two identification 
1131Can..3Code list qualifier 
3055Can..3Code list responsible agency, coded 
3222Can..70Related place/location two 
5479Can..3Relation, coded 
 
Example:LOC+162+4333194124174::9'      GLN of Point of sale  
Example:LOC+162+4333194124174::92'    Store number of Point of sale  
Note:LOC segment is mandatoy  
SG5 (D.96A)
SG6 (D.01B)
M200000LOC-DTM-SG7 (D.96A)

LOC-DTM-SG8 (D.01B)
DTMM35DATE/TIME/PERIOD
Function:To specify date, and/or time, or period.  
 Element  Status  Format  Description  Content/Notes 
C507M DATE/TIME/PERIOD 
2005Man..3Date/time/period qualifier356 - Sales date
2380Can..35Date/time/periodz.B. 20061229
2379Can..3Date/time/period format qualifier102 - CCYYMMDD
 
Example:DTM+356:20061229:102'  
Note:DTM segment is mandatory.  
SG7 (D.96A)
SG8 (D.01B)
C200000LIN-PRI-SG8 (D.96A)

LIN-SG9-SG10 (D.01B)
LINM1LINE ITEM
Function:To identify a line item and configuration.  
 Element  Status  Format  Description  Content/Notes 
1082Cn..6Line item numberConsecutive number
C212C ITEM NUMBER IDENTIFICATION 
7140Can..35Item numberGTIN e.g. 4043977029571
7143Can..3Item number type, codedEN (D.96A)
SRV (D.01B)
International Article
Numbering Association (GTIN)
3055Can..3Code list responsible agency, coded9 - GTIN
 
Example D.96A:LIN+1++4043977029571:EN::9'  
Example: D.01BLIN+1++4043977029571:SRV:9'  
Note:Article number is mandatory.  
SG7 (D.96A)
SG9 (D.01B)
C200000LIN-PRI-SG8 (D.96A)

PRI
PRIC5PRICE DETAILS
Function:To specify price information.  
 Element  Status  Format  Description  Content/Notes 
C509C PRICE INFORMATION 
5125Man..3Price qualifierAAE - Information price
5118Cn..15PricePrice, e.g.: 7.95
5375Can..3Price type, coded 
5387Can..3Price type qualifierRTP - Selling price
 
Example:PRI+AAE:7.95::RTP'  
Note:PRI segment is mandatory.  
SG8 (D.96A)
SG10 (D.01B)
C999QTY
QTYM1QUANTITY
Function:To specify a pertinent quantity.  
 Element  Status  Format  Description  Content/Notes 
C186M QUANTITY DETAILS 
2005Man..3Quantity qualifier153 - Statistical sales
quantity
2380Cn..15Quantitye.g. 3
2379Can..3Measure unit qualifierPCE - PCE
 
Example:QTY+153:3:PCE'  
Note:QTY segment is mandatory.  
UNTM1MESSAGE TRAILER
Function:To end and check the completeness of a message.  
 Element  Status  Format  Description  Content/Notes 
0074Mn..6Number of segments 
0062Man..14Message reference number123456
 
Example:UNT+12+123456'  

Here you can download a sample sales report and test barcodes in EDIFACT format: 

EDIFACT D.96A sales report 
EDIFACT D.01B sales report 

Test Barcodes (matching sample messages)

5. Legend to the EDIFACT tables:

Element

Definition

Example

Format

  

n

numeric

n3 = exact 3 numeric positions
n...35 = up to 35 numeric positions

an

alphanumeric

an12 = exakt 12 alphanumeric positions
an...35 = bis zu 35 alphanumeric positions

Status

  

M

must

 

O

optional