Trading Networks 10.3 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Optional Inbound Processing When Using Trading Networks | Validating Inbound Control Numbers | Performing Control Number Validation
 
Performing Control Number Validation
When Module for EDI receives an EDI document, the module performs the following steps:
Step
Description
1
Module for EDI determines whether it is to validate the control number. To determine whether to validate control numbers in inbound EDI documents, the module uses the sender/receiver from the header and finds the settings you have defined for that sender/receiver pair. For information about how to allow validation, see Turning Inbound Control Number Validation On and Off.
If the module is to validate the control number, the module continues with the next step.
2
Using the sender/receiver, EDI standard/version, production mode, and type that are identified in the interchange or group header (or the transmission or batch header), the module locates the corresponding entry in the EDIControlNumber table.
3
Module for EDI determines whether the control number is valid (that is, in order) by comparing the control number from the header with the control number from the EDIControlNumber table entry. The module maintains the next expected control number in the EDIControlNumber table. The control number is either valid or invalid, as follows:
*Valid control number. The control number value from the header matches the next expected control number in the EDIControlNumber table entry.
If there is no EDIControlNumber entry for the sender/receiver, EDI standard/version, production mode, and type (for example, "Envelope" or group type) identified in the interchange or group header, the module:
1. Assumes the control number is valid.
2. Adds an entry to the EDIControlNumber entry for the sender/receiver, EDI standard/version, production mode, and type. In the EDIControlNumber entry, the module sets the control number maximum, minimum, increment, and window to their defaults and calculates the next expected control number and saves this number in the EDIControlNumber table entry. For more information, see Validating Inbound Control Numbers.
3. Sets the Trading Networks EDI Status custom attribute to Processed.
*Invalid control number. The control number value from the header does not match the next expected control number in the EDIControlNumber table entry. When the control number is invalid, Module for EDI first determines whether the control number is a duplicate or out-of-sequence, and then takes the action you defined based on this information.
For more information about invalid control numbers, see Invalid Control Numbers. For more information about the actions the module takes for invalid control numbers, see Actions Module for EDI Can Take for Invalid Control Numbers.