When a purchase order is confirmed, it is added to the Purchase order confirmation journal. If an applicable document flow with direction 'Outbound' and type 'Order' exists, also a record is added to the Outbound message queue. When this record is processed, the 'Purchase - Order to XML' message is run. As a result, an EDI order message file is created and sent to your vendor.