Update Method (BomItemOperLink)
- Last UpdatedNov 06, 2025
- 4 minute read
The Update() method updates all columns of the specified BOM item/operation link record in the Bom_Item_Oper_Link table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal parentItemId As String, _
ByVal verId As String, _
ByVal bomPos As Integer, _
ByVal processId As String, _
ByVal operId As String, _
ByVal qtyPerParentItem As Double, _
ByVal reqdStartPct As Double, _
ByVal defReasCd As DBInt, _
ByVal defLotNo As DBString, _
ByVal defSubLotNo As DBString, _
ByVal defStorageEntId As DBInt, _
ByVal defRejectEntId As DBInt, _
ByVal updateInv As Boolean, _
ByVal backflush As Boolean, _
ByVal mustConsumeFromInv As Boolean, _
ByVal mayChooseAltInvLoc As Boolean, _
ByVal mayCreateNewLots As Boolean, _
ByVal mustConsumeFromWip As Boolean, _
ByVal mustConsumeBeforeProd As Boolean, _
ByVal constantQty As Boolean, _
ByVal lastEditComment As DBString, _
ByRef modId As String _
)
'Usage
Dim sessionId As Integer
Dim parentItemId As String
Dim verId As String
Dim bomPos As Integer
Dim processId As String
Dim operId As String
Dim qtyPerParentItem As Double
Dim reqdStartPct As Double
Dim defReasCd As DBInt
Dim defLotNo As DBString
Dim defSubLotNo As DBString
Dim defStorageEntId As DBInt
Dim defRejectEntId As DBInt
Dim updateInv As Boolean
Dim backflush As Boolean
Dim mustConsumeFromInv As Boolean
Dim mayChooseAltInvLoc As Boolean
Dim mayCreateNewLots As Boolean
Dim mustConsumeFromWip As Boolean
Dim mustConsumeBeforeProd As Boolean
Dim constantQty As Boolean
Dim lastEditComment As DBString
Dim modId As String
BomItemOperLink.Update(sessionId, parentItemId, verId, bomPos, processId, operId, qtyPerParentItem, reqdStartPct, defReasCd, defLotNo, defSubLotNo, defStorageEntId, defRejectEntId, updateInv, backflush, mustConsumeFromInv, mayChooseAltInvLoc, mayCreateNewLots, mustConsumeFromWip, mustConsumeBeforeProd, constantQty, lastEditComment, modId)
public static void Update(
int sessionId,
string parentItemId,
string verId,
int bomPos,
string processId,
string operId,
double qtyPerParentItem,
double reqdStartPct,
DBInt defReasCd,
DBString defLotNo,
DBString defSubLotNo,
DBInt defStorageEntId,
DBInt defRejectEntId,
bool updateInv,
bool backflush,
bool mustConsumeFromInv,
bool mayChooseAltInvLoc,
bool mayCreateNewLots,
bool mustConsumeFromWip,
bool mustConsumeBeforeProd,
bool constantQty,
DBString lastEditComment,
ref string modId
)
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this method call.
- parentItemId
- Required. Holds the ID of the parent item whose link record is being updated.
- verId
- Required. Holds the ID of the BOM version.
- bomPos
Required. Holds the BOM position. The BOM position is not necessarily in a sequence.
- processId
- Required. Holds the ID of the process to which the operation belongs.
- operId
- Required. Holds the ID of the operation whose link record is being updated.
- qtyPerParentItem
Required. Holds the item quantity per parent item for the current operation. For by-products, this value is less than zero.
- reqdStartPct
Optional. Holds the percentage of this component (or, if the BOM position is zero, of the input quantity of the item itself) that is required before the operation becomes ready. The default is 0.
- defReasCd
Optional. Holds the default consumption or production code for an item. If null, it defaults to the value specified in the BOM_Item table.
- defLotNo
- Required. Holds the default lot number of this item. If null, it defaults to the lot specified in the BOM_Item table.
- defSubLotNo
- Required. Holds the default sublot number of this item. If null, defaults to the sublot specified in the BOM_Item table.
- defStorageEntId
- Required. Holds the ID of the default storage entity of a product or by-product. If null, defaults to the default storage entity specified in the BOM_Item table.
- defRejectEntId
Required. Holds the ID of the default storage entity for the rejected production items. If null, the def_storage_ent_id is used.
- updateInv
Required. Holds a flag that, if set to true, specifies that the inventory table is updated with consumed items. The default is false.
- backflush
- Required. Holds a flag that, if set to true, specifies that consumption is backflushed. The default is false.
- mustConsumeFromInv
- Required. Holds a flag that, if set to true, specifies that consumption must occur from the inventory for this item. The default is false.
- mayChooseAltInvLoc
- Required. Holds a flag that, if set to true, specifies that a user can select alternate inventory locations when consuming or producing this item. The default is true.
- mayCreateNewLots
Required. Holds a flag that, if set to true, specifies that a user can select alternate inventory locations when consuming or producing this item. The default is true. This parameter is relevant only if the items are not consumed from the inventory.
- mustConsumeFromWip
Required. Holds a flag that, if set to true, specifies that the lots consumed during a job are limited to the lots produced to the Item_Inv table for the same work order in an upstream job. The default is false.
- mustConsumeBeforeProd
Required. Holds a flag that, if set to true, specifies that the production transactions are prevented until 'acceptable' quantities of BOM components are consumed, as specified in the maxQtyPerParentItem and minQtyPerParentItem parameters. The default is false.
- constantQty
Required. Holds a flag that, if set to true, specifies that the quantity of a consumed item is independent of the quantity of a parent item that is produced. The default is false.
- lastEditComment
Required. Holds comments that describe why this record is being updated.
- modId
Required. Holds the modification ID assigned the last time this record was added or last updated, for optimistic concurrency control. The passed value must match the record's modId for the record to be updated.
Output. Holds the new modification ID to identify this update of this record.