ProcessARCMSCache

Process A/R Cost Management Cache

Minor Business Rule

Object Name: B03B0170

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

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



^

Data Structure

D03B0170 - Process AR Cost Management Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionCodeEV01charOPTINPUT

An option that specifies the type of processing for an event.

mnAddressNumberAN8MATH_NUMERICOPTINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szCostCenterMCUcharOPTINPUT

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

mnDocVoucherInvoiceEDOCMATH_NUMERICOPTINPUT

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharOPTINPUT

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szCompanyKeyKCOcharOPTINPUT

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

szDocumentPayItemSFXcharOPTINPUT

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 
multiple pay items, the numbers are sequential.

mnJobNumberJOB#MATH_NUMERICOPTINPUT

The unique IBM Job Number assigned to each active program.  This Job Number may be accessed through the Program Status Data 
Structure.

mnBatchNumberICUMATH_NUMERICOPTINPUT

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 
assign a batch number or let the system assign it using the Next Numbers program.

mnPaymentIDPYIDMATH_NUMERICOPTINPUT

A number that the system assigns from Next Numbers to identify and track payment records.

mnFileLineIdentifier50RC5MATH_NUMERICOPTINPUT

This field is used to create a unique key within a file and should be used with a next number approach.

Related Functions

None

Related Tables

None