Functional Description
Purpose
This function writes a Lot Master record (F4108) for the FROM side of an Inventory Transfer and
deletes the Lot Master record for the TO side of an Inventory Transfer.
Setup Notes and Prerequisites
The Item Number (ITM), Branch/Plant (MCU)) and Allow Duplicate Lots (ULOT) are required input
parameters.
Technical Specification
This function retrieves the Lot Master for the TO Branch, Item and Lot Number passed in. If the
record exists, delete the TO Lot Master record and create a FROM Lot Master record if the Allow Duplicate
Lots = 'N'.
Processing
// Retrieve the record using the 'TO' MCU, ITM, and LOTN. If the record exists for the ' TO' MCU,
then delete the 'TO' MCU record from F4108 and change the 'TO' MCU with 'FROM' MCU and added the
'FROM' MCU record with the 'TO' MCU data to F4108.
//
Retrieve F4108 with Branch/Plant, Short Item Number, Lot Number
If Allow Duplicate Lots equals 'N',
Call DeleteLotMaster(X4108)
with parms as follows:
Short Item NumberShort Item Number
Branch/PlantBranch/Plant
Lot NumberLot Number
Retrieve F4108 with Branch - From, Short Item Number, Lot Number
If record not found
Call GetAuditInfo(B9800100) and update the F4108:
Short Item NumberShort Item Number
Branch/PlantBranch - From
Lot NumberLot Number - From
^
D4100530 - Write From Lot For Reversal
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMItem NumberIY
MCUBranch/PlantIY
LOTNLot NumberIN
MCUBranch - FromIN
LOTNLot Number - FromIN
ULOTDuplicate LotsIY
PIDProgramIDIN
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranchPlant | 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
| ||||
szLotNumber | LOTN | char | OPT | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szFromBranchPlant | 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
| ||||
szFromLotNumber | LOTN | char | OPT | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
cAllowDuplicateLots | ULOT | char | OPT | NONE |
A code that determines whether the system can assign the same lot to multiple items. Valid values are:
1 Do not allow duplicate lots. The
| ||||
szProgramID | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
mnReverseQty | TQOH | MATH_NUMERIC | OPT | NONE |
The total quantity on hand in the primary unit of measure for an item at the beginning of the cycle count. | ||||
jdTransactionDate | TRDJ | JDEDATE | OPT | NONE |
The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing. |
B9800100 Get Audit Information |
F4108 Lot Master |