AddConsPostExec(String,Int32,Object,Double,String,String,Int32,DateTime,Int32,Object,String,String,String,Object,String,String,String,String,String,Int32) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddConsPostExec() overload method adds consumption data for the specified job after the job has run on the specified entity passing null to sublot_no.
'Declaration
Public Overloads Shared Sub AddConsPostExec( _
ByVal userID As String, _
ByVal entID As Integer, _
ByVal bomPos As Object, _
ByVal qty As Double, _
ByVal woID As String, _
ByVal operID As String, _
ByVal seqNo As Integer, _
ByVal shiftStart As Date, _
ByVal shiftID As Integer, _
ByVal reasCd As Object, _
ByVal itemID As String, _
ByVal lotNo As String, _
ByVal fgLotNo As String, _
ByVal fromEntID As Object, _
ByVal extRef As String, _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal rowID As Integer _
)
public static void AddConsPostExec(
string userID,
int entID,
object bomPos,
double qty,
string woID,
string operID,
int seqNo,
DateTime shiftStart,
int shiftID,
object reasCd,
string itemID,
string lotNo,
string fgLotNo,
object fromEntID,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4,
int rowID
)
Parameters
- userID
- Required. Holds the ID of the user to whom to attribute the consumption.
- entID
- Required. Holds the ID of the entity on which the job ran.
- bomPos
- Optional. Holds the BOM position of the item.
- qty
- Required. Holds the consumption quantity being added.
- woID
- Required. Holds the ID of the work order.
- operID
- Required. Holds the ID of the operation.
- seqNo
- Required. Holds the sequence number of the operation.
- shiftStart
- Required. Holds the start of the shift during which the consumption occurred.
- shiftID
- Required. Holds the ID of the shift during which the consumption occurred.
- reasCd
- Optional. Holds the reason code of the item being consumed. Set to null if not used.
- itemID
- Optional. Holds the ID of the item being consumed. Set to null if not used.
- lotNo
- Optional. Holds the lot number for the quantity consumed. Set to null if not used.
- fgLotNo
- Optional. Holds the lot number for the finished good. Set to null if not used.
- fromEntID
- Optional. Holds the ID of the storage entity from which the quantity was consumed. Set to null if not used.
- extRef
- Optional. Holds the external reference. Set to null if not used.
- spare1
- Optional. Holds a value for spare1. Set to null if not used.
- spare2
- Optional. Holds a value for spare2. Set to null if not used.
- spare3
- Optional. Holds a value for spare3. Set to null if not used.
- spare4
- Optional. Holds a value for spare4. Set to null if not used.
- rowID
- Optional. Holds the value for row_id. Set to -1 if not used.