You've to check the output determination for EDI message type. In case the output not determined automatically then you've to check the corresponding condition record in the transaction MN04 and the output type maintained under the message control in the transaction WE20.
For more details, please check the link below.
Sending a Purchase Order via EDI (MM-PUR-PO) - ALE/EDI Business Processes