EDI DAFNE® The module integrates Business Central with DAFNE®, the EDI platform of the pharmaceutical industry. Two protocols are supported: CONDAFNE: purchase document exchange with vendors. Purchase orders are transmitted to DAFNE, and response documents (order confirmations and delivery notes) are received and processed automatically, up to the creation of the warehouse receipt. DAFNEFMD: connection to the medicine verification service (Falsified Medicines Directive), with verify, dispense, undo dispense and destroy operations on packs. Open Document Exchange Profiles and create a profile with Exchange Format and Exchange Transport set to Dafne. From the profile, open the transport setup: the Dafne Setup page linked to the profile opens. Field Description Profile Code Document exchange profile the setup belongs to (read-only). Protocol CONDAFNE or DAFNEFMD. The relevant fields are shown depending on the protocol. Web Endpoint Service address. The assist button (…) proposes the standard address of the selected protocol. Field Description Username User for the DAFNE service. Password Access password (masked). Company Name Company name at DAFNE. Company ID Company identifier on DAFNE, included in transmitted orders. Required to send orders. Archive Path Folder where all sent and received files are archived. Required. Search Orders by Outstanding Lines When enabled, if a received document does not refer to an existing order, the order is searched among the vendor's outstanding lines. When disabled, a document without a valid order is reported as an error. Field Description API Key Service access key. API Secret Secret associated with the key (masked). Channel Key Communication channel key. Warehouse Filter Filter of the warehouses handled by the service. Section to manually test the verification service operations on a single pack. Field Description Location Code Location for the operation. Product Code Scheme Product code scheme (e.g. GTIN). Product Code Product code. Serial Number Pack serial number. Batch ID Pack batch. Expiration Date Pack expiration date. Transaction ID Transaction identifier returned by the last operation (read-only). Action Description CONDAFNE › Manual Import Uploads an EDI file from your computer and processes it as if it had been received from DAFNE. DAFNEFMD › Verify Verifies the status of the pack entered in the test section. DAFNEFMD › Dispense Records the pack as dispensed. DAFNEFMD › Undo Dispense Reverts a previous dispense. DAFNEFMD › Destroy Records the pack as destroyed. DAFNEFMD › Get Result Retrieves the outcome of the last transaction and displays it (status and message). Where Field Description Location Card Dafne ID Location code on DAFNE; sent in orders as the delivery destination and used to recognize the location in received documents. Purchases Sources (header and lines per location) Dafne ID Vendor/source code on DAFNE. The value on the location line takes precedence over the header. The VAT Registration No. in Company Information and on the purchase order are also required, both with the country prefix (e.g. IT...). The Purchase Order page (General tab) and the Purchase Orders list show the Dafne Status field (read-only): Value Meaning (blank) Order not yet transmitted. Transmitted Order sent to DAFNE. Confirmed Vendor order confirmation received. Shipped Delivery note received; the warehouse receipt has been created. Open the purchase order (or select one or more in the list). Run the document exchange processing and choose Send order via Dafne (). The order must have an order date, purchases source, location code and VAT registration no., and the Dafne Status must be blank. Item lines with an AIC code are transmitted, and comment lines are sent as notes. The sent file is saved in the archive path and the status becomes Transmitted. Open the Purchase Orders list. Run the document exchange processing and choose Receive documents from Dafne (). All available documents are downloaded, archived and processed; at the end the number of confirmed orders and created warehouse receipts is shown. Alternatively, a single file can be loaded with Manual Import from the Dafne Setup. Files already received: if a file with the same name already exists in the archive, it is skipped with a warning. Order confirmation: the order status becomes Confirmed and the line quantities are adjusted to what the vendor confirmed. Delivery note: a warehouse receipt is created for the order location (which must require receipt), with the vendor as sender, the delivery note date and number, the receipt bin if applicable, the quantities to receive and the tracking data (lots/expiration dates) from the note. The order status becomes Shipped. Closing outstanding quantities: depending on the Close Outstanding Quantity setting of the purchases source (or its location line), the remaining quantities of the shipped lines, or of all order lines, are closed. Without this setting, lines are adjusted only when the shipped quantity exceeds the outstanding quantity. All operations and any errors (order, vendor, location or item not found) are recorded in the document exchange log.