Functional Description
Purpose
The purpose of this function is to perform all caching functionality for the Work Order Cache. The Work Order Cache is used by the Manufacturing
Journal Entries UBE (R31802A) to cache the first and last journal entry line numbers for each work order.
Setup Notes and Prerequisites
The WorkOrderCache 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
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. szErrorMessageID - The error message ID returned from the business function when an error occurs during processing. This ID is
returned regardless of the value in 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. mnWorkOrderNumber - A member of the cache and part of the cache key.
7. mnJobNumber - A member of the cache and part of the cache key.
8. mnStartingLineNumber - A member of the cache.
9. mnEndingLineNumber - A member of the cache.
Technical Specifications
Cache Structure:
mnWorkOrderNumber
mnJobNumber
szCacheJobNumber
mnStartingLineNumber
mnEndingLineNumber
Cache Key:
mnWorkOrderNumber
mnJobNumber
D3104300 - Work Order Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szCacheJobNumber | JOBN | char | OPT | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
cSuppressErrorMessage | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | NONE |
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 | NONE |
General purpose ID variable. | ||||
mnWorkOrderNumber | DOCO | MATH_NUMERIC | OPT | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnStartingLineNumber | JELN | MATH_NUMERIC | OPT | NONE |
A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes. | ||||
mnEndingLineNumber | JELN | MATH_NUMERIC | OPT | NONE |
A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes. |
None |
None |