Table
WHSProductionScrapHistory
Production scrap
Holds a history of scrapped quantities for production. The key is the journal, production order and item. It links to the production order and the item.
- Table name
WHSProductionScrapHistory- Module
Inventory- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
ProdJournalItemIdx- Replacement key
ProdJournalItemIdx- Key fields
JournalId, ProdId, ItemId- Model
Foundation
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
JournalIdJournal linked to the scrap record. | String (20)JournalId | Yes | None | |
ProdIdProduction order the scrap is for. Points to a production order. | String (20)ProdId | Yes | ProdTable.ProdId | None |
ItemIdItem that was scrapped. Points to an item. | String (20)ItemId | Yes | InventTable.ItemId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyScrappedQuantity that was scrapped. | RealWHSQtyScrapped | 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 | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
Relations (2)
Each relation joins WHSProductionScrapHistory to another table on the fields shown.
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdOne or more WHSProductionScrapHistory records → exactly one InventTable record
ProdTable→ProdTableJoin on
ProdId = ProdTable.ProdIdOne or more WHSProductionScrapHistory records → exactly one ProdTable record
Get this data out
No public entity reads from WHSProductionScrapHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with WHSProductionScrapHistory in a report, an integration or a migration? Talk to Dr Dynamics.