ItemConsSplit Method
- Last UpdatedNov 06, 2025
- 2 minute read
The ItemConsSplit() method splits the specified amount of consumption off the specified row in the Item_Cons table and reallocates it to a new job if one is specified. This might result in a new row, or it might result in the increase of consumption quantity in another row.
'Declaration
Public Shared Sub ItemConsSplit( _
ByVal oldRowID As Long, _
ByVal splitQtyCons As Double, _
ByVal newWOID As String, _
ByVal newOperID As String, _
ByVal newSeqNo As Object, _
ByVal newShiftStart As Object, _
ByVal newItemID As String, _
ByVal newLotNo As String, _
ByVal newFGLotNo As String, _
ByVal newReasCd As Object, _
ByVal newUserID As String, _
ByVal newEntID As Object, _
ByVal newShiftID As Object, _
ByVal newFromEntID As Object, _
ByVal splitQtyConsERP As Object _
)
public static void ItemConsSplit(
long oldRowID,
double splitQtyCons,
string newWOID,
string newOperID,
object newSeqNo,
object newShiftStart,
string newItemID,
string newLotNo,
string newFGLotNo,
object newReasCd,
string newUserID,
object newEntID,
object newShiftID,
object newFromEntID,
object splitQtyConsERP
)
Parameters
- oldRowID
- Required. Holds the row ID of the old job.
- splitQtyCons
- Required. Holds the amount of consumption to split off the quantity of the row.
- newWOID
- Optional. Holds the work order ID of the new job to which the consumption amount is being split. Set to null if not used.
- newOperID
- Optional. Holds the operation ID of the new job to which the consumption amount is being split. Set to null if not used.
- newSeqNo
- Optional. Holds the operation sequence number of the new job to which the consumption amount is being split. Set to null if not used.
- newShiftStart
- Optional. Holds a new shift start time for the item_cons record created from the split. Set to null if not used.
- newItemID
- Optional. Holds an item ID for the new item_cons record created from the split. Set to null if not used.
- newLotNo
- Optional. Holds a lot number for the new item_cons record created from the split. Set to null if not used.
- newFGLotNo
- Optional. Holds a finished goods lot number for the new item_cons record created from the split. Set to null if not used.
- newReasCd
- Optional. Holds a reason code for the new item_cons record created from the split. Set to null if not used.
- newUserID
- Optional. Holds a user ID for the new item_cons record created from the split. Set to null if not used.
- newEntID
- Optional. Holds an entity ID on which the split occurred. Set to null if not used.
- newShiftID
- Optional. Holds a shift ID for the new item_cons record created from the split. Set to null if not used.
- newFromEntID
- Optional. Holds a storage entity ID for the new item_cons record created from the split. Set to null if not used.
- splitQtyConsERP
- Optional. Holds the amount of split quantity reported to ERP.