R_PlannedOrderCapacityTP
RAP BO Planned Order Capacity view
R_PlannedOrderCapacityTP is a Transactional CDS View that provides data about "RAP BO Planned Order Capacity view" in SAP S/4HANA. It reads from 1 data source (I_CapacityRequirementItemCap) and exposes 35 fields with key fields PlannedOrder, CapacityRequirement, CapacityRequirementItem, CapacityRqmtItemCapacity.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CapacityRequirementItemCap | _CapacityRequirementItemCap | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | RAP BO Planned Order Capacity view | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PlannedOrder | I_CapacityRequirementItemCap | PlannedOrder | |
| KEY | CapacityRequirement | I_CapacityRequirementItemCap | CapacityRequirement | |
| KEY | CapacityRequirementItem | I_CapacityRequirementItemCap | CapacityRequirementItem | |
| KEY | CapacityRqmtItemCapacity | I_CapacityRequirementItemCap | CapacityRqmtItemCapacity | |
| Sequence | I_CapacityRequirementItemCap | BillOfOperationsSequence | ||
| Operation | ||||
| WorkCenter | ||||
| OperationLatestStartDate | I_CapacityRequirementItemCap | OperationLatestStartDate | ||
| OperationLatestStartTime | I_CapacityRequirementItemCap | OperationLatestStartTime | ||
| OperationLatestEndDate | I_CapacityRequirementItemCap | OperationLatestEndDate | ||
| OperationLatestEndTime | I_CapacityRequirementItemCap | OperationLatestEndTime | ||
| OperationEarliestStartDate | I_CapacityRequirementItemCap | OperationEarliestStartDate | ||
| OperationEarliestStartTime | I_CapacityRequirementItemCap | OperationEarliestStartTime | ||
| OperationEarliestEndDate | I_CapacityRequirementItemCap | OperationEarliestEndDate | ||
| OperationEarliestEndTime | I_CapacityRequirementItemCap | OperationEarliestEndTime | ||
| OpLtstSchedldProcgStrtDte | I_CapacityRequirementItemCap | LtstSchedldProcStrtDte | ||
| OpLtstSchedldProcgStrtTme | I_CapacityRequirementItemCap | LtstSchedldProcStrtTime | ||
| OpLtstSchedldTrdwnStrtDte | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtTime | ||
| CapacityRequirementUnit | I_CapacityRequirementItemCap | CapacityRequirementUnit | ||
| ScheduledCapReqOpSegSetupDurn | I_CapacityRequirementItemCap | ScheduledCapReqOpSegSetupDurn | ||
| RemainingCapReqOpSegSetupDurn | I_CapacityRequirementItemCap | RemainingCapReqOpSegSetupDurn | ||
| ScheduledCapReqOpSegProcgDurn | I_CapacityRequirementItemCap | ScheduledCapReqOpSegProcgDurn | ||
| RemainingCapReqOpSegProcgDurn | I_CapacityRequirementItemCap | RemainingCapReqOpSegProcgDurn | ||
| ScheduledCapReqOpSegTrdwnDurn | I_CapacityRequirementItemCap | ScheduledCapReqOpSegTrdwnDurn | ||
| RemainingCapReqOpSegTrdwnDurn | I_CapacityRequirementItemCap | RemainingCapReqOpSegTrdwnDurn | ||
| OperationTextendasOperationText | ||||
| PlannedOrderLastChangeDateTime | _PlannedOrder | PlannedOrderLastChangeDateTime | ||
| MRPController | ||||
| MRPPlant | ||||
| CapacityInternalID | I_CapacityRequirementItemCap | CapacityInternalID | ||
| _PlannedOrder | _PlannedOrder | |||
| _Capacity | I_CapacityRequirementItemCap | _Capacity | ||
| _CapacityRequirement | I_CapacityRequirementItemCap | _CapacityRequirement | ||
| _UnitOfMeasure | I_CapacityRequirementItemCap | _UnitOfMeasure |
@EndUserText.label: 'RAP BO Planned Order Capacity view'
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED }
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
define view entity R_PlannedOrderCapacityTP
as select from I_CapacityRequirementItemCap as _CapacityRequirementItemCap
// ATC - to one or many not specified
left outer to one join I_BillOfOperationsOpBasic as SubOperation on SubOperation.BillOfOperationsType = _CapacityRequirementItemCap.BillOfOperationsType
and SubOperation.BillOfOperationsGroup = _CapacityRequirementItemCap.BillOfOperationsGroup
and SubOperation.BOOOperationInternalID = _CapacityRequirementItemCap.BOOSubOperationInternalID //SubOperation
and SubOperation.BOOOpInternalVersionCounter = _CapacityRequirementItemCap.BOOSubOperationInternalVersion //SubOperation
association to parent R_PlannedOrderTP as _PlannedOrder on $projection.PlannedOrder = _PlannedOrder.PlannedOrder
{
key _CapacityRequirementItemCap.PlannedOrder,
key _CapacityRequirementItemCap.CapacityRequirement,
key _CapacityRequirementItemCap.CapacityRequirementItem,
key _CapacityRequirementItemCap.CapacityRqmtItemCapacity,
// Basic information
_CapacityRequirementItemCap.BillOfOperationsSequence as Sequence,
cast(_CapacityRequirementItemCap.Operation as pph_vornr preserving type ) as Operation,
cast(
case
when SubOperation.SuperiorOperationInternalID > '00000000' then SubOperation.Operation
else ''
end as pph_vornr preserving type) as SubOperation,
_CapacityRequirementItemCap._WorkCenter.WorkCenter,
// Dates/Times
_CapacityRequirementItemCap.OperationLatestStartDate,
//as PlndOrdOpSchedldStartDate,
_CapacityRequirementItemCap.OperationLatestStartTime,
// as PlndOrdOpSchedldStartTime,
_CapacityRequirementItemCap.OperationLatestEndDate,
// as PlndOrdOpSchedldEndDate,
_CapacityRequirementItemCap.OperationLatestEndTime,
// as PlndOrdOpSchedldEndTime,
_CapacityRequirementItemCap.OperationEarliestStartDate,
_CapacityRequirementItemCap.OperationEarliestStartTime,
_CapacityRequirementItemCap.OperationEarliestEndDate,
_CapacityRequirementItemCap.OperationEarliestEndTime,
// New Fields for Operations
_CapacityRequirementItemCap.LtstSchedldProcStrtDte as OpLtstSchedldProcgStrtDte,
_CapacityRequirementItemCap.LtstSchedldProcStrtTime as OpLtstSchedldProcgStrtTme,
_CapacityRequirementItemCap.LtstSchedldTrdwnStrtDte as OpLtstSchedldTrdwnStrtDte,
_CapacityRequirementItemCap.LtstSchedldTrdwnStrtTime as OpLtstSchedldTrdwnStrtTme,
// Capacity durations
_CapacityRequirementItemCap.CapacityRequirementUnit,
_CapacityRequirementItemCap.ScheduledCapReqOpSegSetupDurn,
_CapacityRequirementItemCap.RemainingCapReqOpSegSetupDurn,
_CapacityRequirementItemCap.ScheduledCapReqOpSegProcgDurn,
_CapacityRequirementItemCap.RemainingCapReqOpSegProcgDurn,
_CapacityRequirementItemCap.ScheduledCapReqOpSegTrdwnDurn,
_CapacityRequirementItemCap.RemainingCapReqOpSegTrdwnDurn,
// case expressions are not supported in the projection layer
cast(case
when _CapacityRequirementItemCap._WorkCenter.CapacityInternalID = _CapacityRequirementItemCap.CapacityInternalID
then 'X'
else ''
end as pp_wrkcntr_cap_isleading) as WrkCtrHasLeadingCapacity,
// Texts
case
when SubOperation.SuperiorOperationInternalID > '00000000'
then SubOperation.OperationText
else _CapacityRequirementItemCap._BOOOperationInternalVersion.OperationText
end as OperationText,
// @Semantics.systemDateTime.lastChangedAt: true
_PlannedOrder.PlannedOrderLastChangeDateTime,
//Fields required for DCL
_CapacityRequirementItemCap._PlannedOrder.MRPController,
_CapacityRequirementItemCap._PlannedOrder.MRPPlant,
//for the association _Capacity
_CapacityRequirementItemCap.CapacityInternalID,
_PlannedOrder,
_CapacityRequirementItemCap._Capacity,
_CapacityRequirementItemCap._CapacityRequirement,
_CapacityRequirementItemCap._UnitOfMeasure
}
where
_CapacityRequirementItemCap.PlannedOrder is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLOFOPERATIONSOPBASIC",
"I_CAPACITYREQUIREMENTITEMCAP",
"I_PLANNEDORDER",
"I_WORKCENTER",
"R_PLANNEDORDERTP"
],
"ASSOCIATED":
[
"I_CAPACITY",
"I_CAPACITYREQUIREMENT",
"I_UNITOFMEASURE",
"R_PLANNEDORDERTP"
],
"BASE":
[
"I_CAPACITYREQUIREMENTITEMCAP"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA