| Docs Help
  AppSource  
Docs  /  Solution  /  EDI Interface  /  Tasks

 Working with the App


2025/12/03 • 4 min. to read
The process starts with the export of a purchase order.

Export ORDERS

If the "EDI Vendor" flag is enabled on the vendor, an EDI document is created when the purchase order is released. The created EDI document contains the following purchase order information: The document is created with the document type "ORDERS" and the status "Created". Additionally, the line information from the purchase order is added. If the purchase order is reopened, the system checks whether an EDI document with the status "Created" exists. If so, it is deleted and recreated upon release. This ensures the EDI document is always up to date. In the purchase order, two page actions exist to either create a new EDI document or open the existing one. These actions are only visible after releasing: If an EDI document already exists and a new one is to be created, a message with a notice is displayed. After creating an EDI document, the next step is to run a job queue. The codeunit "EDIExportOrderNVX" must be configured and will export all created EDI documents in the process. This export uses the EDI interface "EDI Export", providing a web service URL as an endpoint. An XML file is then sent to the configured URL. After exporting an EDI document, the status is set to "Success". If a problem occurs, the status is set to "Error". Further details can be found in the transactions on the EDI card: The exported XML file can be downloaded from the transactions and the EDI card:

Import ORDERSP

A separate EDI document is created for each export and import. After a purchase order has been released and the created EDI document was successfully sent, the next step is importing an "ORDERSP". This document type is a purchase order confirmation. A specific codeunit is used for the import of EDI documents, which must be set up in the job queues: This codeunit checks all documents available at the endpoint URL defined in the "EDI Import" interface. When an XML file is found in an import directory, it is processed and converted into an EDI document. Further information is then available on the EDI card for the "ORDERSP": This allows deviations from the sent purchase order to be identified. If a different quantity or price is confirmed, the flag "EDI Confirmation Deviation Present" is set. Once all data has been reviewed or no deviation exists, there are two ways to transfer the data to the purchase order: - The data is manually transferred into the purchase order: - The data is transferred automatically if enabled in the EDI interface setup: o A tolerance can also be configured here. If the imported data is within this tolerance, it is automatically accepted or offered for acceptance. The data (quantity, price, date) is transferred to the associated EDI purchase order. Once the data has been transferred, the fields "EDI Confirmation Checked By" and "EDI Confirmation Checked On" are filled with the current user and date.

Import DESADV

Another document type is "DESADV", representing the delivery note. The data in this file confirms the actual delivered or used information. This allows Business Central to receive, for example, the vendor delivery number or tracking link. For this import, an EDI document with the document type "DESADV" is created: For imported documents, the direction is set to "Inbound". When importing the DESADV, the sales order is filtered via the purchase order. The following data from the XML file is transferred into the sales order: - Shipping Agent Code - Package Tracking Number Additionally, the field "EDI Delivered Quantity" from the XML file is transferred to the EDI document. Now, the EDI interface setup is checked. If the field "Automatically Take Over Data" is enabled, the field "Quantity Outstanding" is filled with the delivered quantity from the XML file. Furthermore, the vendor delivery number is transferred to the purchase order header. As the last step in the DESADV process, the EDI interface setup is checked again. If the field "Auto Post Shipment" is enabled: The purchase order is posted automatically, and a sales shipment is created.

Import INVOIC

This import is not yet fully implemented.


Submit feedback for
DE|EN Imprint