Purpose
This function will fetch the lot status of the FROM and TO locations, compare them, and return a flag indicating if there is a difference in lot status
between the two locations based on the definition stated in error message 025Z.
Error 025Z definition:
CAUSE . . . . .The Lot Status is about to be updated. This warning message is issued for one of the following three reasons:
3.The FROM and TO locations are both on DIFFERENT holds. The TO Lot Status will remain in the TO location.
Parameters:
Data Item Data Structure
DescriptionI/ORequiredNotes
ITMmnIdentifierShortItemIY
MCUszBranchPlantIY
FLOTszLotIY
FLOCszFromLocationIY
LOTScFromLotStatusON
TLOCszToLocationIY
LOTScToLotStatusON
EV01cChangeOfStatusFlagON
Related Tables
Table Table Description
F41021Item Location File
Processing
Fetch FROM lot/location status from F41021 using
- FLOC
- FLOT
Fetch TO lot/location status from F41021 using
- FLOC
- FLOT
If the FROM status is not equal to the TO status and FromLocationExistsFlag is equal to 1 and ToLocationExistsFlag is equal to 1, return a 1 in the
ChangeOfStatusFlag field. Otherwise, return ChangeOfStatusFlag set to 0
Local variables
Variable NameAlias
FromLocationExistsFlagEV01
ToLocationExistsFlagEV01
D4601120A - F41021CompareLotStatus
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnIdentifierShortItem | ITM | MATH_NUMERIC | REQ | INPUT |
| ||||
szBranchPlant | MCU | char | REQ | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szLot | LOTN | char | REQ | INPUT |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szFromLocation | FLOC | char | REQ | INPUT |
The storage location from which goods will be moved. | ||||
cFromLotStatus | LOTS | char | OPT | OUTPUT |
A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes
| ||||
szToLocation | TLOC | char | REQ | INPUT |
The storage location to which goods will be moved. | ||||
cToLotStatus | LOTS | char | OPT | OUTPUT |
A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes
| ||||
cLotStatusChangeFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. |
None |
None |