Post on 30-Jan-2021
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 1 of 12 2010-02-23
EDI Mapping Inventory Report Message Source: EANCOM® INVRPT
Target: InvAdjust (xml) Document Version 1.0
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 2 of 12 2010-02-23
History of Change
Version Date Subject Content / Trigger of Change
Responsible Person
1.0 2010-02-23 Initial version n. a. A. Kürzinger
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 3 of 12 2010-02-23
Table of content Preamble......................................................................................................................................................... 4 Overview ......................................................................................................................................................... 4 Refering Documents ....................................................................................................................................... 4 Mapping of Attributes ...................................................................................................................................... 5
Outlet Id ....................................................................................................................................................... 5 Subsidiary.................................................................................................................................................... 5 Product Id .................................................................................................................................................... 6 Quantity ....................................................................................................................................................... 6 Inventory Adjustment Reason Code ........................................................................................................... 7 Create Date ................................................................................................................................................. 7 Create User ................................................................................................................................................. 8
Sample ............................................................................................................................................................ 9 Source Message ......................................................................................................................................... 9 Target Message .......................................................................................................................................... 9
Appendix ......................................................................................................................................................... 9 Status indicators used in this mapping document: ..................................................................................... 9 invAdjust XSD ........................................................................................................................................... 10
Contact .......................................................................................................................................................... 12
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 4 of 12 2010-02-23
Preamble This document describes the mapping from EANCOM® INVRPT EDI message (source) to in-house xml message “InvAdjust” (target) in context of Media-Saturn “Multichannel-Project”.
Overview
Transfer folder: \\Svr-edi\PVN1\INVRPT\[country]\ (Link: \\Svr-edi\PVN1\INVRPT) File name: IA___.xml
Refering Documents Source Message Definition: Details of source message EANCOM® INVRPT are defined in Media-Saturn’s EDI Implementation Guide. There exist 2 repositories: STARTEAM: W:\EDI\Documentation\EDI_Guideline\MS_EDI_Guide_Invrpt.doc WIKI: http://wiki.media-saturn.com/Doku/attach/EDIImplementationGuidelines/MS_EDI_Guide_Invrpt.pdf Target Message Definition: The target message is an xml message. The repository of corresponding xml schema definition (XSD) is STARTEAM. W:\Mamba_Integration\TIBCO\BW_Library\MSCDM\MSCDMSchemas\Business\Retail\SupplyChain\InventoryAdjustment\2Complex\AllComplexTypes.xsd (See also item “invAdjust XSD” on page 10). Note:
Within EANCOM® INVRPT there exist 2 different document name codes (see data element “BGM-C002-1001” in EDI guideline):
35 = Inventory report (used to report on the actual inventory held at the time the report is produced)
78 = Inventory movement advice (used to identify movements to and from inventory during the validity period defined)
This mapping document refers just to INVRPT messages with document name code 78.
EANCOM® INVRPT
InvAdjust (xml) EDI System Conversion
„media_invrpt_d_01b_to_xml_stockadj.rte”
file://Svr-edi/PVN1/INVRPThttp://wiki.media-saturn.com/Doku/attach/EDIImplementationGuidelines/MS_EDI_Guide_Invrpt.pdf
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 5 of 12 2010-02-23
Mapping of Attributes
Outlet Id
Source Note Message INVRPT GY = Inventory
reporting party Group SG2
Segment NAD
Element Group -
Element 3039
Status/Format M an..35
Start Position -
End Position -
Target Message InvAdjust Mapping from GLN to
internal outletId Group -
Segment -
Element Group -
Element outletId
Status/Format -
Start Position -
End Position -
Subsidiary
Source Note Message INVRPT ZZZ = Mutually
defined reference number
Group SG1
Segment RFF
Element Group C506
Element 1154
Status/Format M an..70
Start Position -
End Position -
Target Message InvAdjust
Group -
Segment -
Element Group -
Element subsidiary
Status/Format -
Start Position -
End Position -
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 6 of 12 2010-02-23
Product Id
Source Note Message INVRPT IN = Buyer’s item
number Group SG9
Segment PIA
Element Group C212
Element 7140
Status/Format M an..35
Start Position -
End Position -
Target Message InvAdjust
Group InvAdjustDetail
Segment -
Element Group -
Element productId
Status/Format -
Start Position -
End Position -
Quantity
Source Note Message INVRPT 156 = Inventory
movement quantity; (must not be negative)
Group SG11
Segment QTY
Element Group C186
Element 6060
Status/Format M an..35
Start Position -
End Position -
Target Message InvAdjust If inventory movement
direction code (SG11-INV-4501) is “ 1” (=movement out of inventory) quantity and quantityReserved will get prefix “-“ at conversion.
Group InvAdjustDetail
Segment -
Element Group -
Element quantity + quantityReserved
Status/Format -
Start Position -
End Position -
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 7 of 12 2010-02-23
Inventory Adjustment Reason Code
Source Note Message INVRPT Mandatory in case of
inventory adjustment message
Group SG11
Segment INV
Element Group -
Element 4499
Status/Format D an..3
Start Position -
End Position -
Target Message InvAdjust
Group InvAdjustDetail
Segment -
Element Group -
Element invAdjustRsn
Status/Format -
Start Position -
End Position -
Create Date
Source Note Message INVRPT 366 = Inventory report
date Group -
Segment DTM
Element Group C507
Element 2380
Status/Format M an..35
Start Position -
End Position -
Target Message InvAdjust
Group InvAdjustDetail
Segment -
Element Group -
Element createDate
Status/Format -
Start Position -
End Position -
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 8 of 12 2010-02-23
Create User
Source Note Message -
Group -
Segment -
Element Group -
Element -
Status/Format -
Start Position -
End Position -
Target Message InvAdjust Constant value “edi2”
Group InvAdjustDetail
Segment -
Element Group -
Element createUser
Status/Format -
Start Position -
End Position -
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 9 of 12 2010-02-23
Sample
Source Message UNA:+.? ' UNB+UNOC:3+9099999122009:14+4335347000007:14+20100222:1521+146++STOCKADJ++++1' UNH+0+INVRPT:D:01B:UN:EAN005' BGM+35+1218949' DTM+137:20100222:102' DTM+366:20100222152104:204' RFF+ZZZ:AT' NAD+GY+9099999122009::9' NAD+CO+4335347000007::9' LIN+1' PIA+1+1078278:IN' INV+1++20' QTY+156:1:PCE' UNT+12+0' UNZ+0+146'
Target Message 1012 AT 1078278 20 -1 -1 edi2 2010-02-22T15:21:04.00
Appendix
Status indicators used in this mapping document:
REQUIRED R Indicates that the entity is required and must be sent. ADVISED A Indicates that the entity is advised or recommended. DEPENDENT D Indicates that the entity must be sent in certain conditions, as defined by the
relevant explanatory note. OPTIONAL O Indicates that the entity is optional and may be sent at the discretion of the user. NOT USED N Indicates that the entity is not used and should be omitted. MANDATORY M Indicates that the entity is mandatory and must be sent. CONDITIONAL C Indicates that the entity is conditional and must not be sent.
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 10 of 12 2010-02-23
invAdjust XSD
Structure that contains the details of the Inventory Adjustment Outlet Id of the store where the inventory adjustment was made. Subsidiary of the store. Complex Structure for references related to the Inventory Adjustment Unique identifier for the product.
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 11 of 12 2010-02-23
Contains the reason for inventory adjustment. Contains the quantity the inventory was adjusted by. Contains the quantity the reserced part of the inventory was adjusted by. Will only be filled for stock locations that are fully sellable. Could be positive or negative Stock Location where the product is taken from Indicator if the stock in this location is sellable Indicator if the stock in this location, if sellable, is allowed to be sold Stock Location where the product is taken from Indicator if the stock in this location is sellable Indicator if the stock in this location, if sellable, is allowed to be sold Contains the user id for the user making the inventory adjustment. Contains the timestamp on which the inventory adjustment occurred in the GMS. Reference Details containing the type and the reference ID. Each Reference Type is only allowed to be in the Message once. Iso Country Code of store?s country. Where in the organizational hierarchie is the store located
EDI Mapping – INVRPT => InvAdjust (xml) 1.0 Page 12 of 12 2010-02-23
Extension for Inventory Adjustment Dtl data. Indicates if the type of the Reference (Purchase Order, Transfer, In-House Transfer, Service Request) Number of the associated Process. Type is based on the value of reference type. Contains the store where the inventory adjustment occurred. Contains the reference number of the inventory adjustment. Extension for RefDetails data.
Contact Media-Saturn IT Services GmbH EDI Team Wankelstrasse 5 D-85046 Ingolstadt E-Mail: edi-team@media-saturn.com