AddProd(Double,Object,String,String,Object,Object,String,String,String,String,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The AddProd() method adds production to the job running on the current job position. This overload of the method allows you to specify values for the production parameters.
'Declaration
Public Overloads Sub AddProd( _
ByVal qty As Double, _
ByVal reasCd As Object, _
ByVal itemID As String, _
ByVal lotNo As String, _
ByVal toEntID As Object, _
ByVal byProductBOMPos As Object, _
ByVal extRef As String, _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String _
)
public void AddProd(
double qty,
object reasCd,
string itemID,
string lotNo,
object toEntID,
object byProductBOMPos,
string extRef,
string spare1,
string spare2,
string spare3,
string spare4
)
Parameters
- qty
- Required. Holds the quantity being produced.
- reasCd
- Optional. Holds the reason code of the item being produced. Set to null to use the default value.
- itemID
- Optional. Holds the ID of the item that is being produced. Set to null to use the default value.
- lotNo
- Optional. Holds the lot number of the item being consumed. Set to null to use the default value.
- toEntID
- Optional. Holds the ID of the entity (location) at which the produced item will be stored. Set to null to use the default value.
- byProductBOMPos
- Optional. Holds the BOM position if a by-product is being produced. Set to null if the main item is being produced.
- extRef
- Optional. Holds the external reference. Set to null to use the default value.
- spare1
- Optional. Holds the spare 1 value. Set to null to use the default value.
- spare2
- Optional. Holds the spare 2 value. Set to null to use the default value.
- spare3
- Optional. Holds the spare 3 value. Set to null to use the default value.
- spare4
- Optional. Holds the spare 4 value. Set to null to use the default value.