P_RSHWCCapaHeaderAndInterval
The view lists all the intervals
P_RSHWCCapaHeaderAndInterval is a Consumption CDS View that provides data about "The view lists all the intervals" in SAP S/4HANA. It reads from 1 data source (P_RSHWCHeaderCapacity) and exposes 25 fields with key fields CapacityInternalID, ValidityEndDate.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_RSHWCHeaderCapacity | header | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRSHWCINT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | The view lists all the intervals | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CapacityInternalID | P_RSHWCHeaderCapacity | CapacityInternalID | Capacity ID |
| KEY | ValidityEndDate | |||
| HeaderValidityBeginDate | P_RSHWCHeaderCapacity | ValidityBeginDate | ||
| HeaderValidityEndDate | P_RSHWCHeaderCapacity | ValidityEndDate | ValidTo | |
| IntervalValidityEndDate | interval | ValidityEndDate | ValidTo | |
| WorkCenterInternalID | P_RSHWCHeaderCapacity | WorkCenterInternalID | Work Center | |
| ValidityBeginDate | P_RSHWCHeaderCapacity | ValidityBeginDate | ||
| CapacityStartTime | P_RSHWCHeaderCapacity | CapacityStartTime | ||
| CapacityEndTime | P_RSHWCHeaderCapacity | CapacityEndTime | ||
| CapacityNumberOfCapacities | P_RSHWCHeaderCapacity | CapacityNumberOfCapacities | ||
| CapacityPlanUtilizationPercent | P_RSHWCHeaderCapacity | CapacityPlanUtilizationPercent | ||
| CapacityBreakDuration | P_RSHWCHeaderCapacity | CapacityBreakDuration | ||
| TotOperatingDurationInSeconds | P_RSHWCHeaderCapacity | Capacity | Engine Capacity | |
| OperatingDurationInSeconds | P_RSHWCHeaderCapacity | SingleCapacity | ||
| WorkCenter | P_RSHWCHeaderCapacity | WorkCenter | Work Center | |
| WorkCenterCategoryCode | P_RSHWCHeaderCapacity | WorkCenterCategoryCode | ||
| WorkCenterTypeCode | P_RSHWCHeaderCapacity | WorkCenterTypeCode | Object Type | |
| Plant | P_RSHWCHeaderCapacity | Plant | Valuation Area | |
| FactoryCalendar | P_RSHWCHeaderCapacity | FactoryCalendar | Factory Calendar | |
| ShiftGroup | P_RSHWCHeaderCapacity | ShiftGroup | Shift Grouping | |
| CapacityActiveVersion | P_RSHWCHeaderCapacity | CapacityActiveVersion | ||
| AvailableCapacityIntervalDurn | ||||
| WorkDayRule | ||||
| StdAvailableCapacityIsValid | interval | StdAvailableCapacityIsValid | ||
| AvailableCapacityType | interval | AvailableCapacityType |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_RSHWCCapaHeaderAndInterval.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PRSHWCINT
CREATE VIEW P_RSHWCCapaHeaderAndInterval AS
SELECT
header.CapacityInternalID AS CapacityInternalID,
coalesce( interval.ValidityEndDate, header.ValidityEndDate ) AS ValidityEndDate,
header.ValidityBeginDate AS HeaderValidityBeginDate,
header.ValidityEndDate AS HeaderValidityEndDate,
interval.ValidityEndDate AS IntervalValidityEndDate,
header.WorkCenterInternalID AS WorkCenterInternalID,
header.ValidityBeginDate AS ValidityBeginDate,
header.CapacityStartTime AS CapacityStartTime,
header.CapacityEndTime AS CapacityEndTime,
header.CapacityNumberOfCapacities AS CapacityNumberOfCapacities,
header.CapacityPlanUtilizationPercent AS CapacityPlanUtilizationPercent,
header.CapacityBreakDuration AS CapacityBreakDuration,
header.Capacity AS TotOperatingDurationInSeconds,
header.SingleCapacity AS OperatingDurationInSeconds,
header.WorkCenter AS WorkCenter,
header.WorkCenterCategoryCode AS WorkCenterCategoryCode,
header.WorkCenterTypeCode AS WorkCenterTypeCode,
header.Plant AS Plant,
header.FactoryCalendar AS FactoryCalendar,
header.ShiftGroup AS ShiftGroup,
header.CapacityActiveVersion AS CapacityActiveVersion,
coalesce( interval.AvailableCapacityIntervalDurn, '01' ) AS AvailableCapacityIntervalDurn,
coalesce( interval.WorkDayRule, '' ) AS WorkDayRule,
interval.StdAvailableCapacityIsValid AS StdAvailableCapacityIsValid,
interval.AvailableCapacityType AS AvailableCapacityType
FROM P_RSHWCHeaderCapacity AS header
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA