Processing Method | Advantages | Disadvantages |
Processing the entire document at one time | Easier to implement because most of the processing and set up you need to do is provided with Module for EDI. You can use built-in services to perform envelope validation and compliance checks. For more information about envelope validation and compliance checks, see
Performing Envelope Validation and
Compliance Checks. | Requires more memory because an IData object is created for the entire document. |
Processing the document segment by segment | Requires less memory because as the segments are being processed, an IData object is created for only the segment or group of segments that represent repeating content (for example, line items). Then, when working on subsequent segments, the memory is reused. | If you want to perform envelope validation and compliance checks, you must add your own logic to do so. You likely will need to modify the flat file schema for the EDI document you are processing. You might need to create additional flat file schemas for segments within the EDI document you are processing. |