Functional Description
Purpose
The GetNextAutoDebitBatchControlNumber business function retrieves the next available Auto Debit
Batch Control Number from the Auto Debit Batch Control (F03B571) table. After getting the next available
Auto Debit Batch Control Number, the function writes a new record to the Auto Debit Batch Control
table.
Setup Notes and Prerequisites
This function is used in R03B571.
Special Logic
Technical Specification
Parameters:
Data Item Data Structure DescriptionI/OReqNotes
ADCNmnAutoDebitBatchControlNumberONext available ADCN is
returned
Related Tables
Table Table Description
F03B571Auto Debit Batch Control
Related Business Functions
Source NameFunction Name
B9800100Get Audit Information
Processing
The function has one parameter, Auto Debit Batch Control Number, which is output only. In other
words, the next available Auto Debit Batch Control Number is returned via this parameter to the calling
program.
Initialize variables.
Open table F03B571 set an error if there is an error opening the table.
Sort the table by auto debit control number in descending order.
Fetch the record.
If record is not found then auto debit control number is 1 otherwise add 1 to the auto debit control
number of the record selected .
Copy the new auto debit control number to the data structure to return it to the calling program.
Calls function B9800100 to get audit information.
Populate user, program id, update date, job number, time, organization and the auto debit control
number.
Insert the F03B571 record .
If an error occurs inserting the record set an error.
^
D03B0134 - DS for F03B571 Get Next Auto Debits Batch Control Number
Parameters:
Data Item Data Structure DescriptionI/OReqNotes
ADCNmnAutoDebitBatchControlNumberONext available ADCN is
returned
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnAutoDebitControlNbr | ADCN | MATH_NUMERIC | NONE | NONE |
A number that the system uses to group auto debit records for processing. This number is assigned by the Next Numbers feature. |
B9800100 Get Audit Information |
F03B571 Auto Debit Batch Control |