PurgeBatchReceipts

Purge Batch Receipts

Minor Business Rule

Object Name: B03B0041

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose
The purpose of the Purge Batch Receipts business function is to delete all records matching the 

following selection criteria:  (1) Upload Status Flag = 'Y';  (2) End Batch Date less than or equal to 

Processing Option Date entered;  (3) Batch Number equal to Processing Option Batch Number entered.  Purge 

Batch Receipts fetches in a loop all records matching the above selection criteria.  Each record 

fetched will be deleted using the key: Batch Number, Check Number and Related Line ID.



Setup Notes and Prerequisites

None


Special Logic
None


Technical Specifications




Purpose
This function data structure is used by Purge Batch Receipts function.


Parameters

Item             Description            I/O   Req? Notes

DICJjdEndBatchDate          I     Y      Batch Date for Transaction
ICUmnBatchNumber           I     N/R    Batch Number for Transaction
EV01            cPurgeUnmatchedRecords   I     N/R  Processing Option value

EV04            cPurgeAllZ1s             I     N/R     Processing Option value. '1' purge all the Z1 

records regardless of the upload status.


Related Tables 

F03B13Z1Batch Receipts File


Related Functions

None

Processing

• Open Batch Receipts File (F03B13Z1)

• Perform Set Selection:

Upload Status = 'Y'

End Batch Date LT or EQ Processing Option Date entered

Batch Number equal to Processing Batch Number entered  (if one was entered)


• Fetch in a loop all records matching selection criteria

• Create key to use for delete (Batch Number, Check Number, Related Line ID)

• Delete record fetched

• Close Batch Receipts File (F03B13Z1) and return to calling program
^

Data Structure

D03B0041 - Purge Batch Receipts

Purpose
This function data structure is used by Purge Batch Receipts function.

Parameters

Item             Description            I/O   Req? Notes

DICJjdEndBatchDate          I     Y     Batch Date for Transaction
ICUmnBatchNumber           I     N/R    Batch Number for Transaction
EV01            cPurgeUnmatchedRecords   I     N/R  Processing Option value

EV04            cPurgeAllZ1s             I     N/R  Processing Option value. '1' purge all the Z1 

records regardless of the upload status.


^

Parameter NameData ItemData TypeReq/OptI/O/Both
jdEndBatchDateDICJJDEDATENONENONE

Itemab Description            I/O   Req?  ab Notes
DICJab jdEndBatchDate         I      Yab      Batch Date for Transaction

^

mnBatchNumberICUMATH_NUMERICNONENONE

Itemab Description            I/O   Req?  ab Notes
ICUab mnBatchNumber          I     N/R      Batch Number for Transaction

^

cPurgeUnmatchedRecordsEV01charNONENONE

Item            Description             I/O   Req?  ab Notes
EV01            cPurgeUnmatchedRecords  I     N/R    Processing Option value

^

cPurgeAllZ1sEV04charNONENONE

Item            Description            I/O   Req?  ab Notes
EV04            cPurgeAllZ1s           I     N/R     Processing Option value. '1' purge all the Z1 

records regardless of the upload  status.ab 

^

Related Functions

None

Related Tables

F03B13Z1 Electronic Receipts Input