C_SrvcPartsForecastWeekQ
Analytics - Weekly Forecast Query
C_SrvcPartsForecastWeekQ (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_SrvcPartsForecastWeekQ is a Consumption CDS View that provides data about "Analytics - Weekly Forecast Query" in SAP S/4HANA. It reads from 1 data source (I_SrvcPartsForecastWeekC) and exposes 25 fields with key fields Product, Location, SrvcPartsKeyFigure, SrvcPartsLocationIsVrtlChildPt.
SAP Help Documentation
| Category | CDS Views for Forecasting |
|---|---|
| Data Category | Consumption |
| Status | Released |
| Corresponding DataSource | 2CCSPFORECASTWEEKQ |
This CDS view provides the time series data of all eSPP forecast key figures dependent on period, product, location product and both warehouse location and virtual child location. The view only provides the time series data which has been created in the eSPP forecast transactions beforehand. This view can only be used for time series which have been created on a weekly period basis.
Prerequisites
This query is built on top of the cube view Weekly Forecast Cube ( I_SrvcPartsForecastWeekC ). To access this query, the following authorizations are required: You need to have authorizations to access cube view Weekly Forecast Cube ( I_SrvcPartsForecastWeekC ). For more information, see Weekly Forecast Cube . The following prerequisites must be fulfilled as well: Key figures need to be maintained in transaction /SAPAPO/TDL_APO_SEM. A monthly time profile needs to be maintained in transaction /SCA/TSDMCFG.
Structure
Measures and attributes Some important measures are: Measure Description Representation Term ESPPForecastQuantity Forecast 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_SrvcPartsForecastWeekC | forecast | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Analytics - Weekly Forecast Query | view | |
| AbapCatalog.sqlViewName | CSPFORECASTWEEKQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | 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 (25)
| 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 | eSPP Forecast: Period from | ||
| ESPPPeriodToDateTime | ESPPPeriodToDateTime | eSPP forecast: Period to | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| 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_SrvcPartsForecastWeekQ.
-- 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: CSPFORECASTWEEKQ
CREATE VIEW C_SrvcPartsForecastWeekQ AS
SELECT
Product,
Location,
SrvcPartsKeyFigure,
SrvcPartsLocationIsVrtlChildPt,
ESPPPeriodFromDateTime,
ESPPPeriodToDateTime,
BaseUnit,
ProductGroupType,
ProductGroupValue,
CalendarDate,
CalendarYear,
CalendarQuarter,
CalendarMonth,
CalendarWeek,
CalendarDay,
YearMonth,
YearQuarter,
YearWeek,
WeekDay,
FirstDayOfWeekDate,
FirstDayOfMonthDate,
CalendarDayOfYear,
YearDay
FROM I_SrvcPartsForecastWeekC AS forecast
;
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