An EDI document structure consists of three essential parts: the EDI Envelope, Segments, and Data Elements. The EDI Envelope acts like a postal envelope, containing sender and receiver information on the outside while holding transaction data inside. https://ihateedi.com/what-comprises-an-edi-document-or-a-transaction/