Module for EDI 9.12 | Building Services with EDI Module | Part II WmEDIforTN Package | WmEDIforTN Batch Folder | Summary of Elements in this Folder | wm.b2b.editn.batch:getControlNumber
 
wm.b2b.editn.batch:getControlNumber
WmEDIforTN. Gets the current control number from the EDIControlNumber table, which is a module-specific table in the Trading Networks database that the module uses to manage control numbers.
Input Parameters
TNsenderID
String For ANSI X12 and UN/EDIFACT, the sender associated with the control number that you want to obtain, e.g., the sender's D-U-N-S number.
For TRADACOMS, the sender name specified in the transmission.
senderQualifier
String (optional) For ANSI X12 and UN/EDIFACT, the EDI ID qualifier for the sender, e.g., 01 for a D-U-N-S number.
For TRADACOMS, the sender code specified in the transmission.
TNreceiverID
String For ANSI X12 and UN/EDIFACT, the receiver associated with the control number that you want to obtain, e.g., the receiver's D-U-N-S number.
For TRADACOMS, the receiver name specified in the transmission.
receiverQualifier
String (optional) For ANSI X12 and UN/EDIFACT, the EDI ID qualifier for the receiver, e.g., 01 for a D-U-N-S number.
For TRADACOMS, the receiver code specified in the transmission.
standard
String The EDI standard associated with the control number that you want to obtain. Specify one of the following: X12, UNEDIFACT, VICS, UCS, EANCOM, ODETTE, or TRADACOMS.
type
String (optional) The control number type.
*For an interchange control number, specify ENVELOPE.
*For group control numbers, specify the group type. For example, for ANSI X12 4010 850, specify PO.
*For a TRADACOMS file control number, the type will be the File type, such as INVFIL or ORDHDR.
*For a TRADACOMS batch control number, the type will be the Batch type.
update
String (optional) Whether you want the service to update the control number in the database to the next control number to use.
Value
Meaning
true
Update the control number.
false
The control number in the database table will not be updated. This is the default.
prodMode
String (optional) The production mode associated with the control number. Specify one of the following: Production (default), Test, or Custom.
Note:
For TRADACOMS, the only valid value is Production.
version
String (optional) Version of the EDI standard for the control number, e.g., 4010.
For a TRADACOMS envelope, the version is always 1. For a TRADACOMS batch, the version is the version number of the file type. For example, for the file type ORDHDR:5, the version is 5.
Output Parameters
controlNumber
String (optional) The control number.
error
String (optional) If an error was encountered obtaining the control number, this is the description of the error.
Usage Notes
For more information about control numbers, see webMethods Module for EDI Installation and User’s Guide.