Functional Description
Purpose
The purpose of this business function is to populate a cache with records based on the percentage covered and the percentage not covered under a
CSMS Contract. Then give the user the ability to read and destroy the cache.
Setup Notes and Prerequisites
To fill the cache the user must first call the function with a mode of 1. Then to read the cache, it should be called with a mode of 2 and to terminate
the cache, call it with a mode of 3.
If calling in mode 1 a Job Number must be retrieved and passed in to create the cache with a unique
name. The Job Number must be in string format. NOTE* If calling in mode 1 and the cache already
exists, the contents of the cache will be cleared.
If calling in mode 2, the function needs to be in a loop to retrieve all the records from the cache
until ER_ERROR is returned.
If calling in mode 3, pass the cache handle to clear existing cache records.
This function will return ER_SUCCESS if there are no errors, or ER_ERROR if there were errors. If
there are errors, detailed descriptions will be passed back in the ErrMsgId element of the data
structure.
Special Logic
Note: This business function should be almost identical to B3003130 except that it does not retrieve any records from the F30026 table. Instead it
takes the data being passed in through the data structure, breaks the cost down based on the percentage covered by a CSMS Contract, and then writes
records to the cache. The reading and terminating of the cache remain similar to B3003130. Any fields that are in the cache but not specified in this design
should be set to zero or blank.
Technical Specification
Mode:
1 = Clear/Create/Populate cache
2 = Read cache
3 = Terminate cache
4 = Unplanned Inventory Issues
D1700080 - F30026 S/WM Cost Components Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
mnItemNumber | ITM | MATH_NUMERIC | REQ | INPUT |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranch | MMCU | char | REQ | INPUT |
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
| ||||
szLocation | LOCN | char | REQ | INPUT |
The storage location from which goods will be moved. | ||||
szLotNumber | LOTN | char | REQ | INPUT |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szCostType | COST | char | REQ | INPUT |
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
| ||||
mnCost | STDC | MATH_NUMERIC | REQ | BOTH |
The cost of the item as calculated by the Simulate Cost Rollup program (P30820) and updated by the Frozen Cost Update program
| ||||
szGLOffset | GLC | char | OPT | NONE |
A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates
| ||||
mnServiceOrderNumber | DOCO | MATH_NUMERIC | REQ | INPUT |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szWorkCenter | 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
| ||||
mnSequenceNumber | OPSQ | MATH_NUMERIC | OPT | NONE |
A number used to indicate an order of succession.
In routing instructions, a number that sequences the fabrication or assembly steps in the
| ||||
szTypeOperationCode | OPSC | char | OPT | NONE |
A user defined code (30/OT) that indicates the type of operation. Valid values include: A Alternate routing TT Travel time IT Idle time T Text | ||||
mnUniqueNextNumber | UKID | MATH_NUMERIC | OPT | NONE |
This field is a unique number used to identify a record in a file. | ||||
szErrorMessage | 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
| ||||
cSuppressErrors | ERR | char | OPT | NONE |
The Data Field Error Code field is simply a generic data field to pass an error condition flag. This field is one of the fields that make up the
| ||||
idCacheHandle | GENLNG | ID | OPT | NONE |
General purpose ID variable. | ||||
idCursorHandle | GENLNG | ID | REQ | BOTH |
General purpose ID variable. | ||||
szJobNumber | JOB | char | OPT | NONE |
Job Number | ||||
mnPercentOfFrozenTTL | PCT | MATH_NUMERIC | OPT | NONE |
An abbreviation for percentage. | ||||
cCallFlag_EV01 | EV01 | char | OPT | INPUT |
Special Input Parameters:
| ||||
szCoveredGLCategory_GLCCV | GLCCV | char | OPT | INPUT |
Special Input Parameters:
| ||||
szNonCoveredGLCategory_GLCNC | GLCNC | char | OPT | INPUT |
Special Input Parameters:
| ||||
mnPercentCovered_PCOVR | PCOVR | MATH_NUMERIC | OPT | INPUT |
Special Input Parameters:
|
None |
F31171 Parts List - Extension | ||||
F31172 Routing Instructions - Extension |