Table
PmfCoByProdCalcTrans
Calculation
Stores cost calculation lines for production orders that have co-products and by-products. Each line is keyed by a reference production order, a level and a line number. It records the calculation type, quantities, cost and sales amounts, cost group, resource and reference details.
- Table name
PmfCoByProdCalcTrans- Module
Production control- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
PMF- Primary index
RefNumIdx- Replacement key
None- Key fields
CollectRefProdId, CollectRefLevel, LineNum, RecId- Model
Foundation
Fields (48)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CollectRefProdIdPoints to the reference production order. | String (20)ProdCollectRefProdId | Yes | ProdTable.ProdId | None |
CollectRefLevelLevel of the reference production in the collection. | IntegerProdCollectRefLevel | No | None | |
LineNumLine number; part of the key. | RealLineNum | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
BOMYes/no option for BOM consumption in the calculation. | EnumBOMCalcBOMConsumptionNoYes (enum) | No | None | |
CalcGroupIdPoints to the calculation group. | StringBOMCalcGroupId | No | BOMCalcGroup.CalcGroupId | None |
CalcTypeType of calculation line, such as Production, Item, BOM, Service, Setup or Process. | EnumItemCalcType (enum) | No | None | |
ConsumpConstantConstant consumption quantity. | RealCostQuantity | No | None | |
ConsumpTypeShows whether consumption is Variable or Constant. | EnumBOMConsumpType (enum) | No | None | |
ConsumpVariableVariable consumption quantity. | RealCostQuantity | No | None | |
CostAmountCost amount, in accounting currency. | RealAmountMST | No | None | |
CostGroupIdPoints to the cost group. | StringCostGroupId | No | BOMCostGroup.CostGroupId | None |
CostMarkupCharges added to the cost amount. | RealBOMCalcCostMarkup | No | None | |
CostPriceModelUsedCost price model used, such as Item cost price, Trade agreement or None. | EnumBOMCalcCostPriceUsed (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DerivedReferenceType of the related reference, such as Sales order, Purchase order or Production. | EnumInventRefType (enum) | No | None | |
DerivedRefNumNumber of the related reference. | String (20)InventRefId | No | None | |
IdRefRecIdSystem record ID of the referenced record; the table is given by the reference table ID. | Int64RefRecId | Yes | None | |
IdRefTableIdID of the table that the reference record belongs to. | IntegerRefTableId | Yes | None | |
InventDimIdPoints to the inventory dimensions. | String (20)InventDimId | No | InventDim.inventDimId | None |
InventDimStrInventory dimensions shown as text. | String (20)BOMCalcInventDimStr | No | None | |
NumOfSeriesNumber of series, as a quantity. | RealInventQty | No | None | |
OprIdPoints to the operation. | StringRouteOprId | No | RouteOprTable.OprId | None |
OprNumOperation number. | IntegerOprNum | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PmfCostAllocationMethod for co-product cost allocation: None, Manual or TCA. | EnumPmfCostAllocationMethod (enum) | No | None | |
PmfCostAllocationPctPercentage of cost allocated. | RealPmfCostAllocationPct | No | None | |
PmfIdRefCoByRecIdPoints to the co-product or by-product record on the production order. | Int64PmfIdRefCoByRecId | No | PmfProdCoBy.RecId | None |
PmfOverheadPctBurden percentage for the by-product. | RealPmfOverheadPct | No | None | |
PriceDiscQtyQuantity used for price and discount. | RealBOMCalcPriceDiscQty | No | None | |
ProductionYes/no option for production.low confidence | EnumNoYes (enum) | No | None | |
QtyQuantity on the line. | RealInventQty | No | None | |
RealConsumpConsumption quantity recorded. | RealCostQuantity | No | None | |
RealCostAdjustmentAdjustment to the actual cost. | RealCostAmountNonMonetary | No | None | |
RealCostAmountActual cost amount. | RealCostAmountNonMonetary | No | None | |
RealQtyActual quantity produced. | RealProdQty | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ResourceItem or resource code for the line. | String (30)BOMCalcResource | No | InventTable.ItemIdWrkCtrTable.WrkCtrId | None |
SalesAmountSales amount, in accounting currency. | RealAmountMST | No | None | |
SalesMarkupCharges added to the sales amount. | RealBOMCalcSalesMarkup | No | None | |
SalesPriceModelUsedSales price model used: None, Cost group or Item sales price. | EnumBOMCalcSalesPriceUsed (enum) | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransDateDate of the transaction. | DateTransDate | No | None | |
TransRefIdReference number of the cost transaction, such as a production order ID. | String (35)CostTransRefId | No | ProdTable.ProdId | None |
TransRefTypeType of the reference: Production order, Production flow, Lot ID or Backflush costing calculation. | EnumProdTransRefType (enum) | No | None | |
UnitIdPoints to the unit of measure. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | None |
VendIdPoints to the vendor account. | String (20)VendAccount | No | VendTable.AccountNum | None |
Indexes (4)
RefNumIdxPrimary indexCollectRefProdId,CollectRefLevel,LineNum,RecIdUnique.
IdRefIdxIdRefTableId,IdRefRecId,PmfIdRefCoByRecId,CalcType,RecIdUnique.
ProdCollectIdxTransRefType,TransRefId,CollectRefLevel,Production,RecIdUnique.
PmfIdRefCoByRecIdPmfIdRefCoByRecId,DataAreaId,PartitionNot unique.
Relations (18)
Each relation joins PmfCoByProdCalcTrans to another table on the fields shown.
BOMCalcGroup→BOMCalcGroupJoin on
CalcGroupId = BOMCalcGroup.CalcGroupIdMany PmfCoByProdCalcTrans records → zero or one BOMCalcGroup record
BOMCostGroup→BOMCostGroupJoin on
CostGroupId = BOMCostGroup.CostGroupIdMany PmfCoByProdCalcTrans records → zero or one BOMCostGroup record
CollectRefProdTable→ProdTableJoin on
CollectRefProdId = ProdTable.ProdIdMany PmfCoByProdCalcTrans records → exactly one ProdTable record
Common→CommonJoin on
IdRefRecId = Common.RecId,IdRefTableId = Common.TableIdMany PmfCoByProdCalcTrans records → exactly one Common record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany PmfCoByProdCalcTrans records → zero or one InventDim record
InventTableBOM→InventTableJoin on
CalcType = ItemCalcType::BOM,Resource = InventTable.ItemIdMany PmfCoByProdCalcTrans records → zero or one InventTable record
InventTableItem→InventTableJoin on
CalcType = ItemCalcType::Item,Resource = InventTable.ItemIdMany PmfCoByProdCalcTrans records → zero or one InventTable record
InventTableProd→InventTableJoin on
CalcType = ItemCalcType::Production,Resource = InventTable.ItemIdMany PmfCoByProdCalcTrans records → zero or one InventTable record
InventTableService→InventTableJoin on
CalcType = ItemCalcType::Service,Resource = InventTable.ItemIdMany PmfCoByProdCalcTrans records → zero or one InventTable record
PmfProdCoByProduct→PmfProdCoByJoin on
PmfIdRefCoByRecId = PmfProdCoBy.RecIdMany PmfCoByProdCalcTrans records → zero or one PmfProdCoBy record
ProdBOM→ProdBOMJoin on
IdRefTableId = ProdBOM.TableId,IdRefRecId = ProdBOM.RecIdMany PmfCoByProdCalcTrans records → zero or one ProdBOM record
ProdTable→ProdTableJoin on
TransRefType = ProdTransRefType::Production,TransRefId = ProdTable.ProdIdMany PmfCoByProdCalcTrans records → zero or one ProdTable record
RouteOprTable→RouteOprTableJoin on
OprId = RouteOprTable.OprIdMany PmfCoByProdCalcTrans records → exactly one RouteOprTable record
Unit→UnitOfMeasureJoin on
UnitId = UnitOfMeasure.SymbolMany PmfCoByProdCalcTrans records → zero or one UnitOfMeasure record
VendTable→VendTableJoin on
VendId = VendTable.AccountNumMany PmfCoByProdCalcTrans records → zero or one VendTable record
WrkCtrTableProcess→WrkCtrTableJoin on
CalcType = ItemCalcType::Process,Resource = WrkCtrTable.WrkCtrIdMany PmfCoByProdCalcTrans records → zero or one WrkCtrTable record
WrkCtrTableQty→WrkCtrTableJoin on
CalcType = ItemCalcType::Qty,Resource = WrkCtrTable.WrkCtrIdMany PmfCoByProdCalcTrans records → zero or one WrkCtrTable record
WrkCtrTableSetup→WrkCtrTableJoin on
CalcType = ItemCalcType::Setup,Resource = WrkCtrTable.WrkCtrIdMany PmfCoByProdCalcTrans records → zero or one WrkCtrTable record
Get this data out
No public entity reads from PmfCoByProdCalcTrans. Its data is only reachable through the application, a custom entity or a database export.
Need help with PmfCoByProdCalcTrans in a report, an integration or a migration? Talk to Dr Dynamics.