This activity allocates one or more control numbers for outbound transaction documents. It can allocate:
- zero, one or more interchange control numbers
- zero, one or more group control numbers
- zero, one or more transaction set (message) control numbers
The control number(s) are allocated from the series that apply to the specified trading partner, as can be seen on the Outbound Numbering tab of the Trading Partner definition, and the "next" numbers for the series are incremented accordingly.
If the outbound numbering domain for the trading partner specifies that outbound control numbers are allocated by transaction id, then the DOCCONTENTTYPE parameter must specify the transaction type of the series from which the control numbers are to be allocated.
INPUT Parameters:
TRADINGPARTNER: Required
Specifies the trading partner for which the control numbers are allocated. This parameter is required.
DOCCONTENTTYPE: Optional
This parameter may be used to specify the document content type for which the control numbers are allocated. It is required if the outbound numbering domain for the trading partner specifies that outbound control numbers are allocated by transaction id. However, if the outbound numbering domain for the trading partner specifies that outbound control numbers are allocated across all transaction ids, then the value of the DOCCONTENTTYPE parameter will be ignored.
ALLOCATE_IC: Optional
Specifies how many interchange control numbers to allocate. The allocated interchange control numbers will be placed in the CTRLNUMBER_IC output list parameter.
ALLOCATE_GP: Optional
Specifies how many group control numbers to allocate. The allocated group control numbers will be placed in the CTRLNUMBER_GP output list parameter.
ALLOCATE_MS: Optional
Specifies how many transaction set (message) control numbers to allocate. The allocated transaction set control numbers will be placed in the CTRLNUMBER_MS output list parameter.
OUTPUT Parameters:
CTRLNUMBER_IC:
Upon successful completion, this parameter will contain a list of zero, one or more allocated interchange control numbers, according to the value specified in the ALLOCATE_IC parameter.
CTRLNUMBER_GP:
Upon successful completion, this parameter will contain a list of zero, one or more allocated group control numbers, according to the value specified in the ALLOCATE_GP parameter.
CTRLNUMBER_MS:
Upon successful completion, this parameter will contain a list of zero, one or more allocated transaction set (message) control numbers, according to the value specified in the ALLOCATE_MS parameter.