Functional Description
Purpose
This function is used to check the Invoice Selection cache for the specified invoice pay item. The
Invoice Selection cache is used by the Standard Receipts Entry (P03B102) and Draft Entry (P03B602)
applications to track invoices that have been tagged for selection. This cache stores only the match line
ID and extension and the invoice document number (DOC), type (DCT), company (KCO), and pay item (SFX).
The records in the cache can be manipulated by one of two indexes: match line ID and extension
(Invoice Selection by ID) or document number, type, company, and pay item (Invoice Selection by Document).
Setup Notes and Prerequisites
The Invoice Selection cache must exist before calling this function.
Special Logic
None.
Technical Specification
Parameters
Item DescriptionI/OReq?Notes
MATH01mnMatchLineID NMatch Line ID defines a group of selected Invoices
RC5mnMatchLineExtension NMatch Line Extension defines a individual record in
the group
DOCmnDocumentNumberIYDocument Number of the selected Invoice
DCTszDocumentTypeIYDocument Type of the selected Invoice
KCOszDocumentCompanyIYDocument Key Company of the selected Invoice
SFXszDocumentPayItemIYPay Item of the selected Invoice
EV01cReturnStatus '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 Invoice Selection by Document cache is greater than zero,
Open cursor.
Retrieve record from the Invoice Selection by Document cache.
If the record was found,
Set cReturnStatus equal to '1'.
Close the cursor.
D03B0172 - Maintain Invoice Selection Cache
Purpose
This Data Structure is used by the following functions:
item
InvoiceSelectionCreateCache - Create the Invoice Selection cache
InvoiceSelectionDeleteByDocument - Delete the specified invoice pay item from the Invoice
Selection cache
InvoiceSelectionDeleteByID - Delete invoices from the Invoice Selection cache for the
corresponding line ID and extension
InvoiceSelectionDestroyCache - Terminate the Invoice Selection cache and free its associated
memory
InvoiceSelectionWriteCache - Write the specified invoice pay item to the Invoice Selection
cache
more detail information see the function notes for the individual functions.
Parameters
Item DescriptionI/OReq?Notes
MATH01mnMatchLineIDI Match Line ID number to define group of invoices
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Not Used
InvoiceSelectionDeleteByID - Required
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
RC5mnMatchLineExtensionI Match Line Extension to define item in the Match Line
ID
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Not Used
InvoiceSelectionDeleteByID - Optional
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
DOCmnDocumentNumberI Document Number of the Invoice
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Required
InvoiceSelectionDeleteByID - Not Used
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
DCTszDocumentTypeI Document Type of the Invoice
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Required
InvoiceSelectionDeleteByID - Not Used
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
KCOszDocumentCompanyI Document Key Company of the Invoice
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Required
InvoiceSelectionDeleteByID - Not Used
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
SFXszDocumentPayItemI Pay Item of the Invoice
InvoiceSelectionCreateCache - Not Used
InvoiceSelectionDeleteByDocument - Required
InvoiceSelectionDeleteByID - Not Used
InvoiceSelectionDestroyCache - Not Used
InvoiceSelectionWriteCache - Required
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 |
---|---|---|---|---|
mnMatchLineID | MATH01 | MATH_NUMERIC | NONE | NONE |
- - - Good Performance Low Value. | ||||
mnMatchLineExtension | RC5 | MATH_NUMERIC | NONE | NONE |
This field is used to create a unique key within a file and should be used with a next number approach. | ||||
mnDocumentNumber | DOC | MATH_NUMERIC | NONE | NONE |
A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document
| ||||
szDocumentType | DCT | char | NONE | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szDocumentCompany | KCO | char | NONE | NONE |
A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher,
| ||||
szDocumentPayItem | SFX | char | NONE | NONE |
A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has
| ||||
cReturnStatus | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. |
None |
F03B11 Customer Ledger |