沃尔沃Volvo EDI DELFOR 自定义XML 方案

Published On: 2019年12月18日Categories: 成功案例, 汽车行业EDIViews: 2

© All rights reserved. • 西安知行软件有限公司 • 陕ICP备09022277号

上一篇解释了沃尔沃Volvo与供应商 DELFOR(交货计划)的业务需求和实现场景,本文将从以具体的解决方案来解释EDI 的实现。

采购商接收由沃尔沃Volvo发送给供应商的DELFOR 报文,在沃尔沃Volvo EDI解决方案中提到,接收方向的工作流如下: 下面以自定义XML解决方案为例,演示DELFOR的解析步骤。

报文转换

将从沃尔沃Volvo收到的EDIFACT标准的DELFOR 转换为自定XML,主要分为以下步骤:

EDIFACT标准的DELFOR报文

Delivery schedule – DELFOR
UNH+1144295+DELFOR:D:96A:UN:A09040' 
-Message header

BGM+241+201503010118' 
-241 = Delivery schedule
-交货计划编号:201503010118

DTM+137:20150301:102' 
-137 = Document/message date/time
-交货计划日期:20150301

DTM+157:20150301:102' 
-157 = Validity start date
-有效起始日期:20150301

NAD+BY+1003::91' 
-BY = Buyer assigned by seller
-采购方编号:1003

NAD+SE+ABC1D::92' 
-SE = Seller assigned by buyer
-销售方编号:ABC1D

UNS+D' 
-Header/detailed section separation

NAD+CN+Consignee code::92++VOLVO CARS' 
-CN = Consignee assigned by buyer and Name
-收货方编号:Consignee code

LIN++3+1234567:IN' 
-3 = Changed. 
-IN Buyer’s item/article number
-采购方物料编号:1234567

PIA+1+P04:DR 
-1 = Additional identification 
-DR = Drawing revisionnumber
-工程变更图号:P04

LOC+11+VTV' 
-11 = Place/port of discharge
-仓库号:VTV

LOC+159+VTV' 
-159 = Additional internal destination
-内部卸货点:VTV

DTM+257:20150301:102' 
-257 = Calculation date
-累计截止日期:20150301

DTM+51:20150101:102' 
-51 = Cumulative quantity start date
-累计起始日期:20150101

RFF+ON:123412345445' 
-ON = Order number
-采购订单编号:123412345445

RFF+AIF:201502220119' 
-AIF = Previous delivery instruction number
-上一次交货编号:201502220119

QTY+70:210' 
-70 = Cumulative quantity received
-累计接收数量:210

QTY+12:30' 
-12 = Despatch quantity
-上一次交货数量:30

QTY+48:30' 
-48 = Received quantity
-上一次接收数量:30

RFF+AAK:110197' 
-AAK = Despatch advice number
-发货通知编号:201502220119

DTM+171:20150220:102' 
-171 = Reference date/time
-发货通知日期:20150220

QTY+83:60' 
-83 = Backorder/ in Transit quantity
-欠货数量:60

QTY+113:30' 
-113 = Quantity to be delivered
-需求数量:30

SCC+4' 
-4 = Planning/forecast 预测

DTM+2:201503060000:203' 
-2 = Delivery date/time, requested
-需求日期:201503060000

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503120000:203' 
-2 = Delivery date/time, requested

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503150000:203' 
-2 = Delivery date/time, requested

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503270000:203' 
-2 = Delivery date/time, requested

---
UNS+S' 
-Detail/summary section separation

UNT+106+1144295' 
-Message Trailer
Short term schedule – DELFOR
UNH+1144295+DELFOR:D:96A:UN:A09040' 
-Message header

BGM+241+201503010118' 
-241 = Delivery schedule
-交货计划编号:201503010118

DTM+137:20150301:102' 
-137 = Document/message date/time
-交货计划日期:20150301

DTM+157:20150301:102' 
-157 = Validity start date
-有效起始日期:20150301

NAD+BY+1003::91' 
-BY = Buyer assigned by seller
-采购方编号:1003

NAD+SE+ABC1D::92' 
-SE = Seller assigned by buyer
-销售方编号:ABC1D

UNS+D' 
-Header/detailed section separation

NAD+CN+Consignee code::92++VOLVO CARS' 
-CN = Consignee assigned by buyer and Name
-收货方编号:Consignee code

