Functional Description
Purpose
This function is used to maintain Flex Sales Accounting in cache.
Setup Notes and Prerequisites
None
Special Logic
None
Technical Specification
Parameters
ItemDescriptionI/OReq?Notes
EVO1cActionCodeIY'1`- Retrieve Record
'2'- Add Record
'3'- Update Record
'4'- Delete Record
'8'- Destroy Cache
AN8mnAddressNumberIYCustomer Number
MCUszCostCenterIYBusiness Unit
DOCmnDocVoucherInvoiceEIYDocument
(Voucher,Invoice,Etc.)
DCTszDocumentTypeIY
KCOszCompanyKeyIYDocument Company
SFXszDocumentPayItemIY
JOB#mnJobNumberIY
ICUmnBatchNumberIY
PYIDmnPaymentIDIYInternal Payment Id
RC5mnFileLIneIdentifier50IY
Related Tables
None
Related Functions
None
Processing
Set cache Key structure
Initialize the Cache
If cache is not initialized
IdReturnCode = ER_ERROR
Else
Process the action code
If cActionCode = '1'
Load the cache key structure with the mnJobNumber
Open the cursor for retrieval
If cursor not opened
IdReturnCode = ER_ERROR
Else
Retrieve the record from the cache
If record not retrieved
IdReturnCode = ER_ERROR
Else
Load return values
If cActionCode = '2'
Load the cache data structure
Add the record to the cache
If the record is not added
IdReturnCode = ER_ERROR
If cActionCode = '3'
Load the cache key structure
Open cursor for retrieval
If cursor not opened
IdReturnCode = ER_ERROR
Else
Retrieve the record from the cache
If record not retrieved
IdReturnCode = ER_ERROR
Else
Load cache values
Update cache
If cache not updated
IdReturnCode = ER_ERROR
If cActionCode = '4'
Load the cache key structure
Delete the record from the cache
If record not deleted
IdReturnCode = ER_ERROR
If cActionCode = '8'
Terminate the cache
^
D03B0170 - Process AR Cost Management Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cActionCode | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
mnAddressNumber | AN8 | MATH_NUMERIC | OPT | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szCostCenter | MCU | char | OPT | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnDocVoucherInvoiceE | DOC | MATH_NUMERIC | OPT | INPUT |
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 | OPT | INPUT |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
szCompanyKey | KCO | char | OPT | INPUT |
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 | OPT | INPUT |
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
| ||||
mnJobNumber | JOB# | MATH_NUMERIC | OPT | INPUT |
The unique IBM Job Number assigned to each active program. This Job Number may be accessed through the Program Status Data
| ||||
mnBatchNumber | ICU | MATH_NUMERIC | OPT | INPUT |
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
| ||||
mnPaymentID | PYID | MATH_NUMERIC | OPT | INPUT |
A number that the system assigns from Next Numbers to identify and track payment records. | ||||
mnFileLineIdentifier50 | RC5 | MATH_NUMERIC | OPT | INPUT |
This field is used to create a unique key within a file and should be used with a next number approach. |
None |
None |