1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, and Terminate
functions on the Parent Branches Cache used in the Branch Relationships Chart application P34031.
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.
1.2 Setup Notes and Prerequisites
Cache Action Codes
Standard
'2' Add - add a cache element. (NOT IMPLEMENTED)
'3' Update - update a cache element. (NOT IMPLEMENTED)
'4' Delete - delete a cache element. (NOT IMPLEMENTED)
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element. (NOT IMPLEMENTED)
'7' Add/Update - will add if element does not exist, will change if it does exist. (NOT
IMPLEMENTED)
'8' Terminate - terminate cache.
'9' Close cursor and free data ptr. (NOT IMPLEMENTED)
'D' Debug Mode - Dumps the contents of the entire cache into a text file
Branch. If the record is not found, the Parent Branch will be added to the cache and an error code of
'1' is returned to the calling application. If the record is found then an error code of '2' is
returned.
1.3Special Logic
This function will create a cache named
all calls..
2.Technical Specifications
Cache Layout:Cache includes all of the following fields; key fields are noted.
Data Item Data Structure DescriptionKey Field
MMCUParent BranchY
I.Perform setup functions
B.If not successful, set error "032E", set Cache Error Code = '3', and return failure.
C.Set Cache Error Code = '0'
D.Set return code to success.
II.Processing Based on Mode.
2.Retrieve the first element on the cache matching the key values passed as input.
3.If get fails set Cache Error Code = '1' And Add the Parent Branch to the Cache.
4.If get succeeds set Cache Error Code = '2'.
5.Close cursor.
2.If delete fails, set Cache Error Code = '5'.
^
D3500120 - Cache, Process Parent Branches
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szComputerID | CTID | char | NONE | NONE |
szParentBranch | MMCU | char | NONE | NONE |
A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which
| ||||
cCacheActionCode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cCacheErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cSuppressErrorMessage | SUPPS | char | NONE | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | NONE | 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
|
None |
None |