LIN++3+1234567:IN' 
-3 = Changed. 
-IN Buyer’s item/article number
-采购方物料编号:1234567

PIA+1+P04:DR 
-1 = Additional identification 
-DR = Drawing revisionnumber
-工程变更图号:P04

LOC+11+VTV' 
-11 = Place/port of discharge
-仓库号:VTV

LOC+159+VTV' 
-159 = Additional internal destination
-内部卸货点:VTV

DTM+257:20150301:102' 
-257 = Calculation date
-累计截止日期:20150301

DTM+51:20150101:102' 
-51 = Cumulative quantity start date
-累计起始日期:20150101

RFF+ON:123412345445' 
-ON = Order number
-采购订单编号:123412345445

RFF+AIF:201502220119' 
-AIF = Previous delivery instruction number
-上一次交货编号:201502220119

QTY+70:210' 
-70 = Cumulative quantity received
-累计接收数量:210

QTY+12:30' 
-12 = Despatch quantity
-上一次交货数量:30

QTY+48:30' 
-48 = Received quantity
-上一次接收数量:30

RFF+AAK:110197' 
-AAK = Despatch advice number
-发货通知编号:201502220119

DTM+171:20150220:102' 
-171 = Reference date/time
-发货通知日期:20150220

QTY+83:60' 
-83 = Backorder/ in Transit quantity
-欠货数量:60

QTY+113:30' 
-113 = Quantity to be delivered
-需求数量:30

SCC+4' 
-4 = Planning/forecast 预测

DTM+2:201503060000:203' 
-2 = Delivery date/time, requested
-需求日期:201503060000

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503120000:203' 
-2 = Delivery date/time, requested

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503150000:203' 
-2 = Delivery date/time, requested

QTY+113:30' 
-113 = Quantity to be delivered

SCC+4' 
-4 = Planning/forecast

DTM+2:201503270000:203' 
-2 = Delivery date/time, requested
---
UNS+S' 
-Detail/summary section separation

UNT+106+1144295' 
-Message Trailer

由DELFOR报文转化得到的EDI系统标准XML 以Delivery Schedule为例:


  

      UNOA
      1
    
    
      094200005560743089
      30
      BP2TU
    
    
      0177X11Y000000
      30
      NBLQIT
    
    
      160404
      0620
    
    4943835
  
  
    




<_0062>1144295
        
          <_0065>DELFOR
          <_0052>D
          <_0054>96A
          <_0051>UN
          <_0057>A09040
        
      
      
        
          <_1001>241
        
        <_1004>201503010118
      
      
        
          <_2005>137
          <_2380>20150301
          <_2379>102
        
      
      
        
          <_2005>157
          <_2380>20150301
          <_2379>102
        
      
      
        
          <_3035>BY
          
            <_3039>1003
            <_1131>
            <_3055>91
          
        
      
      
        
          <_3035>SE
          
            <_3039>ABC1D
            <_1131>
            <_3055>92
          
        
      
      
        <_0081>D
      
      
        
          <_3035>CN
          
            <_3039>Consignee code
            <_1131>
            <_3055>92
          
          
          
          
            <_3036>VOLVO CARS
          
        
        
          
            <_1082/>
            <_1229>3
            
              <_7140>1234567
              <_7143>IN
            
          
          
            <_4347>1
            
              <_7140>P04
              <_7143>DR
            
          
          
            <_3227>11
            
              <_3225>VTV
            
          
          
            <_3227>159
            
              <_3225>VTV
            
          
          
            
              <_2005>257
              <_2380>20150301
              <_2379>102
            
          
          
            
              <_2005>51
              <_2380>20150101
              <_2379>102
            
          
          
            
              
                <_1153>ON
                <_1154>123412345445
              
            
          
          
            
              
                <_1153>AIF
                <_1154>201502220119
              
            
          
          
            
              
                <_6063>70
                <_6060>210
              
            
          
          
            
              
                <_6063>12
                <_6060>30
              
            
          
          
            
              
                <_6063>48
                <_6060>30
              
            
            
              
                
                  <_1153>AAK
                  <_1154>110197
                
              
              
                
                  <_2005>171
                  <_2380>20150220
                  <_2379>102
                
              
            
          
          
            
              
                <_6063>83
                <_6060>60
              
            
          
          
            
              
                <_6063>113
                <_6060>30
              
            
            
              <_4017>4
            
            
              
                <_2005>2
                <_2380>201503060000
                <_2379>203
              
            
          
          
            
              
                <_6063>113
                <_6060>30
              
            
            
              <_4017>4
            
            
              
                <_2005>2
                <_2380>201503120000
                <_2379>203
              
            
          
          
            
              
                <_6063>113
                <_6060>30
              
            
            
              <_4017>4
            
            
              
                <_2005>2
                <_2380>201503150000
                <_2379>203
              
            
          
          
            
              
                <_6063>113
                <_6060>30
              
            
            
              <_4017>4
            
            
              
                <_2005>2
                <_2380>201503270000
                <_2379>203
              
            
          
        
      
      
        <_0081>S
      
    
  


