B3003010GenericInterface

Cache Process Co By Accum Costs

Minor Business Rule

Object Name: B3003010

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

Data Structure

D30UCB - Universal Cache Browser - Small

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

szCacheNameA0charOPTNONE

Category Codes Argentina

cReturnCodeGFL1charOPTNONE

Reserved by J.D. Edwards.

mnColumnsMN15D0MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

idCacheCursorGENLNGIDOPTNONE

General purpose ID variable.

idStringArrayGENLNGIDOPTNONE

General purpose ID variable.

Related Functions

None

Related Tables

None
CacheProcessCoByAccumCosts

CacheProcessCoByAccumCosts

Cache Process Co By Accum Costs

Minor Business Rule

Object Name: B3003010

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function will perform Load, Delete, Update, Get, and Clear functions on the CoByProducts Accum 
Cost cache used in Cost Rollup (P30818).  On a Create process, an identifier for the cache (hCache 

handle) is passed back to the calling program for subsequent calls to this function.  


1.2Setup Notes and Prerequisites

The calling application is responsible for loading all appropriate key values to the data structure 
and identifying the number of keys to use in retrieval/update processes.  The application must also 

store the hCache pointers passed back from the "Create" process and pass these pointers back to the 

business function on the other process modes which require them (see technical specifications below).


1.3Special Logic

There is no special logic within this function.

2.Technical Specifications

2.4Processing 

I.    Perform setup functions 

A. Initialize cache to get handle.
B.Initialize return code to success.

C.If not successful, Set error "032E,"  "Error Processing Cache" and set return code to 

failure.


II.  Processing Based on Mode.


A.If Process Mode is "1" - GET:
1.Retrieve element from cache using keys to index.

B.If Process Mode is "2" - ADD:
1.(define logic for addition)

C.If Process Mode is "3" - UPDATE:
1. If element exist, update, else add element to cache.  

D.If Process Mode is "4" - DELETE:
1.(define logic for delete)  

E.If Process Mode is "5" - DELETE ALL:

1.(define logic for delete all).

F.If Process Mode is "6" - GET NEXT:
1.(define logic for get next).

G.If Process Mode is "7" - ADD/UPDATE:

1.(define logic for add/update).

H.If Process Mode is "8" - END
Perform cleanup functions (Terminate cache).

^

Data Structure

D3003010 - Cache Process Co By Accum Costs

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostTypeCOSTcharNONENONE

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  
Direct labor routing rollup   o  B2  Setup labor routing rollup   o  C1  Variable burden routing rollup   o  C2  Fixed burden routing rollup   o  Dx  Outside 
operation routing rollup   o  Xx  Extra add-ons, such as electricity and water  The optional add-on computations usually operate with the type 
Xx extra add-ons. This cost structure allows you to use an unlimited number of cost components to calculate alternative cost rollups. The 
system then associates these cost components with one of six user defined summary cost buckets.

mnCostAmountMN29D9MATH_NUMERICNONENONE

This is a generic field used as a work field in Everest.

mnCostAmountOperationMN29D9MATH_NUMERICNONENONE

This is a generic field used as a work field in Everest.

nNumberOfKeysINT01integerNONENONE

Number of Days in Future to Query for Responses Due. 

cProcessModeEV01charNONENONE

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

cCacheCodeErrorEV01charNONENONE

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

cSuppressErrorMessagesEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

mnJobNumberJOBSMATH_NUMERICNONENONE

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

cReturnCursorFlagEV01charNONENONE

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

idCursorGENLNGIDNONENONE

General purpose ID variable.

mnRemainingAmountMN29D9MATH_NUMERICOPTNONE

This is a generic field used as a work field in Everest.

Related Functions

None

Related Tables

None