Functional Description
Purpose
This function writes the Lot Master record (F4108) for the TO side of an Inventory Transfer and
deletes the Lot Master record for the FROM side of the Inventory Transfer.
Setup Notes and Prerequisites
The Item Number (ITM), Branch/Plant (MCU) and Allow Duplicate Lots (ULOT) fields are required input
parameters.
Technical Specification
This function retrieves the Lot Master (F4108) using the FROM Branch, Item and FROM Lot Number. If
found, deletes the record and changes the FROM Branch to the TO Branch and adds a Lot Master record for
the TO Branch and TO Lot Number if Allow Duplicate Lots = 'N'.
Processing
// Retrieve the record using the 'FROM'Branch, ITM, and LOTN. If the record exists for the '
FROM' Branch, delete the record from F4108 and change the 'FROM' Branch with 'TO' Branch and add the
'TO' Branch record with the 'FROM' Branch data to the Lot Master./
Retrieve F4108 with Branch - From, Short Item Number, Lot Number
If Allow Duplicate Lots equals to 'N'
Call DeleteLotMaster(X4108)
with parms as follows:
Branch/PlantBranch - From
Short Item NumberShort Item Number
Lot NumberLot Number - From
Retrieve F4108 with Branch/Plant, Short Item Number, Lot Number
If record not found
Call GetAuditInfo(B9800100) and update the following fields in the F4108:)
Short Item NumberShort Item Number
Branch/PlantBranch/Plant
Lot NumberLot Number
^
D4100520 - Write To And Delete From Lot
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMItem NumberIY
MCUBranch/PlantIY
LOTNLot NumberIN
MCU Branch - FromIN
LOTNLot Number - FromIN
ULOTAllow Duplicate 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
| ||||
mnTransferQty | 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 |