A transaction set is the collection of data that is exchanged in order to convey meaning between the parties engaged in electronic data interchange. A transaction set is composed of a specific group of segments that represent a common business document (for example, a purchase order or an invoice). Each transaction set consists of the transaction set header (ST) as the first segment and contains at least one data segment before the transaction set trailer (SE).