WorkOrderCache

Work Order Cache

Minor Business Rule

Object Name: B3104300

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

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 



Data Structure

D3104300 - Work Order Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeEV01charOPTNONE

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

szCacheJobNumberJOBNcharOPTNONE

The code that identifies the work station ID that executed a particular job.

cSuppressErrorMessageEV01charOPTNONE

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

szErrorMessageIDDTAIcharOPTNONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

idhCursorGENLNGIDOPTNONE

General purpose ID variable.

mnWorkOrderNumberDOCOMATH_NUMERICOPTNONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

mnJobNumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

mnStartingLineNumberJELNMATH_NUMERICOPTNONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

mnEndingLineNumberJELNMATH_NUMERICOPTNONE

A number that designates a line within a journal entry. The system uses this field to sequence the journal entry lines for inquiry purposes.

Related Functions

None

Related Tables

None