Working with the EDI to XML utility

StepsPrerequisites to using the EDI to XML Map utility

  1. Define your map just as you would define any other inbound EDI X12 map. Refer to Chapter 3, “Working with Maps” for instructions.

  2. Specify the X12 EDI standard or version and transaction to be mapped.

  3. Select the year to be used as the Century Minimum when 6-digit date fields are mapped to 8-digit date fields, specify whether 8-digit dates are used in X12 envelopes, and optionally enter a description of the map. The map direction must be IN.

StepsCreating an XML map

When you create an XML map, ECMap automatically creates a compete map based on the X12 transaction, including XML elements and attributes, the mapping, and the rules and flow.

  1. In ECMap’s main menu, select Utilities > Generate EDI to XML Map.

    The Generate EDI to XML Map window displays. The names of the current Project and Map appear in the Map group.

  2. In the Options group, click Run.

    The program converts your EDI map into an XML map. A text box appears in the Options group, which processes visible messages. The messages reflect the map generation activity taking place; for example, actions such as creating map transaction files, creating and mapping record fields, creating cross-reference files, creating XML map rules, creating flow, processing application files, processing rules, processing master element and condition tables, and processing reference files. when all activity is finished, the message in the text box gives the final status of the map generation process. The initial generation of the XML map will be successful.

  3. Click View Log, and the Generate Log window displays results similar to the following:

    7/7/2004 5:49:56 PM Log For Project: My Map:HIPAA_270_4010_50
    Map Generation Completed Successfully
    No Errors and No Warnings
    
  4. Click Cancel to return to the EDI to XML Map window.

StepsGenerating the map and troubleshooting the results

Under certain circumstances, such as when an EDI transaction contains HL segments, the map may require modifications if it was based on the native X12 transaction definition.

Modify the map just like any other data transformation map, and then use the Generate utility to generate a new .map file. Refer to “Modifying a map”.

  1. In ECMap’s main window, select Build > Generate Map or click the Generate Map icon.

    While the program generates the map, it creates a log file. This log file includes a list of all the warnings, not referenced messages, or errors found during map generation. For reference, the first line contains the date and time and the names of the project and map. At the end of the log, there is a summary of the problems encountered and a message indicating whether or not the map generated successfully.

  2. Click View Log, and the Generate Log window displays results similar to the following:

    7/7/2004 5:49:56 PM Log For Project: My Map:HIPAA_270_4010_50
    Map Generation Completed Successfully
    No Errors and No Warnings
    
  3. Click Cancel to return to the EDI to XML Map window.

StepsAssociating an XML map with the ALL trading partner

After generating the XML map, you must create a trade agreement associating the map with the ALL TradePartner. Unless you are going to build specific versions based on the Trade Partner, choose ALL TradePartner.

  1. In ECMap’s main window, select File > Address Book > Contacts (Trading Partner). The Trading Partners window displays.

  2. On the Trading Partners window, highlight the ALL trading partner.

  3. Right-click the ALL trading partner and choose Trade Agreement from the submenu. The Trade Agreement with Trade Partner:ALL displays.

  4. Select File > Add Map. The program automatically creates a trade agreement linking the current map with this trading partner. The map information displays on the window and highlighted.

  5. The map is highlighted. From the menu, select Edit > Properties. If you have not selected the standard for your map, the Standard Type for Map window displays.

  6. Select the appropriate standard for your map. The Trade Agreements window displays.

  7. The program automatically enters the information.

  8. Click OK on the Trade Agreements window.

  9. Close the Trade Agreements With Trade Partner:ALL and Trading Partner windows to return to the main ECMap window.