由标准XML格式转换得到的自定义XML

以Delivery Schedule为例:


  
    1003
    2015-03-01 00:00:00
    
    0
    DELFOR
    201503010118
    Consignee code
    2015-03-01 00:00:00
    2
    ABC1D
    
      1234567
      2015-03-01 00:00:00
      210
      2015-01-01 00:00:00
      P04
      VTV
      123412345445
      VTV
      
        c8b5d5871cf045119c822750f9ee999d
        2019-12-17 18:29:52
        deliveryNote
        30
        despatch
      
      
        7a866e82318949b690208fbc897158a1
        2019-12-17 18:29:52
        deliveryNote
        30
        despatch
      
      
        9c035c0e735e47708fb7bb262962e34a
        2019-12-17 18:29:52
        deliveryNote
        30
        despatch
      
      
        15e487999b4f4b3ebde64b9133f31ba7
        2015-02-20 00:00:00
        deliveryNote
        30
        received
        110197
      
      
        d8c4786c0c084a428f372eea37787d8b
        2015-02-13 00:00:00
        deliveryNote
        30
        received
        108375
      
      
        f665d129eb654c9db6319d5328e4f4a9
        2015-02-12 00:00:00
        deliveryNote
        30
        received
        108089
      
      
        885be2f226894df39f2f5f4ec71dc4ca
        2015-03-06 00:00:00
        delivery
        4
        30
        delivery
      
      
        0099dab8d66843deb93cecfa846dc0e9
        2015-03-12 00:00:00
        delivery
        4
        30
        delivery
      
      
        60c7eb35f529432b956c67cf8611c449
        2015-03-15 00:00:00
        delivery
        4
        30
        delivery
        0
      
      
        0a2d252112814a61993ccaf34d11fa1d
        2015-03-27 00:00:00
        delivery
        4
        30
        delivery
      
    
  

更多EDI系统标准XML 到客户自定义XML 的转换步骤,可查看EDI & XML 格式转换

视频演示

更多沃尔沃Volvo文章

了解更多EDI信息,请您电话 150-0298-3180 / 177-8250-8152 或邮件 edi@kasoftware.cn 联系我们。点击下方蓝色按钮,即可免费试用EDI软件。

注:文案部分图片及内容来源于网络,版权归原创作者所有,如有侵犯到您的权益,请您联系我们进行删除,给您带来困扰,我们深感抱歉。

为什么选择

知行之桥®?​

根据企业规模与集成需求,提供从本地部署到云端托管的灵活选择

可视化 EDI 工作流

基于拖拽式图形化设计器,零代码构建完整 EDI 业务流程,满足复杂供应链自动化场景。

Odette & Drummond 认证

通过 Odette(OFTP) 与 Drummond(AS2) 权威认证,确保与主机厂安全合规、高可靠的数据交换。

多系统集成能力

提供数据库、REST/SOAP、FTP/SFTP 等标准化接口,实现 ERP、WMS、MES 等系统的双向数据自动同步。

数据映射格式转换

内置可视化 Mapping 编辑器,零代码实现 EDI 报文与企业内部数据格式(XML/JSON…)的映射转换及复杂规则处理。

实时监控预警机制

全流程可视化监控报文状态,支持邮件、钉钉、企业微信自动预警,保障 JIT 交付的稳定性与及时性。

多工厂支持

支持集团级多组织、多工厂架构,实现数据隔离与权限管控,统一平台集中运维,满足大型制造企业多地点协同需求。