Transform EDI to XML

Last modified by Erik Bakker on 2023/09/15 09:18

This exercise will provide you with practical knowledge on transforming EDI messages to XML.

Should you have any questions, please contact academy@emagiz.com.

1. Prerequisites

  • Completed previous exercises and microlearnings
  • Access to an eMagiz model

2. Exercise

Create an integration that will transform an EDI message into an XML message. This means you need to execute the following steps at a minimum:

  • Draw a line in Capture towards an (existing) system
  • Add Integration to Create
  • Open the entry flow to build the flow in such a way that you can transform EDI messages
  • Don't forget the UN/EDIFACT to XML transformation component

Below in the example message you can find the relevant information for the component.

UNB+UNOB:1+SENDER1:1+RECEIVER1:1+071101:1701+131++INVOIC++1++1'
UNH+ME000001+DESADV:D:01B:UN:EAN007'
BGM+351+DES587441+9'
DTM+137:20020401:102'
DTM+11:20020403:102'
DTM+358:20020403:102'
RFF+ON:12332'
DTM+171:20020325:102'
NAD+SU+5411234512309::9'
RFF+VA:6558774'
NAD+BY+5412345000013::9'
RFF+VA:7002474'
NAD+DP+5412345123453::9'
RFF+VA:800800'
NAD+SH+5412345000105::9'
CPS+1'
PAC+2++201::9'
CPS+2+1'
PAC+1++201::9'
MEA+PD+AAB+KGM:263.2'
MEA+PD+WD+MMT:800'
MEA+PD+LN+MMT:1200'
PCI+33E'
GIN+BJ+354107380000001051'
PAC+20++CT'
LIN+1++5410738000152:SRV'
QTY+12:20'
CPS+3+1'
PAC+1++201::9'
MEA+PD+AAB+KGM:305.1'
PCI+33E'
GIN+BJ+354107380000001068'
PAC+20++CT'
LIN+2++5410738000169:SRV'
QTY+12:5'
LIN+3++5410738000176:SRV'
QTY+12:3'
LIN+4++5410738000183:SRV'
QTY+12:12'
CNT+2:4'
UNT+40+ME000001'
UNZ+2+131'

3. Solution

In this short movie, you will find the solution for how to configure the flow in Create. Every step needed to get to the Create phase is assumed knowledge and, therefore, not covered in this video. Please take a moment to review this one and compare it to your solution.