Functional Description
Purpose
The purpose of this function is to perform all caching functionality for the Error Cache 2. The Error Cache 2 is used by the WIP Revaluation program
to cache error records to be printed on the UBE output.
Setup Notes and Prerequisites
The ErrorCache2 function must be called with cMode = 0 in order to create an instance of the cache before any other caching functionality can be
performed. In addition, the cache must be called with cMode = 4 after all desired caching functionality has been performed in order to terminate the cache.
Business Function Paramenters:
1. cMode - Indicates the desired processing.
Valid modes include:
0 = Create an instance of the cache
1 = Add a record to cache
2 = Read a record from cache
3 = Delete a record from cache
4 = Terminate the cache
2. szCacheJobNumber - A unique job number that can be combined with business function object name to create a unique cache name.
3. cSuppressErrorMessage - A value of '1' indicates that errors encountered during processing should not be set in the message center.
4. szErrorMessage - The error messge ID returned from the business function when an error occurs. This message is returned regardless of the
value of the cSuppressErrorMessage parameter.
5. idhCursor - A cursor pointing to a particular record in the cache. The cursor is passed back from the function when the cReturnPointer
parameter is set to '1' and should be passed into the function for a sequential read of the cache.
6. szBusinessUnit - A member of the cache and part of the cache key.
7. szObjectAccount - A member of the cache and part of the cache key.
8. szSubsidiary - A member of the cache and part of the cache key.
9. mnAAI - A member of the cache.
7. szAccountNumber - A member of the cache.
7. szCompany - A member of the cache.
7. szGLCategory - A member of the cache.
10. mnNumberKeys - Indicates the number of keys to be used when fetching from the cache.
11. cReturnPointer - A value of '1' indicates that a pointer to the cache should be returned when a successful cache read has occured.
12. cErrorType - A member of the cache.
13. szCostType - A member of the cache.
14. szDocumentType - A member of the cache.
Technical Specifications
Cache Structure:
szBusinessUnit
szObjectAccount
szSubsidiary
mnAAI
szAccountNumber
szCompany
szGLCategory
cErrorType
szCostType
szDocumentType
Cache Key:
szBusinessUnit
szObjectAccount
szSubsidiary
D3104060 - Error Cache 2 - Data Structure
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szCacheJobNumber | JOBN | char | OPT | INPUT |
The code that identifies the work station ID that executed a particular job. | ||||
cSuppressErrorMessage | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szErrorMessage | DTAI | char | OPT | OUTPUT |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
idhCursor | GENLNG | ID | OPT | BOTH |
General purpose ID variable. | ||||
szBusinessUnit | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szObjectAccount | OBJ | char | OPT | NONE |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiary | SUB | char | OPT | NONE |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
mnAAI | ANUM | MATH_NUMERIC | OPT | NONE |
A number used to specify sequence and retrieve accounting information. | ||||
szAccountNumber | ANI | char | OPT | NONE |
A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:
o Standard account
| ||||
szCompany | CO | char | OPT | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szGLCategory | GLPT | char | OPT | NONE |
A user defined code (41/9) that identifies the G/L offset that system uses when it searches for the account to which it posts the transaction. If
| ||||
mnNumberKeys | NKEYS | MATH_NUMERIC | OPT | NONE |
The number of keys in an index that will be used to retrieve, delete, or update a record. | ||||
cReturnPointer | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
cErrorType | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szCostType | COST | char | OPT | NONE |
A code that designates each element of cost for an item. Examples of the cost object types are:
o A1 Purchased raw material
o B1
| ||||
szDocumentType | DCT | char | OPT | NONE |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
|
None |
None |