Media Saturn EDI Application Documentation ORDRSP D.01B Outbound VMI Rules Message structure Segment details Version: 2.0 Date: June 8, 2011 Status: Final SA2 Exchange GmbH 1 Media Saturn ORDRSP D.01B
Message Contents structure Index 1 Introduction... 3 1.1 Problem treatment... 3 2 Using the message... 4 2.1 General Message Structure... 4 3 Segments... 6 3.1 Detail information of the Segments... 6 4 Example... 23 SA2 Exchange GmbH 2 Media Saturn ORDRSP D.01B
Message Overview structure 1 Introduction This document describes the use of purchase order response message in context of Media- Saturn VMI-Project. Media-Saturn supports the EDIFACT subset EANCOM syntax version 3, 2002 release. For further details see: http://www.gs1.se/eancom_2002/ean02s3/index.htm This implementation guideline is based on this standard. 1.1 Problem treatment If technical problems based on this guide occur and purchase order response messages aren t submitted, please send a message to: edisupport@sa2worldsync.com or edi-team@media-saturn.com SA2 Exchange GmbH 3 Media Saturn ORDRSP D.01B
Message structure Structure 2 Using the message 2.1 General Message Structure The message ORDERS is divided into three sections: Header part Position part The structure of each of these sections is documented in tabular form on the following pages, where the columns have the following meanings: Segment: EDIFACT-Segment name Status: M: Mandatory field C: optional indication (conditional) M/C: the segment can be used for mandatory and for optional indication. The current status is described in section 3 (segments). Max: Description: Usage: Maximum frequency of the segment / segment group Description of the EDIFACT segment / sequence of segments used in segment group Description of one or more technical information for the EDIFACT segment is used. If there is more than one detail given, normally the segment is to be repeated. Details are described in section 3 (segments). Similar to the EDIFACT Directory 01B it is also shown how the segment groups are nested. Maximum allowed decimal places: 1. Quantities: 2 2. VAT %: 2 3. all others: 4 Agreed with Phononet - the field Mailbox-No. must not be sent to Phononet within the EANCOM ORDERS or ORDRSP format any longer (can be identified by Phononet via the GLN) - the field Partial delivery (value was always JA ) must not be sent to Phononet within the EANCOM ORDERS or ORDRSP format any longer (will be mapped by Phononet in another way) - the field Remark per position must not be sent to Phononet within the EANCOM ORDERS or ORDRSP format any longer (as it was not used by Phononet and will be mapped probably in another way) SA2 Exchange GmbH 4 Media Saturn ORDRSP D.01B
Message structure Segment Status Max. Description Use UNA C 1 Service string advice Optional separator declaration UNB M 1 Interchange header To identify an interchange UNH M 1 Message header To head, identify and specify a message BGM M 1 Beginning of message Document type, order number DTM M 35 Date/time/period Order response date DTM C 35 Date/time/period Delivery date/time, latest, earliest SG1 C 9999 RFF RFF M 1 Reference Order number supplier SG3 C 99 NAD NAD M 1 Name and address ILN buyer, ILN supplier, ILN manufacturer, ILN delivery party, ILN invoicee SG8 C 5 CUX CUX M 1 Currencies Order currency SG26 C 2000 LIN-PIA-IMD-QTY-SG30 00 LIN M 1 Line item Line item number, GTIN PIA C 25 Additional product id Buyer's / Supplier's article number IMD C 99 Item description Article description QTY C 99 Quantity Order quantity, Free goods quantity SG30 C 25 PRI PRI M 1 Price details Purchase price UNS M 1 Section control Detail/summary section separation UNT M 1 Message trailer End of message UNZ M 1 Interchange trailer End of interchange SA2 Exchange GmbH 5 Media Saturn ORDRSP D.01B
0000 1 UNA C 1 0 Service string advice UNA UNA1 Component data element M an1 M an1 separator UNA2 Data element separator M an1 M an1 UNA3 Decimal notation M an1 M an1 UNA4 Release indicator M an1 M an1 UNA5 Reserved for future use M an1 M an1 UNA6 Segment terminator M an1 M an1 UNA:+.?' Segment status: Conditional 2010 SA2 Exchange GmbH 6 Media Saturn ORDRSP D.01B
0000 2 UNB M 1 0 Interchange header UNB S001 Syntax identifier M M 0001 Syntax identifier M a4 M a4 UNOC = UN/ECE level C 0002 Syntax version number M n1 M n1 Version 3 S002 Interchange sender M M 0004 Sender identification M an..35 M an..35 GLN Sender 0007 Partner identification code C an..4 C an..4 14 = EAN International qualifier S003 Interchange recipient M M 0010 Recipient identification M an..35 M an..35 GLN Recipient 0007 Partner identification code C an..4 C an..4 14 = EAN International qualifier S004 Date/time of preparation M M 0017 Date of preparation M n6 M n6 Creation date of the interchange, format: YYMMDD 0019 Time of preparation M n4 M n4 Creation time, format: HH:MM 0020 Interchange control M an..14 M an..14 Unique identification of the transfer file reference S005 Recipient's reference, C N password 0022 Recipient's reference/ M an..14 N not in use password 0026 Application reference C an..14 M an..14 Application reference ORDRSP 0029 Processing priority code C a1 N not in use 0031 Acknowledgement request C n1 N not in use 0032 Communications C an..35 M an..35 EANCOM agreement ID 0035 Test indicator C n1 C n1 1 = Test, empty = Production UNB+UNOC:3+1111111111111:14+2222222222222:14+100520:1200+9999++ORDRSP+++EANCOM+1' 2010 SA2 Exchange GmbH 7 Media Saturn ORDRSP D.01B
0010 3 UNH M 1 0 Message header UNH 0062 Message reference number M an..14 M an..14 S009 Message identifier M M 0065 Message type M an..6 M an..6 ORDRSP = Purchase order response message 0052 Message version number M an..3 M an..3 D = Draft 0054 Message release number M an..3 M an..3 01B = Release 2001 B 0051 Controlling agency M an..2 M an..2 UN = UN/CEFACT 0057 Association assigned code C an..6 C an..6 EAN010 = EAN version control number (EAN Code) UNH+123456+ORDRSP:D:01B:UN:EAN010' 2010 SA2 Exchange GmbH 8 Media Saturn ORDRSP D.01B
0020 4 BGM M 1 0 Beginning of message BGM C002 Document/message name C C 1001 Document name code C an..3 C an..3 231 = Purchase order response C106 Document/message C C identification 1004 Document identifier C an..35 C an..35 Order response number 1225 Message function code C an..3 C an..3 4 = Change 4343 Response type code C an..3 C an..3 NA = No acknowledgment needed BGM+231+128576+4+NA' 2010 SA2 Exchange GmbH 9 Media Saturn ORDRSP D.01B
0030 5 DTM M 35 1 Date/time/period DTM C507 Date/time/period M M 2005 Date or time or period M an..3 M an..3 137 = Document/message date/time function code qualifier 2380 Date or time or period value C an..35 C an..35 Order response date 2379 Date or time or period C an..3 C an..3 102 = CCYYMMDD format code DTM+137:20101218:102' 2010 SA2 Exchange GmbH 10 Media Saturn ORDRSP D.01B
0030 6 DTM C 35 1 Date/time/period DTM C507 Date/time/period M M 2005 Date or time or period function code qualifier M an..3 M an..3 64 = Delivery date/time, earliest 63 = Delivery date/time, latest 2380 Date or time or period value C an..35 C an..35 2379 Date or time or period C an..3 C an..3 102 = CCYYMMDD format code DTM+63:20101222:102' DTM+64:20101221:102' Segment status: Conditional If DTM with qualifier 64 is sent, a DTM with qualifier 63 will be sent, too. If DTM with qualifier 64 isn t sent, a DTM with qualifier 63 won t be sent either. 2010 SA2 Exchange GmbH 11 Media Saturn ORDRSP D.01B
0090 SG1 C 9999 1 RFF 0100 7 RFF M 1 1 Reference RFF C506 Reference M M 1153 Reference code qualifier M an..3 M an..3 VN = Order number (supplier) 1154 Reference identifier C an..70 C an..70 RFF+VN:1234567' 2010 SA2 Exchange GmbH 12 Media Saturn ORDRSP D.01B
0120 SG2 C 99 1 NAD 0130 8 NAD M 1 1 Name and address NAD 3035 Party function code qualifier M an..3 M an..3 SU = Supplier BY = Buyer MF = Manufacturer (Conditional) DP = Delivery party IV = Invoicee C082 Party identification details C C 3039 Party identifier M an..35 M an..35 GLN 1131 Code list identification code C an..17 N not in use 3055 Code list responsible agency code C an..3 C an..3 9 = EAN (International Article Numbering Association) NAD+BY+2222222222222::9' 2010 SA2 Exchange GmbH 13 Media Saturn ORDRSP D.01B
0290 SG7 C 5 1 CUX 0300 9 CUX M 1 1 Currencies CUX C504 Currency details C C 6347 Currency usage code M an..3 M an..3 2 = Reference currency qualifier 6345 Currency identification code C an..3 C an..3 EUR = European Euro (EAN Code) 6343 Currency type code C an..3 C an..3 9 = Order currency qualifier CUX+2:EUR:9' Only one currency per order response will be used. 2010 SA2 Exchange GmbH 14 Media Saturn ORDRSP D.01B
1030 SG28 C 200000 1 LIN-PIA-IMD-QTY-SG32 1040 12 LIN M 1 1 Line item LIN 1082 Line item identifier C an..6 C an..6 1229 Action request/notification C an..3 N not in use description code C212 Item number identification C C 7140 Item identifier C an..35 C an..35 GTIN (Global Trade Item Number) 7143 Item type identification code C an..3 C an..3 SRV = EAN.UCC Global Trade Item Number LIN+1++666666666666:SRV' 2010 SA2 Exchange GmbH 15 Media Saturn ORDRSP D.01B
1030 SG28 C 200000 1 LIN-PIA-IMD-QTY-SG32 1050 13 PIA C 25 2 Additional product id PIA 4347 Product identifier code M an..3 M an..3 1 = Additional identification qualifier C212 Item number identification M M 7140 Item identifier C an..35 M an..35 Buyer's article number 7143 Item type identification code C an..3 C an..3 IN = Buyer's item number C212 Item number identification C C 7140 Item identifier C an..35 C an..35 Supplier's article number 7143 Item type identification code C an..3 C an..3 SA = Supplier's article number PIA+1+6515:IN+423202:SA' Segment status: Conditional 2010 SA2 Exchange GmbH 16 Media Saturn ORDRSP D.01B
1030 SG28 C 200000 1 LIN-PIA-IMD-QTY-SG32 1060 14 IMD C 99 2 Item description IMD 7077 Description format code C an..3 C an..3 A = Free-form long description C272 Item characteristic C N 7081 Item characteristic code C an..3 N not in use C273 Item description C C 7009 Item description code C an..17 N not in use 1131 Code list identification code C an..17 N not in use 3055 Code list responsible C an..3 N not in use agency code 7008 Item description C an..256 C an..256 Article description IMD+A++:::Article Description' 2010 SA2 Exchange GmbH 17 Media Saturn ORDRSP D.01B
1030 SG28 C 200000 1 LIN-PIA-IMD-QTY-SG32 1080 15 QTY C 99 2 Quantity QTY C186 Quantity details M M 6063 Quantity type code qualifier M an..3 M an..3 21 = Ordered quantity 192 = Free goods quantity (Conditional) 6060 Quantity M an..35 M an..35 Quantity QTY+21:100' 2010 SA2 Exchange GmbH 18 Media Saturn ORDRSP D.01B
1030 SG28 C 200000 1 LIN-PIA-IMD-QTY-SG32 1320 SG32 C 25 2 PRI 1330 16 PRI M 1 2 Price details PRI C509 Price information C C 5125 Price code qualifier M an..3 M an..3 AAA = Calculation net AAB = Calculation gross 5118 Price amount C n..15 C n..15 Price PRI+AAA:14.58'' PRI+AAB:15.78'' 2010 SA2 Exchange GmbH 19 Media Saturn ORDRSP D.01B
2330 17 UNS M 1 0 Section control UNS 0081 Section identification M a1 M a1 S = Detail/summary section separation UNS+S' 2010 SA2 Exchange GmbH 20 Media Saturn ORDRSP D.01B
2400 18 UNT M 1 0 Message trailer UNT 0074 Number of segments in the M n..6 M n..6 Number of segments in a message message 0062 Message reference number M an..14 M an..14 Identical with DE 0062 in UNH UNT+14+123456' 2010 SA2 Exchange GmbH 21 Media Saturn ORDRSP D.01B
0000 19 UNZ M 1 0 Interchange trailer UNZ 0036 Interchange control count M n..6 M n..6 Number of messages in the interchange 0020 Interchange control M an..14 M an..14 Identical with DE 0020 in UNB reference UNZ+1+9999' 2010 SA2 Exchange GmbH 22 Media Saturn ORDRSP D.01B
Example 4 Example The following example shows a simple ORDRSP message. For a better reading each segment is shown in a new line. Please note that real transmitted EDIFACT messages must not contain line breaks. UNA:+.?' UNB+UNOC:3+1111111111111:14+2222222222222:14+100520: 1200+9999++ORDRSP+++EANCOM+1' UNH+123456+ORDRSP:D:01B:UN:EAN010' BGM+231+128576+4+NA' DTM+137:20101218:102' DTM+64:20101221:102' DTM+63:20101222:102' RFF+VN:1234567' NAD+BY+2222222222222::9' NAD+SU+3333333333333::9' NAD+DP+4444444444444::9' NAD+IV+5555555555555::9' CUX+2:EUR:9' LIN+1++666666666666:SRV' PIA+1+6515:IN+423202:SA' IMD+A++:::Article Description' QTY+21:100' PRI+AAA:14.58' PRI+AAB:15.78' UNS+S' UNT+17+123456' UNZ+1+9999' Optional separator declaration Interchange identifier Message identifier Order response number Order response date Delivery date/time, earliest Delivery date, latest Order number supplier ILN buyer ILN supplier ILN delivery party ILN invoicee Order currency Line item number, GTIN Buyer's / Supplier's article number Article description Order quantity Purchase price, net Purchase price, gross Detail/summary section separation End of message End of interchange 2010 SA2 Exchange GmbH 23 Media Saturn ORDRSP D.01B