Functional Description
Purpose
This function is used to check the Receipts Entry cache for a specified invoice pay item. The
Receipts Entry cache is used by the Standard Receipts Entry (P03B102) and Draft Entry (P03B602) applications
to keep track of which invoices have been added to the entry grid. This cache stores only the invoice
document number (DOC), type (DCT), company (KCO), and pay item (SFX).
Setup Notes and Prerequisites
The Receipts Entry cache must exist before calling this function.
Special Logic
None.
Technical Specification
Parameters
Item DescriptionI/OReq?Notes
DOCmnDocumentNumberIYDocument Number of the specified invoice pay item.
DCT szDocumentType I Y Document Type of the specified invoice pay item.
KCOszDocumentCompanyIYDocument Company of the specified invoice pay item.
SFXszDocumentPayItemIYDocument Pay Item of the specified invoice pay item.
EV01cReturnStatusO '0' if the record was not found, '1' if the record was
found.
Related Tables
None.
Related Functions
None.
Processing
Set cReturnStatus to '0'.
Validate required parameters.
If the number of records in the Receipts Entry cache is greater than zero,
Open cursor.
Retrieve record from the Receipts Entry cache.
If the record was found,
Set cReturnStatus equal to '1'.
Close the cursor.
D03B0158 - Maintain Receipts Entry Cache
Item DescriptionI/OReq?Notes
DOCmnDocumentNumberIY Not Required for the Create or Destroy calls.
Document Number of the specified invoice pay item.
DCT szDocumentType I Y Not Required for the Create or Destroy calls.
Document Type of the specified invoice pay item.
KCOszDocumentCompanyIY Not Required for the Create or Destroy calls.
Document Company of the specified invoice pay item.
SFXszDocumentPayItemIY Not Required for the Create or Destroy calls.
Document Pay Item of the specified invoice pay item.
EV01cReturnStatusO '0' if the record was not found, '1' if the record was
found.
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE |
Item ab Descriptionab I/Oab Req?ab Notes
| ||||
szDocumentType | DCT | char | NONE | NONE |
Item ab Descriptionab I/Oab Req?ab Notes
| ||||
szDocumentCompany | KCO | char | NONE | NONE |
Item ab Descriptionab I/Oab Req?ab Notes
| ||||
szDocumentPayItem | SFX | char | NONE | NONE |
Item ab Descriptionab I/Oab Req?ab Notes
| ||||
cReturnStatus | EV01 | char | NONE | NONE |
Item ab Descriptionab I/Oab Req?ab Notes
|
None |
None |