Table

WrkCtrCapRes

Capacity reservations

Holds capacity reservations for resources. Each record reserves time on a resource for a job, with start and end time, date, load and a reference to a production order, planned order, project or maintenance. It can link to a plan version and a property.

Table name
WrkCtrCapRes
Module
Master planning
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
WrkCtr
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (32)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EndTimeScheduled end time of the reservation.Time
SchedToTime
NoWrkCtrOperationsResourceCapacityReservationEntity
IntvMthMonth number used for filtering.Integer
IntvMth
NoNone
IntvQrQuarter number used for filtering.Integer
IntvQr
NoNone
IntvWkWeek number used for filtering.Integer
IntvWk
NoNone
JobIdJob ID or work order the reservation is for.String (20)
ProdJobId
NoEntAssetWorkOrderTable.WorkOrderIdProdRouteJob.JobIdWrkCtrOperationsResourceCapacityReservationEntity
JobTypeType of task, such as setup, process, transport or queue.Enum
RouteJobType (enum)
NoWrkCtrOperationsResourceCapacityReservationEntity
LoadTypeType of capacity load, such as operations scheduled or job scheduled.Enum
WrkCtrCapacityType (enum)
NoWrkCtrOperationsResourceCapacityReservationEntity
LockedShows whether the job is locked.Enum
ProdJobLocked
NoYes (enum)
NoWrkCtrOperationsResourceCapacityReservationEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OprNumOperation number of the route operation.Integer
OprNum
NoProdRoute.OprNumProdRouteJob.OprNumReqRoute.OprNumWrkCtrOperationsResourceCapacityReservationEntity
OprPriorityPriority of the operation, from primary to secondary 9.Enum
RouteOprPriority (enum)
NoProdRoute.OprPriorityReqRoute.OprPriorityWrkCtrOperationsResourceCapacityReservationEntity
OrigJobRecIdRecord ID of the job that originated the reservation.low confidenceInt64
WrkCtrCapResOrigJobId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PlanVersionPlan version the reservation belongs to.Int64
RefRecId
NoReqPlanVersion.RecIdNone
PropertyIdProperty linked to the reservation.String
PropertyId
NoWrkCtrProperty.PropertyIdWrkCtrOperationsResourceCapacityReservationEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoWrkCtrOperationsResourceCapacityReservationEntity
RecordStateState of the record: committed or pending insert.Enum
WrkCtrCapResRecordState (enum)
NoNone
RecordStateSessionIdID of the session that holds the record state.Integer
SessionId
NoNone
RecordStateSessionLoginDateTimeUTC timestamp for the session record state.UtcDateTime
UTCTimestamp
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RefIdNumber of the production order or project the reservation refers to.String (20)
WrkCtrRefId
NoProdTable.ProdIdProjTable.ProjIdWrkCtrOperationsResourceCapacityReservationEntity
RefTypeKind of source the reservation refers to, such as production, planned order, project or maintenance.Enum
WrkCtrCapRefType (enum)
NoWrkCtrOperationsResourceCapacityReservationEntity
StartTimeScheduled start time of the reservation.Time
SchedFromTime
NoWrkCtrOperationsResourceCapacityReservationEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimestampTimestamp number of the capacity reservation.Int64
WrkCtrCapResTimestamp
NoNone
TransDateDate of the reservation.Date
SchedDate
NoWrkCtrOperationsResourceCapacityReservationEntity
WrkCtrIdResource that is reserved.String
WrkCtrIdBase
YesWrkCtrTable.WrkCtrIdNone
WrkCtrLoadPctLoad placed on the resource.Real
WrkCtrLoadPct
NoWrkCtrOperationsResourceCapacityReservationEntity
WrkCtrSecReserved capacity in seconds.Real
CapacitySec
NoWrkCtrOperationsResourceCapacityReservationEntity

Indexes (3)

Relations (14)

