P_WrkCtrCapShftDef
P_WrkCtrCapShftDef is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_WorkCenterShiftDefinition) and exposes 10 fields with key fields ShiftDefinition, ShiftGrouping, ShiftEndDate.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_WorkCenterShiftDefinition | P_WorkCenterShiftDefinition | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWCCAPSHFTDEF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ShiftDefinition | ShiftDefinition | ||
| KEY | ShiftGrouping | ShiftGrouping | ||
| KEY | ShiftEndDate | ShiftEndDate | ||
| ShiftEndTime | ShiftEndTime | |||
| CapacityEndTimeID | CapacityEndTimeID | |||
| ShiftStartDate | ShiftStartDate | |||
| ShiftStartTime | ShiftStartTime | |||
| CapacityStartTimeID | CapacityStartTimeID | |||
| OperatingDurationInSeconds | OperatingDurationInSeconds | |||
| ValidityEndDate | ValidityEndDate |
@AbapCatalog.sqlViewName: 'PWCCAPSHFTDEF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.private: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Work Center Capacity Shift Definition'
define view P_WrkCtrCapShftDef
as select from P_WorkCenterShiftDefinition
{
key ShiftDefinition,
key ShiftGrouping,
key ShiftEndDate,
ShiftEndTime,
CapacityEndTimeID,
ShiftStartDate,
ShiftStartTime,
CapacityStartTimeID,
OperatingDurationInSeconds,
ValidityEndDate,
// Calculate Break Duration
case when OperatingDurationInSeconds = 0
then 0
else
case when CapacityStartTimeID < CapacityEndTimeID
then ( CapacityEndTimeID - CapacityStartTimeID - OperatingDurationInSeconds )
else ( CapacityEndTimeID - CapacityStartTimeID + 86400 - OperatingDurationInSeconds ) end end as BreakDurationInSeconds
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_WORKCENTERSHIFTDEFINITION"
],
"ASSOCIATED":
[],
"BASE":
[],
"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