sqd example notes
Points to be aware of when using the sqd example.
- The use of multiple series functions in the same mapping rule.
- Mapping element, composite and terminator syntax items used in X12, rather than using defaults.
This example shows how to re-organize input X12 EDI data consisting of multiple purchase orders ( #850 transaction sets) to create multiple output X12 invoices ( #810 transaction sets).
The input data is organized into #850 transaction sets. Within each #850 is a series of line items ( LoopPO1). Nested within each line item is a series of SDQ segments. Each SDQ segment can contain up to 10 store identification codes. So, line item #1 could be associated with hundreds of stores, line item #2 could be associated with some of the same stores, and some different stores. The output must be re-organized to send one invoice for each store identified in the input data. Each invoice must have only the line items associated with the store specified in the invoice.