Functional Description
Purpose
This function is used to maintain Flex Inventory Accounting CACHE.
This cache is used by the Inventory Master Business Function process to pass Inventory fields to the
"Build Flexible Account" Business Function.
You can use this function to add, change, inquire, and delete cache records. The records will be
keyed by Job Number since there will only be on Inventory detail record passed thru the process
at a time.
Setup Notes and Prerequisites
Special Logic
Technical Specification
Parameters
Data Item Data Structure Description I/O Required Notes
SUPPS Suppress Error Message I N
DTAI Error Message ID O N
EV01 Action I Y
JOBS Job Number I Y
ITM Short Item Number B N F4102 Key
MCU Branch/Plant B N F4102 Key/F0006 Key/F4111 Key
AN8 Address Number B N F4102 Key
ITM Item Number B N F4102 Key
LITM Second Item Number B N F4111 field current record
AITM Third Item Number B N F4111 field current record
KIT Parent Item Number N N F4111 field current record
MMCU Branch B N F4111 field current record
DMCT Agreement Number - Distribution B N F41ll field current record
DOCO Document Number B N F4111 field current record
TREF Transaction Reference B N F4111 field current record
RCD Reason Code B N F4111 field current reocrd
Related Tables
Related Business Fuctions
Processing
You call call this business function with four different actions (EV01):
1 = Retrive
2 = Add
3 = Update
4 = Delete
8 = Terminate CACHE
If the Action Code(EV01) = '1'(Retrieve), fetch a record from the cache (using JOBS - Job Number as
the key). If error, return "Action Invalid"(0001) error message.
If the Action Code(EV01) = '2'(Add), add a record to the cache with all the F4111 database fields
from
the passed parameters (using JOBS - Job Number as the key). If error, return "Action Invalid"(0001)
error message.
If the Action Code(EV01) = '3'(Update), fetch a record from the cache (using JOBS - Job Number as the
key) and update the record in the cache with all the database fields from the passed parameters.
If error, return "Action Invalid"(0001) error message.
If the Action Code(EV01) = '4'(Delete), delete all matching records from the cache (using JOBS - Job
Number as the key). If error, return "Action Invalid"(0001) error message.
If the Action Code(EV01) = '8'(Terminate), terminate CACHE from memory (using JOBS - Job Number as
the
key). If error, return "Action Invalid"(0001) error message.
D4101090 - Cache, Process Flex Inventory Acounting
Parameters
Data Item Data Structure Description I/O Required Notes
SUPPS Suppress Error Message I N
DTAI Error Message ID O N
EV01 Action I Y
JOBS Job Number I Y
ITM Short Item Number B N F4102 Key
MCU Branch/Plant B N F4102 Key/F0006 Key/F4111 Key
AN8 Address Number B N F4102 Key
ITM Item Number B N F4102 Key
LITM Second Item Number B N F4111 field current record
AITM Third Item Number B N F4111 field current record
KIT Parent Item Number N N F4111 field current record
MMCU Branch B N F4111 field current record
DMCT Agreement Number - Distribution B N F41ll field current record
DOCO Document Number B N F4111 field current record
TREF Transaction Reference B N F4111 field current record
RCD Reason Code B N F4111 field current reocrd
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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
| ||||
cActionCode | ACTN | char | NONE | NONE |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
Parameters
| ||||
szBranchPlant | MCU | char | NONE | NONE |
Parameters
| ||||
mnAddressNumber | AN8 | MATH_NUMERIC | NONE | NONE |
Parameters
| ||||
sz2ndItemNumber | LITM | char | NONE | NONE |
Parameters
| ||||
sz3rdItemNumber | AITM | char | NONE | NONE |
Parameters
| ||||
mnKitItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
Parameters
| ||||
szBranch | MMCU | char | NONE | NONE |
Parameters
| ||||
szAgreementNumber | DMCT | char | NONE | NONE |
Parameters
| ||||
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
Parameters
| ||||
szTransactionReference | TREF | char | NONE | NONE |
Parameters
| ||||
szReasonCode | RCD | char | NONE | NONE |
Parameters
|
None |
None |