Functional Description
Purpose
This function will determine if cost records exist for the cost level; and retrieve the cost for the
primary location.
Setup Notes and Prerequisites
None.
Special Logic
None
Technical Specifications
Processing
// Determine if cost records exist for the cost level only if this is not a lot processing location
*If SRCE equals blanks OR equals zeros
OR SRCE not equal blanks AND SRCE not equal zeros and LOTN not equals blanks OR SRCE equals
'2'
Call GetItemCost(XF4105)
with parms as follows:
Inventory Cost Selection 'I'
Short Item NumberShort Item Number
Branch/PlantBranch/Plant
Lot NumberLot Number
Location - File Format Location - File Format
Call Type'1'
Return Record'0'
Return: Error Code
If Cost Level (CLEV) not equal '3' AND the record was not found Set
Add Cost Record to '1'
// Retrieve the cost from the primary location if this is a lot processing location or the location
being used was not found.
*If CLEV equals 3
If SRCE not equal blanks AND not equal zeros and LOTN equals blanks
OR F4105 record was not found,
Set Add Cost Record to '1'
Call VerifyAndGetItemLocation(XF41021) with Index = 4, Keys = 3.
If found, load the LOCN and LOTN just retrieved from the F41021 into
the COLOCN and COLOTN fields.
Call GetItemCost(XF4105) with the new parameters.
Move COUNCS into UNCS
Else
Move zeros to UNCS.
D4100490 - Transaction Cost Record Validation
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMItem NumberIY
MCUBranch/PlantIY
LOCNLocationIN
LOTNLot NumberIN
SRCELot Process TypeI/ON
EV01Add Cost RecordON
CLEVCosting LevelIY
UNCSUnit CostON
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | 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
| ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
cLotProcessType | SRCE | char | NONE | NONE |
A code that indicates whether lot or serial number is assigned. Lot and serial number processes use the Lot Master table (F4108).
Valid
| ||||
cAddCostRecord | EV01 | char | NONE | NONE |
If a '1', will need to add a cost record
| ||||
cCostLevel | CLEV | char | NONE | NONE |
From F4101
| ||||
mnUnitCost | UNCS | MATH_NUMERIC | NONE | NONE |
The amount per unit, derived by dividing the total cost by the unit quantity. | ||||
szCostMethod | 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
| ||||
cReturnItemCostRecord | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idItemCostRecord | GENLNG | ID | NONE | NONE |
General purpose ID variable. |
XF41021 Update F41021 Locations | ||||
XF4105 Item Cost I/O |
F41021 Item Location File | ||||
F4105 Item Cost File |