Please enable JavaScript to view this site.

Altova MapForce 2021 Enterprise Edition

This example shows you how to convert data from an EDI file to XML format with the least amount of effort. The example specifically deals with quick conversion and does not involve drawing mapping connections manually. For a regular EDI to XML conversion example, see Example: Mapping UN/EDIFACT to XML.

 

1.Create a new mapping and select BUILT-IN as transformation language. See also Selecting a Transformation Language.

2.On the Insert menu, click EDI.

3.Select the EDIFACT collection and the ORDERS message type, and click OK.

mf_edifact_to_xml_01

4.When prompted to supply a sample EDI file, click Browse and open the ORDERS.EDI file from the <Documents>\Altova\MapForce2021\MapForceExamples\ directory. After you open the file, the Component Settings dialog box opens. This enables you to review the settings of the EDI component before adding it to the mapping. You can change these settings at any time later if required. Notice that the ORDERS.EDI file appears as Input EDI file.

mf_edifact_to_xml_02

5.Click OK. The EDI component is now displayed in the mapping area.

mf_edifact_to_xml_03

6.Right-click the title bar of the ORDERS component and select Create Mapping to XML from the context menu. This creates a target XML component and makes all connections to it automatically through a Copy-All connection.

mf_create_mapping_to_xml_01

7.Click the Output tab to preview the generated XML.

mf_create_mapping_to_xml_02

© 2020 Altova GmbH