Functional Description
Purpose
The ResetAndDeleteBatchControlInfo business function maintains the integrity of Batch Control (and
related receipt) records.
Setup Notes and Prerequisites
This business function is used in P03B571, R03B571 and R03B575.
Special Logic
Technical Specification
Parameters:
Data Item Data Structure Description I/ORequiredNotes
EV01cActionCode IY
ADCNmnAutoDebitControlNbr IY
ICUmnBatchNumber IY
PGMszProgramName IY
Related Tables
F03B13Receipt Header File
F03B571Auto Debit Batch Control
F03B575Auto Debit Invoice Select and Build
F03B57OWAuto Debit Standard Formatted Tape
Related Business Functions
B03B0019F03B13 Void/NSF Receipt
Processing
The business function has four parameters, all input - Action Code , Auto Debit Batch Control Number
(ADCN), Batch Number (ICU) and Program Name (PGM).
All four parameters are input only, and are required. Parameter one is the "action" to be taken by
the function. Valid cActionCode values are 'D' (for delete).
The business function first fetches all Receipt Register (F03B13) records that have a batch number
(ICU) equal to the batch number passed - on the Auto Debit Batch Control (F03B571) record - via
parameter number three. For each receipt read, the F03B13 Void/NSF Receipt (B03B0019) business function is
called to either void or delete receipt related records, depending on whether the receipt is posted or
not posted. If the receipt is not posted, all receipt related records are deleted. If the receipt is
posted, the receipt related records are updated and/or adjusting records are written. The F03B13
Void/NSF Receipt function also maintains the batch header (F0011) record. After handling all Receipt
related records, the function deletes ALL records contained in the Auto Debit Standard Formatted Tape
(F03B57OW) file for the selected batch.
ResetAndDeleteBatchControlInfo next determines whether to delete the Auto Debit Batch Control record
and Auto Debit Invoice and Select records. If an cActionCode equal to 'D' is passed, the Auto Debit
Batch Control (F03B571) record and ALL associated Auto Debit Invoice and Select (F03B575) records are
deleted.
D03B0130 - DS for F03B571 Reset and Delete Batch Control Info
Parameters:
Data Item Data Structure Description I/ORequiredNotes
EV01cActionCode IY
ADCNmnAutoDebitControlNbr IY
ICUmnBatchNumber IY
PGMszProgramName IY
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cActionCode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
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. | ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either
| ||||
szProgramName | PGM | char | NONE | NONE |
The name of an executable program. | ||||
mnCurrentBatchNumber | ICU | MATH_NUMERIC | OPT | NONE |
A number that identifies a group of transactions that the system processes and balances as a unit. When you enter a batch, you can either
| ||||
szCurrentBatchType | ICUT | char | OPT | NONE |
A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction.
| ||||
jdCurrentDateBatchJulian | DICJ | JDEDATE | OPT | NONE |
The date of the batch. If you leave this field blank, the system date is used. | ||||
szVoidReasonCode | VRE | char | OPT | NONE |
A code that explains why a receipt was voided. | ||||
jdVoidDate | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. |
B03B0019 F03B13 Void/NSF Receipt |
F03B13 Receipts Header | ||||
F03B571 Auto Debit Batch Control | ||||
F03B575 Auto Debit Invoice Select and Build | ||||
F03B57OW Auto Debit Standard Formatted Tape File |