Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Forming EDI Documents to Send Outbound When Using Trading Networks | Creating the Service to Form the EDI Document | Creating the Service | Obtaining Control Numbers for Outbound Processing (ANSI X12 and UN/EDIFACT)
 
Obtaining Control Numbers for Outbound Processing (ANSI X12 and UN/EDIFACT)
Module for EDI maintains information about control numbers in the EDIControlNumber table, which is a Module for EDI-specific table in the Trading Networks database.
For ANSI X12 and UN/EDIFACT documents, when you create services to form outbound EDI documents, you can invoke the following services that are provided with Module for EDI to add group and interchange headers to the outbound EDI document:
ANSI X12
UN/EDIFACT
wm.b2b.edi.util:addGroupEnvelope
wm.b2b.edi.util:addGroupEnvelopeEDIFACT
wm.b2b.edi.util:addICEnvelope
wm.b2b.edi.util:addICEnvelopeEDIFACT
When invoking one of the above services to add a header, use the ctlFromTable or grpCtlNumber input parameter to indicate whether you want to use the control numbers from the EDIControlNumber table for group and interchange headers. If the EDIControlNumber table does not have an entry for the group or interchange sender/receiver pair, a row is added to the table for the sender/receiver pair and the control number is set to 1.
You can set the initial values you want to use for sender/receiver pairs using the Module for EDI home page. For instructions, see Configuring Control Number Settings.