ResetAndDeleteBatchControlInfo

F03B571 Reset and Delete Batch Control Info

Major Business Rule

Object Name: B03B0130

Parent DLL: CFIN

Location: Client/Server

Language: C

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.    




Data Structure

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 NameData ItemData TypeReq/OptI/O/Both
cActionCodeEV01charNONENONE

An option that specifies the type of processing for an event.

mnAutoDebitControlNbrADCNMATH_NUMERICNONENONE

A number that the system uses to group auto debit records for processing. This number is assigned by the Next Numbers feature.

mnBatchNumberICUMATH_NUMERICNONENONE

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 
assign a batch number or let the system assign it using the Next Numbers program.

szProgramNamePGMcharNONENONE

The name of an executable program.

mnCurrentBatchNumberICUMATH_NUMERICOPTNONE

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 
assign a batch number or let the system assign it using the Next Numbers program.

szCurrentBatchTypeICUTcharOPTNONE

A code that specifies the system and type of transactions entered in a batch. The system assigns the value when you enter a transaction. 
Valid values are set up in user defined code table 98/IT. You cannot assign new values. All batch types are hard coded.

jdCurrentDateBatchJulianDICJJDEDATEOPTNONE

The date of the batch. If you leave this field blank, the system date is used.

szVoidReasonCodeVREcharOPTNONE

A code that explains why a receipt was voided.

jdVoidDateDATE01JDEDATEOPTNONE

Event point for JDE Date.

Related Functions

B03B0019 F03B13 Void/NSF Receipt

Related Tables

F03B13 Receipts Header
F03B571 Auto Debit Batch Control
F03B575 Auto Debit Invoice Select and Build
F03B57OW Auto Debit Standard Formatted Tape File