1.Functional Description
This Business Function loads F30026 records into cache so that
calling applications, UBE and BF can use the cached records to decrease database
I/O. It also calculate the new A1 cost and the Old A1 cost.
1.1Purpose
This Business Function loads F30026 records into cache so that
calling applications, UBE and BF can use the cached records to decrease database
I/O. Mode '1' loads F30026 records to cache and returns cost rollups for Frozen Net Added, Total
Frozen and Total Simulated. Mode '1' also calculate the percent of frozen total and percent of simulated
total for each component.It also calculate the new A1 cost and the old A1 cost. Mode '2' reads through
the cache and mode '3' clears the cache.
2.Technical Specifications
2.4Processing
Note: Mode, Cache Handle(lphCache), Cursor Handle, and Job Number as string are required field for
all mode.
1.If mode 1,
successful
successful, Set IDReturn = ER_WARNING (WARNING: Exact Lot/Location not found)
c)If selection is successful, create cache index and initialize cache or clear it depending on
whether it already exists or not. Return handle
d) Populate cache with records found and calculate total costs and percentages (if requested)
e) If cost type is 'A1', Calculate the New A1 cost =
(Total of Simulated Total - Total of Simulated Net Added) + A1 Simulated Net Added.
Calculate the Old A1 Cost = (Total of Frozen Total - Total of Frozen Net Added) + A1 Frozen Net
Added.
ER_ERROR
3.If mode 3, terminate cache and free cursor and cache pointers
D3003130 - DS for B3003130 - Retrieve Cost Components
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cMode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnIdentifierShortItem | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szItemNumber2nd | LITM | char | NONE | NONE |
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to
| ||||
szItemNumber3rd | AITM | char | NONE | NONE |
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item
| ||||
szCostCenterAlt | 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
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
szLot | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szLedgType | LEDG | char | NONE | NONE |
A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards
| ||||
szCostType | COST | char | NONE | NONE |
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
| ||||
szLotGrade | LOTG | char | NONE | NONE |
A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:
A1 Premium
| ||||
mnFrozenCost | STDC | MATH_NUMERIC | NONE | NONE |
The cost of the item as calculated by the Simulate Cost Rollup program (P30820) and updated by the Frozen Cost Update program
| ||||
mnSimulatedCost | XSMC | MATH_NUMERIC | NONE | NONE |
Used to calculate cost during the simulation process. | ||||
mnFrozenCostRollup | CSL | MATH_NUMERIC | NONE | NONE |
The accumulated standard cost rolled up from lower levels. | ||||
mnSimulatedCostRollup | XSCR | MATH_NUMERIC | NONE | NONE |
For the designated cost method, used to calculate the cost of all the lower levels during the simulation process. | ||||
szFrozenFactorCode | SCTC | char | NONE | NONE |
A code used to retrieve factor information from the Generic Rate File (F00191). System Code 30 Record Type CF | ||||
szSimulatedFactorCode | XSFC | char | NONE | NONE |
A user defined code (system 30, type CF) used to retrieve factor information from the Generic Rate table (F00191). This value is used in
| ||||
mnFrozenFactor | STFC | MATH_NUMERIC | NONE | NONE |
A generic factor number used to calculate data. | ||||
mnSimulatedFactor | XSF | MATH_NUMERIC | NONE | NONE |
A generic factor used to calculate data for standard cost component extras. | ||||
szFrozenRateCode | RATS | char | NONE | NONE |
A code used to retrieve rate information from the Generic Rate File (F00191). System Code 30 Record Type CR | ||||
szSimulatedRateCode | XSRC | char | NONE | NONE |
A user defined code (system 30, type CR) used to retrieve rate information from the Generic Rate table (F00191). This value is used in
| ||||
mnFrozenRate | RTSD | MATH_NUMERIC | NONE | NONE |
A code used to define rate information in the Generic Rate File (F00191). | ||||
mnSimulatedRate | XSR | MATH_NUMERIC | NONE | NONE |
A generic rate used to calculate extra costs, such as electricity and taxes. | ||||
cStandardProcessingFlag | PFLG | char | NONE | NONE |
A processing code to indicate the item is currently acitve in the simulation process. Blank Inactive 1 Active | ||||
szUserId | USER | char | NONE | NONE |
The code that identifies a user profile. | ||||
szProgramId | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
jdDateUpdated | UPMJ | JDEDATE | NONE | NONE |
The date that specifies the last update to the file record. | ||||
mnTimeOfDay | TDAY | MATH_NUMERIC | NONE | NONE |
The computer clock in hours:minutes:seconds. | ||||
szErrorMessage | 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
| ||||
cSuppressErrMsg | ERR | char | NONE | 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
| ||||
idhCache | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idhCursor | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szJobNumber | JOB | char | NONE | NONE |
Job Number | ||||
mnFrozenNetAddedTTL | AA | MATH_NUMERIC | NONE | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnFrozenCostTTL | AA | MATH_NUMERIC | NONE | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnPctofFrozenTTL | PE01 | MATH_NUMERIC | NONE | NONE |
The abbreviation for percentage. | ||||
mnPctofSimulatedTTL | PCT1 | MATH_NUMERIC | NONE | NONE |
An abbreviation for percentage. | ||||
cCalculatePercents | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnSimulatedNetAddedTTL | AA | MATH_NUMERIC | OPT | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnSimulatedTTL | AA | MATH_NUMERIC | OPT | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnNewA1Cost | AA | MATH_NUMERIC | OPT | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
mnOldA1Cost | AA | MATH_NUMERIC | OPT | NONE |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
cDetailFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
None |
F30026 Item Cost Component Add-Ons |