C_SrvcPartsDistrRqmtsPlngQ
Analytics Requirements Planning Query
C_SrvcPartsDistrRqmtsPlngQ (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sourcing & Procurement
C_SrvcPartsDistrRqmtsPlngQ is a Consumption CDS View that provides data about "Analytics Requirements Planning Query" in SAP S/4HANA. It reads from 1 data source (I_SrvcPartsDistrRqmtsPlngC) and exposes 26 fields with key fields Product, Location, SrvcPartsKeyFigure, SrvcPartsLocationIsVrtlChildPt.
SAP Help Documentation
| Category | CDS Views for Requirements Planning |
|---|---|
| Data Category | Consumption |
| Status | Released |
| Corresponding DataSource | 2CCSPDISTRQMTSPLNQ |
This CDS view provides eSPP DRP matrix data as time series data for selected DRP key figures. It is provided dependent on period, product, location product and both warehouse location and virtual child location. This view only provides those DRP key figures which have been created in a PSM DRP run and were saved on the database beforehand.
Prerequisites
This query is built on top of the cube view Requirements Planning Cube ( I_SrvcPartsDistrRqmtsPlngC ). To access this query, the following authorizations are required: You need to have authorizations to access cube view Requirements Planning Cube ( I_SrvcPartsDistrRqmtsPlngC ). For more information, see Requirements Planning Cube . The following prerequisites must be fulfilled as well: Key figures need to be maintained in transaction /SAPAPO/TDL_APO_SEM. Switch on flag Save Intermediate Results in TSDM in the DRP service profile and run PSM DRP service. A time profile needs to be maintained in transaction /SCA/TSDMCFG.
Structure
Measures and attributes Some important measures are: Measure Description Representation Term ESPPDistrRqmtsPlngQuantity Distribution Requirements Quantity in Extended Service Parts Planning Quantity Some important attributes are: Product Location ESPPPeriodFromDateTime ESPPPeriodToDateTime BaseUnit ProductGroupType ProductGroupValue
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sourcing & Procurement |
| Application Component | SCM-APO-SPP |
| Capabilities | Analytical Query |
| Package | Sourcing & Procurement for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SrvcPartsDistrRqmtsPlngC | DRP | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Analytics Requirements Planning Query | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.sqlViewName | CSPDISTRQMTSPLNQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.supportedCapabilities | #ANALYTICAL_QUERY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.query | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | Product | Product Number | |
| KEY | Location | Location | Location | |
| KEY | SrvcPartsKeyFigure | SrvcPartsKeyFigure | TSDM Key Figure Parameter | |
| KEY | SrvcPartsLocationIsVrtlChildPt | SrvcPartsLocationIsVrtlChildPt | TSDM: Characteristic object | |
| _Product | _Product | |||
| _Location | _Location | |||
| ESPPPeriodFromDateTime | ESPPPeriodFromDateTime | Timestamp of Begin of Period | ||
| ESPPPeriodToDateTime | ESPPPeriodToDateTime | Timestamp of End of Period | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| ESPPDistrRqmtsPlngQuantity | ESPPDistrRqmtsPlngQuantity | TDL: Quantity | ||
| ProductGroupType | ProductGroupType | Product Group Type | ||
| ProductGroupValue | ProductGroupValue | Product Group | ||
| CalendarDate | CalendarDate | Calendar Date | ||
| CalendarYear | CalendarYear | Calendar Year | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| CalendarDay | CalendarDay | Occur Day in a Month | ||
| YearMonth | YearMonth | Year Month | ||
| YearQuarter | YearQuarter | Year Quarter | ||
| YearWeek | YearWeek | Year and Calendar Week | ||
| WeekDay | WeekDay | Weekdays | ||
| FirstDayOfWeekDate | FirstDayOfWeekDate | First day of week date | ||
| FirstDayOfMonthDate | FirstDayOfMonthDate | First Day of Month Date | ||
| CalendarDayOfYear | CalendarDayOfYear | Calendar day of year | ||
| YearDay | YearDay | Day of the year |
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 C_SrvcPartsDistrRqmtsPlngQ.
-- 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: CSPDISTRQMTSPLNQ
CREATE VIEW C_SrvcPartsDistrRqmtsPlngQ AS
SELECT
Product,
Location,
SrvcPartsKeyFigure,
SrvcPartsLocationIsVrtlChildPt,
ESPPPeriodFromDateTime,
ESPPPeriodToDateTime,
BaseUnit,
ESPPDistrRqmtsPlngQuantity,
ProductGroupType,
ProductGroupValue,
CalendarDate,
CalendarYear,
CalendarQuarter,
CalendarMonth,
CalendarWeek,
CalendarDay,
YearMonth,
YearQuarter,
YearWeek,
WeekDay,
FirstDayOfWeekDate,
FirstDayOfMonthDate,
CalendarDayOfYear,
YearDay
FROM I_SrvcPartsDistrRqmtsPlngC AS DRP
;
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