C_SrvcPartsDmndHistRawQ

DDL: C_SRVCPARTSDMNDHISTRAWQ SQL: CSPDMNDHRAWDMNDQ Type: view CONSUMPTION

Analytics Raw Demand History Query

C_SrvcPartsDmndHistRawQ (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_SrvcPartsDmndHistRawQ is a Consumption CDS View that provides data about "Analytics Raw Demand History Query" in SAP S/4HANA. It reads from 1 data source (I_SrvcPartsDmndHistRawC) and exposes 37 fields with key fields SrvcPartsDmndOrder, SrvcPartsDmndItemNumber, SrvcPartsDmndScheduleLineNmbr, SrvcPartsDmndOrderDate, SrvcPartsDmndType.

SAP Help Documentation

CategoryCDS Views for Demand History
Data CategoryConsumption
StatusReleased
Corresponding DataSource2CCCSPDMNDHRAWDMNDQ
Purpose
This CDS view provides raw data that serves as the basis for generating the demand history. The raw data consist of historical data (single records) like sales order data from the Sales and Distribution component (SD) and stock transfer data from the Materials Management component (MM).

Prerequisites
This query is built on top of the cube view Raw Demand for Demand History Cube ( I_SrvcPartsDmndHistRawC ). To access this query, the following authorizations are required: You need to have authorizations to access cube view Raw Demand for Demand History Cube ( I_SrvcPartsDemandHistoryC ). For more information, see Raw Demand for Demand History Cube .

Structure
This CDS view is built on a single database table. Measures and attributes Some important measures are: Measure Description Representation Term SrvcPartsDmndQuantity Demand quantity of a demand order. Quantity NumberOfSrvcPartsDmndEntry Number of positions (lines which refer to a specific product) of a demand. Value Some important attributes are: SrvcPartsDmndOrderDate SrvcPartsDmndType Product SrvcPartsFacingLocation SrvcPartsStockingLocation SrvcPartsDmndCategory Customer SrvcPartsRawDmndIsAbnormal OrderIsThirdParty OrderIsEmergency

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentSCM-APO-SPP
CapabilitiesAnalytical Query
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_SrvcPartsDmndHistRawC I_SrvcPartsDmndHistRawC from

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Analytics Raw Demand History Query view
AbapCatalog.sqlViewName CSPDMNDHRAWDMNDQ 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
Analytics.query true view
Metadata.ignorePropagatedAnnotations true view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY SrvcPartsDmndOrder SrvcPartsDmndOrder Order Number Raw Demand
KEY SrvcPartsDmndItemNumber SrvcPartsDmndItemNumber Item Number Raw Demand
KEY SrvcPartsDmndScheduleLineNmbr SrvcPartsDmndScheduleLineNmbr Schedule Line Number Raw Demand
KEY SrvcPartsDmndOrderDate SrvcPartsDmndOrderDate Order Date Raw Demand
KEY SrvcPartsDmndType SrvcPartsDmndType Demand type Raw Demand
Product Product Product Raw Demand
SrvcPartsFacingLocation SrvcPartsFacingLocation Facing Location Raw Demand
SrvcPartsStockingLocation SrvcPartsStockingLocation Stocking Location Raw Demand
SrvcPartsDmndCategory SrvcPartsDmndCategory Demand Category Raw Demand
Customer Customer Customer Raw Demand
SrvcPartsDmndQuantity SrvcPartsDmndQuantity Demand Quantity Raw Demand
SrvcPartsDmndUnit SrvcPartsDmndUnit Base Unit of Measure Raw Demand
ShippingDate ShippingDate Shipping Date Raw Demand
NumberOfSrvcPartsDmndEntry NumberOfSrvcPartsDmndEntry Demand Entry Raw Demand
SrvcPartsDmndOrderType SrvcPartsDmndOrderType Order Type Raw Demand
SrvcPartsDmndItemType SrvcPartsDmndItemType Item Type Raw Demand
OrderIsThirdParty OrderIsThirdParty Third-Party Order Processing Raw Demand
SrvcPartsRawDmndIsAbnormal SrvcPartsRawDmndIsAbnormal Abnormal Indicator Raw Demand
SrvcPartsFcngLocIsVrtlChildPt SrvcPartsFcngLocIsVrtlChildPt Virtual Child Location Indicator Raw Demand
SrvcPartsStkLocIsVrtlChildPt SrvcPartsStkLocIsVrtlChildPt Virtual Child Location Indicator Raw Demand
OrderIsEmergency OrderIsEmergency Emergency Order Raw Demand
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
ProductGroupType ProductGroupType Product Group Type
ProductGroupValue ProductGroupValue Product Group

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_SrvcPartsDmndHistRawQ.
-- 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: CSPDMNDHRAWDMNDQ

CREATE VIEW C_SrvcPartsDmndHistRawQ AS
SELECT
  SrvcPartsDmndOrder,
  SrvcPartsDmndItemNumber,
  SrvcPartsDmndScheduleLineNmbr,
  SrvcPartsDmndOrderDate,
  SrvcPartsDmndType,
  Product,
  SrvcPartsFacingLocation,
  SrvcPartsStockingLocation,
  SrvcPartsDmndCategory,
  Customer,
  SrvcPartsDmndQuantity,
  SrvcPartsDmndUnit,
  ShippingDate,
  NumberOfSrvcPartsDmndEntry,
  SrvcPartsDmndOrderType,
  SrvcPartsDmndItemType,
  OrderIsThirdParty,
  SrvcPartsRawDmndIsAbnormal,
  SrvcPartsFcngLocIsVrtlChildPt,
  SrvcPartsStkLocIsVrtlChildPt,
  OrderIsEmergency,
  CalendarDate,
  CalendarYear,
  CalendarQuarter,
  CalendarMonth,
  CalendarWeek,
  CalendarDay,
  YearMonth,
  YearQuarter,
  YearWeek,
  WeekDay,
  FirstDayOfWeekDate,
  FirstDayOfMonthDate,
  CalendarDayOfYear,
  YearDay,
  ProductGroupType,
  ProductGroupValue
FROM I_SrvcPartsDmndHistRawC
;