Functional Description
Purpose
To provide a common function that clears the inbound and outbound quantities from the Item
Location table (F41021) for a branch/plant and item.
Setup Notes and Prerequisites
Special Logic
The Item Location row is locked for update.
Technical Specification
Parameters
Data Item Data Structure Description I/O Required Notes
MCU Branch/Plant I Y
ITM Short Item Number I Y
PID Program ID I Y Name of calling program.
JOBN Workstation ID I N
USER User ID I N
UPMJ Date Updated I N
TDAY Time of Day I N
EV01 Error Code O N '1' = Error
DTAI Error Message ID O N
Related Tables
F41021 - Item Location
Related Business Fuctions
B9800100 - Get Audit Information
Processing
If the User ID is not passed from the calling function, call B9800100 to get audit information.
Read all rows for the branch/plant and item and set inbound and outbound quantity to zero.
If the update fails pass back an error message.
Each row should be fetched with a lock and the lock released once the row is updated.
^
D4101150A - F41021 Clear Warehouse Commitments
Parameters
Data Item Data Structure Description I/O Required Notes
MCU Branch/Plant I Y
ITM Short Item Number I Y
PID Program ID I Y Name of calling program.
JOBN Workstation ID I N
USER User ID I N
UPMJ Date Updated I N
TDAY Time of Day I N
EV01 Error Code O N '1' = Error
DTAI Error Message ID O N
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranchPlant | MCU | char | REQ | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnShortItemNumber | ITM | MATH_NUMERIC | REQ | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szProgramId | PID | char | REQ | NONE |
Parameters
| ||||
szUserId | USER | char | OPT | NONE |
The code that identifies a user profile. | ||||
szWorkStationId | JOBN | char | OPT | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
jdDateUpdated | UPMJ | JDEDATE | OPT | NONE |
The date that specifies the last update to the file record. | ||||
mnTimeOfDay | TDAY | MATH_NUMERIC | OPT | NONE |
The computer clock in hours:minutes:seconds. | ||||
cErrorCode | EV01 | char | OPT | NONE |
Parameters
| ||||
szErrorMessageId | DTAI | char | OPT | 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
|
XF41021 Update F41021 Locations |
F41021 Item Location File |