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
^
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 Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
jdEndBatchDate | DICJ | JDEDATE | NONE | NONE |
Itemab Description I/O Req? ab Notes
| ||||
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
Itemab Description I/O Req? ab Notes
| ||||
cPurgeUnmatchedRecords | EV01 | char | NONE | NONE |
Item Description I/O Req? ab Notes
| ||||
cPurgeAllZ1s | EV04 | char | NONE | NONE |
Item Description I/O Req? ab Notes
|
None |
F03B13Z1 Electronic Receipts Input |