Each relation joins WrkCtrCapRes to another table on the fields shown.

  • ProdJob → ProdRouteJob

    Join on JobId = ProdRouteJob.JobId, OprNum = ProdRouteJob.OprNum, RefId = ProdRouteJob.ProdId, RefType = WrkCtrCapRefType::Production, PlanVersion = null

    Many WrkCtrCapRes records → zero or one ProdRouteJob record

  • ProdRoute → ProdRoute

    Join on OprNum = ProdRoute.OprNum, OprPriority = ProdRoute.OprPriority, RefId = ProdRoute.ProdId, RefType = WrkCtrCapRefType::Production, PlanVersion = null

    Many WrkCtrCapRes records → zero or one ProdRoute record

  • ProdRouteJob → ProdRouteJob

    Join on JobId = ProdRouteJob.JobId

    Many WrkCtrCapRes records → zero or one ProdRouteJob record

  • Production → ProdTable

    Join on RefId = ProdTable.ProdId, RefType = WrkCtrCapRefType::Production, PlanVersion = null

    Many WrkCtrCapRes records → zero or one ProdTable record

  • ProjTable → ProjTable

    Join on RefType = WrkCtrCapRefType::Project, RefId = ProjTable.ProjId

    Many WrkCtrCapRes records → zero or one ProjTable record

  • ReqPlanVersion → ReqPlanVersion

    Join on PlanVersion = ReqPlanVersion.RecId

    Many WrkCtrCapRes records → zero or one ReqPlanVersion record

  • ReqRoute → ReqRoute

    Join on RefType = WrkCtrCapRefType::PlannedOrder, OprPriority = ReqRoute.OprPriority, OprNum = ReqRoute.OprNum, RefId = ReqRoute.RefId, PlanVersion = ReqRoute.PlanVersion

    Many WrkCtrCapRes records → zero or one ReqRoute record

  • ReqRouteJob → ReqRouteJob

    Join on RefType = WrkCtrCapRefType::PlannedOrder, PlanVersion = ReqRouteJob.PlanVersion, OprPriority = ReqRouteJob.OprPriority, OprNum = ReqRouteJob.OprNum, RefId = ReqRouteJob.ReqPOId

    Many WrkCtrCapRes records → zero or one ReqRouteJob record

  • WrkCtr → WrkCtrTable

    Join on WrkCtrId = WrkCtrTable.WrkCtrId

    Many WrkCtrCapRes records → exactly one WrkCtrTable record

  • WrkCtrCapResProperty → WrkCtrCapResProperty

    Join on RecId = WrkCtrCapResProperty.CapResRefRecId

    Many WrkCtrCapRes records → zero or one WrkCtrCapResProperty record

  • WrkCtrProperty → WrkCtrProperty

    Join on PropertyId = WrkCtrProperty.PropertyId

    Many WrkCtrCapRes records → zero or one WrkCtrProperty record

  • ReqPO → ReqPO

    Join on RefId = ReqPO.RefId, RefType = WrkCtrCapRefType::PlannedOrder, PlanVersion = ReqPO.PlanVersion

    Many WrkCtrCapRes records → zero or one ReqPO record

  • EntAssetWorkOrderLine → EntAssetWorkOrderLine

    Join on RefId = EntAssetWorkOrderLine.ProjActivity, RefType = WrkCtrCapRefType::Maintenance

    Many WrkCtrCapRes records → zero or one EntAssetWorkOrderLine record

  • EntAssetWorkOrderTable → EntAssetWorkOrderTable

    Join on JobId = EntAssetWorkOrderTable.WorkOrderId, RefType = WrkCtrCapRefType::Maintenance

    Many WrkCtrCapRes records → zero or one EntAssetWorkOrderTable record

Get this data out

Tables are not exposed directly. These public entities read from WrkCtrCapRes; use one of them in Power BI, Power Platform or a data management project.

Need help with WrkCtrCapRes in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk