1.Functional Description
1.1Purpose
This function populates Resource Units Cache form Resource Units Table (F3007) based on the key selection.
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 pass the unique Job Number to create the cache (see technical specifications below).
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
1. Close F3007 (Resource Units table)
2. Open F3007 (Resource Units table)
3. If BF Calendar Year is not equal to
Branch/Plant,BusinessUnit,F.
Else
Branch/Plant,BusinessUnit,G.
Branch/Plant,BusinessUnit,E.
Branch/Plant,BusinessUnit,F.
Branch/Plant,BusinessUnit,G.
Branch/Plant,BusinessUnit,E.
//
// Depending on the Index used, Fetch next will use the same index.
//
4. If Index Selected is equal to "G"
5. If File_IO_Status is not equal to SUCCESS And BF cSuppressErrorMessage is not equal to "1"
If IndexSelected is equal to "G"
6. F3007.Close
D3003790 - F3007 Fillup Resource Units Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobnumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
szCostCenter | 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
| ||||
mnCalendarYear | YR | MATH_NUMERIC | OPT | NONE |
The calendar year for this calendar. | ||||
mnCalendarMonth | MT | MATH_NUMERIC | OPT | NONE |
A number that corresponds to the month in a calendar year. | ||||
szCostCenterAlt | MMCU | char | OPT | 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
| ||||
szUnitOfMeasure | UM | char | OPT | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
| ||||
szCostCenterType | STYL | char | OPT | NONE |
A user defined code (00/MC) that identifies the classification of the business unit. | ||||
cShiftCode | SHFT | char | OPT | NONE |
A user defined code (00/SH) that identifies daily work shifts.
In payroll systems, you can use a shift code to add a percentage or amount to
| ||||
cSuppressErrorMessage | SUPPS | char | OPT | 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 | 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
|
None |
None |