Functional Description
Purpose
Use this function to update the inventory commitment quantities of a sales order to the Item Location
Table (F41021). This function will process soft, hard, future, other quantity 1 and other quantity 2
commitments.
Setup Notes and Prerequisites
This function is designed and written for sales order applications only.
The calling application or function should only call this function if the Inventory Interface (LFIVI
in F40205) of the detail record is 'Y' and the item is not a kit parent.
The calling application or function must first retrieve the UOM conversion factors and pass them to
this program to avoid unnecessary I/O's.
If the Location parameter is passed, it must be in data base format.
'b7'b7'b7
Special Logic
None.
Technical Specification
2.2Related Tables
Table Table Description
F41021Item Location
F4102Item Branch
2.3Related Business Functions
Source NameFunction Name
B9800100Get Audit Information
2.4Processing
1.If CONV-parm == 0, CONV-parm = 1;// Initialize to 1 if conversion factor is zero.
2.Calculate the shipping and backorder quantity in primary unit of measure by mulitpying
SOQS-parm and SOBK-parm against the Transaction To Primary Conversion Factor (CONV-parm). Store the results
in different work fields.
i.e.,Backorder Quantity in Primary = SOBK-parm * CONV-parm;
Shipping Quantity in Primary = SOQS-parm * CONV-parm;
// If soft commiting, all commitments should be updated to the primary bin. If hard commiting, all
// commitments should be updated to the specific location/lot.
3.
a) If soft Commitment (COMM-parm=='S'), Fetch ITM, MCU, LOCN, LOTN, PBIN, PBCK, PCOM, HCOM, FCOM,
OT1P, OT2P, TDAY, USER, PID and JOBN from F41021 using ITM, MCU and Primary Bin (PBIN = P).
b) If Hard Commitment (COMM-parm =='H' or 'C'), Fetch the same fields using ITM, MCU, LOCN and
LOTN
c) If Reverse Commitment (EV02-parm) == '1', subtract the quantities
else add the quantities following the criteria given below.
d) if SOBK-parm != 0
Add/Subtract SOBK-parm to/from PBCK-F41021
e) if OTQY-parm == ' '
If future Committing (EV01-parm =='1')
Add/Subtract SOQS-parm+SOBK-parm to/from FCOM-F41021
else
if soft commitment (COMM-parm) =='S'
Add/Subtract SOQS-parm+SOBK-parm to/from PCOM-F41021
else
Add/Subtract SOQS-parm+SOBK-parm to/from HCOM-F41021
else
If OTQY-parm == '1'
Add/Subtract SOQS-parm+SOBK-parm to/from OT1P-F41021
else
Add/Subtract SOQS-parm+SOBK-parm to/from OT2P-F41021
f) Update Audit Information (USER,JOBN,PID and TDAY) and Update F41021 the columns using
ITM,MCU,LOCN and LOTN (the Primary Unique Key for F41021)
4.Store the values of ITM, MCU, PBIN, LOCN, LOTN, PBCK ,PCOM, HCOM, OT1P, OT2P in the cache using
ITM, MCU, PBIN,LOCN and LOTN as the Index. Insert or Update the cache records' appropriate quantity
fields with the quantities that are sent in.
5. If EV04-parm !='1'
update the MRP flag to 1 in F4102 using ITM and MCU as key. Also, update the AuditInfo of
F4102
D4200370 - CommitSalesOrderToInventory
Special Input Expected
ITMItem Number
MCUBranch/Plant
LOCNLocationRequired if hard commitment
LOTNLot NumberRequired if hard commitment
SOQSShipping QuantityEither SOQS or SOBK must not
be zero.
SOBKBackorder QuantityEither SOQS or SOBK must not
be zero.
CONVTransToPrimConvFactorTransaction to primary UOM
Conversion.
COMMCommitment Flag'S' = Commit to PCOM in primary loc;
'H' or 'C' = Commit to HCOM in
specific location.
OTQYOther Quantity 1 or 2'1' = Commit to OT1P in F41021;
'2' = Commit to OT2P in F41021.
EV01Future CommitmentIf '1', commit to FCOM in F41021
EV02Reverse CommitmentIf '1', reverse commitment.
PIDProgram ID
EV03Suppress Error Message
DTA1Error Message
EV04SuppressUpdateMRPFlag' ' - Update MRP flag of F4102
'1' - Do NOT update MRP flag of F4102
(Added 8/7/96)
Special Output Returned
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnItemNumber | 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. | ||||
mnShippingQuantity | SOQS | MATH_NUMERIC | NONE | NONE |
The number of units committed for shipment in Sales Order Entry, using either the entered or the primary unit of measure defined for this
| ||||
mnBackorderQuantity | SOBK | MATH_NUMERIC | NONE | NONE |
The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of
| ||||
mnTransToPrimConvFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
cCommitmentFlag | COMM | char | NONE | NONE |
Special Input Expected
| ||||
cOtherQuantity12 | OTQY | char | NONE | NONE |
Special Input Expected
| ||||
cFutureCommitment | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
cReverseCommitment | EV02 | char | NONE | NONE |
Special Input Expected
| ||||
szProgramId | PID | char | NONE | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cSuppressErrorMessage | EV03 | char | NONE | NONE |
A radio button that specifies the level at which trace/track result is to be displayed. Select the Detail to display all transactions except IB, IX,
| ||||
szErrorMessage | DTAI | char | NONE | 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
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cSuppressUpdateMRPFlag | EV04 | char | NONE | NONE |
Special Input Expected
| ||||
cUseCacheFlag | EV05 | char | NONE | NONE |
A flag that indicates whether automatic spell check is turned on. | ||||
mnJobNo | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szUserID | USER | char | NONE | NONE |
The code that identifies a user profile. | ||||
szWorkStationID | JOBN | char | NONE | NONE |
The code that identifies the work station ID that executed a particular job. | ||||
mnTimeOfDay | TDAY | MATH_NUMERIC | NONE | NONE |
The computer clock in hours:minutes:seconds. | ||||
jdDate | UPMJ | JDEDATE | NONE | NONE |
The date that specifies the last update to the file record. | ||||
cDualPickingProcessOption | DPPO | char | OPT | NONE |
An option that determines for a dual unit of measure item whether the system uses the primary or secondary unit of measure for the following
| ||||
cDualUnitOfMeasureItem | DUAL | char | OPT | NONE |
An option that indicates that the system must maintain inventory balances and record transactions for an item in a secondary unit of
| ||||
mnDualQuantity | DQTY | MATH_NUMERIC | OPT | NONE |
The number of units (for the unit of measure) that is not contained in the unit of measure structure. For dual units of measure, the system
| ||||
mnInputSecondToItemMasSecond | CONV | MATH_NUMERIC | OPT | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
mnTransToSecondConvFactor | CONV | MATH_NUMERIC | OPT | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
szComputerID | CTID | char | OPT | NONE |
cTransactionRelatedProcess | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
B4000930 Update F4102 MRP Net Chg | ||||
B9800100 Get Audit Information | ||||
XF41021 Update F41021 Locations |
F4102 Item Branch File | ||||
F41021 Item Location File |