C_SupDmndOvwTotDmndQuery
Query View for Total Demand
C_SupDmndOvwTotDmndQuery is a Consumption CDS View that provides data about "Query View for Total Demand" in SAP S/4HANA. It reads from 15 data sources and exposes 90 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, RequestedDate, ProductAvailabilityDate, RequirementType. It has 1 association to related views.
Data Sources (15)
| Source | Alias | Join Type |
|---|---|---|
| I_ARunCancDteSupDlyHrznT | CancDteSupDlyHrznT | left_outer |
| I_RetailCharacteristicValueT | CharValTexts1 | left_outer |
| I_RetailCharacteristicValueT | CharValTexts2 | left_outer |
| I_RetailCharacteristicValueT | CharValTexts3 | left_outer |
| I_CompanyCode | CompanyCode | left_outer |
| I_Customer | Customer | left_outer |
| I_SupDmndOvwTotalDemandCube | Demand | from |
| I_DistributionChannelText | DistChl | left_outer |
| I_DivisionText | Div | left_outer |
| I_Material | Material | left_outer |
| I_MaterialText | MaterialText | left_outer |
| I_MaterialGroupText | MatGrpText | left_outer |
| I_Plant | Plant | left_outer |
| I_SalesDistrictText | SalesDist | left_outer |
| I_SalesOfficeText | SalesOffice | left_outer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_DivisionText | _OrganizationDivn | $projection.OrganizationDivision = _OrganizationDivn.Division and _OrganizationDivn.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSDODMNDQUERY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Query View for Total Demand | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RequirementDocumentNumber | RequirementDocumentNumber | Requirement Document Number | |
| KEY | RequirementDocumentItem | RequirementDocumentItem | Requirement Document Item | |
| KEY | RequestedDate | RequestedDate | Requested Date | |
| KEY | ProductAvailabilityDate | ProductAvailabilityDate | Mat.Avail.Date | |
| KEY | RequirementType | RequirementType | Requirement Type | |
| DeliveredQuantityInBaseUnit | DeliveredQuantityInBaseUnit | Delivered Quantity | ||
| RequestedRqmtQtyInBaseUnit | RequestedRqmtQtyInBaseUnit | Order Quantity | ||
| ConfirmedRqmtQtyInBaseUnit | ConfirmedRqmtQtyInBaseUnit | Confirmed Quantity | ||
| OpenDemandQuantity | OpenDemandQuantity | Open Demand Quantity | ||
| RequirementTypeName | RequirementTypeName | Requirement Type Name | ||
| OrderType | OrderType | Document Type | ||
| SalesOrganization | I_SupDmndOvwTotalDemandCube | SalesOrganization | Sales Organization | |
| DistributionChannel | I_SupDmndOvwTotalDemandCube | DistributionChannel | RefDistCh-Cust/Mat. | |
| RequestedDeliveryDate | RequestedDeliveryDate | Requested Delivery Date | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| CompanyCode | I_SupDmndOvwTotalDemandCube | CompanyCode | Company Code | |
| PartnerFunction | PartnerFunction | Partner Functn | ||
| SalesDocumentItemCategory | SalesDocumentItemCategory | Item Category | ||
| Division | I_SupDmndOvwTotalDemandCube | Division | Internal Division ID | |
| Material | I_SupDmndOvwTotalDemandCube | Material | Vehicle Model | |
| MaterialGroup | I_SupDmndOvwTotalDemandCube | MaterialGroup | Product Group | |
| BaseUnit | BaseUnit | Unit of Measure | ||
| DeliveryGroup | DeliveryGroup | Delivery Group | ||
| ItemBillingBlockReason | ItemBillingBlockReason | Billing Block | ||
| NetAmount | NetAmount | Stated Amount | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Plant | I_SupDmndOvwTotalDemandCube | Plant | Valuation Area | |
| StorageLocation | StorageLocation | StorageLocation | ||
| ShippingPoint | ShippingPoint | Shipping Point | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| RequirementSegment | RequirementSegment | Req. Segment | ||
| ProductSeasonYear | ProductSeasonYear | Season Year | ||
| ProductSeason | ProductSeason | Season | ||
| ProductCollection | ProductCollection | Collection | ||
| ProductTheme | ProductTheme | Theme | ||
| FashionCancelDate | FashionCancelDate | |||
| ShippingGroupRule | ShippingGroupRule | PSST Grouping Rule | ||
| ShippingGroupNumber | ShippingGroupNumber | PSST Group | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| SalesDistrict | I_SupDmndOvwTotalDemandCube | SalesDistrict | Sales District | |
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarWeek | CalendarWeek | Week | ||
| CalendarYear | CalendarYear | Year | ||
| CalendarMonthName | CalendarMonthName | Month | ||
| AssignedQuantityInBaseUnit | AssignedQuantityInBaseUnit | Total Assigned Quantity | ||
| NormalAssignedQuantityInBsUnt | NormalAssignedQuantityInBsUnt | Normal Assigned Quantity | ||
| FixedQuantityInBaseUnit | FixedQuantityInBaseUnit | Ready for Delivery Quantity | ||
| SupAssgmtReservedQtyInBaseUnit | SupAssgmtReservedQtyInBaseUnit | Reserved Quantity | ||
| OnHoldQuantityInBaseUnit | OnHoldQuantityInBaseUnit | On Hold Quantity | ||
| ReadyForReleaseQtyInBaseUnit | ReadyForReleaseQtyInBaseUnit | Open for Release Check Quantity | ||
| InboundAssignedQuantityInBsUnt | InboundAssignedQuantityInBsUnt | IFO Assigned Quantity | ||
| PreviewFixedAssignedQtyInBsUnt | PreviewFixedAssignedQtyInBsUnt | Ready for Delivery (Preview) | ||
| PreviewReservedAssgdQtyInBsUnt | PreviewReservedAssgdQtyInBsUnt | Reserved (Preview) | ||
| PreviewOnHoldAssgdQtyInBsUnt | PreviewOnHoldAssgdQtyInBsUnt | On Hold (Preview) | ||
| PreviewRdyForReleaseQtyInBsUnt | PreviewRdyForReleaseQtyInBsUnt | Open for Release Check (Preview) | ||
| PreviewAssignedQuantityInBsUnt | PreviewAssignedQuantityInBsUnt | Preview Assigned Quantity | ||
| RequestedQuantityInBaseUnit | RequestedQuantityInBaseUnit | Requested Qty | ||
| SupAssgmtCategory | SupAssgmtCategory | SDO Category | ||
| SupAssgmtCategoryName | SupAssgmtCategoryName | SDO Category | ||
| SupAssgmtOrdStatusName | SupAssgmtOrdStatusName | Order Status | ||
| CrossPlantConfigurableProduct | I_SupDmndOvwTotalDemandCube | CrossPlantConfigurableProduct | Generic Material | |
| SupAssgmtSource | SupAssgmtSource | Demand/Supply | ||
| SupAssgmtSourceName | SupAssgmtSourceName | Demand/Supply | ||
| SalesDocument | SalesDocument | Sales Document | ||
| SalesOrganizationName | SalesOrganizationName | Sales Organization Description | ||
| MaterialName | I_MaterialText | MaterialName | Material Description | |
| MaterialGroupName | I_MaterialGroupText | MaterialGroupName | prod Grp Desc. | |
| DistributionChannelName | I_DistributionChannelText | DistributionChannelName | ||
| DivisionName | I_DivisionText | DivisionName | Division Description | |
| SalesDistrictName | I_SalesDistrictText | SalesDistrictName | District Name | |
| PlantName | I_Plant | PlantName | Plant Name | |
| CompanyCodeName | I_CompanyCode | CompanyCodeName | Company Name | |
| OrderTypeName | OrderTypeName | Document Type | ||
| ARunCancDteSupDlyTmeHrznCode | I_SupDmndOvwTotalDemandCube | ARunCancDteSupDlyTmeHrznCode | ||
| ARunCancDteSupDlyTmeHrznTxt | I_ARunCancDteSupDlyHrznT | ARunCancDteSupDlyTmeHrznTxt | Cancel Date - Supply Delivery Date | |
| CustomerName | I_Customer | CustomerName | Name of Customer | |
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| DeliveryBlockReason | DeliveryBlockReason | Delivery Block | ||
| ProductCharacteristic1 | I_SupDmndOvwTotalDemandCube | ProductCharacteristic1 | Characteristic 1 | |
| ProductCharacteristic1Desc | I_RetailCharacteristicValueT | RetailCharacteristicValueDesc | Description | |
| ProductCharacteristic2 | I_SupDmndOvwTotalDemandCube | ProductCharacteristic2 | Characteristic 2 | |
| ProductCharacteristic2Desc | I_RetailCharacteristicValueT | RetailCharacteristicValueDesc | Description | |
| ProductCharacteristic3 | I_SupDmndOvwTotalDemandCube | ProductCharacteristic3 | Characteristic 3 | |
| ProductCharacteristic3Desc | I_RetailCharacteristicValueT | RetailCharacteristicValueDesc | Description | |
| OrganizationDivision | OrganizationDivision | Organization Division | ||
| SalesOffice | I_SupDmndOvwTotalDemandCube | SalesOffice | Sales Office | |
| SalesOfficeName | I_SalesOfficeText | SalesOfficeName | ||
| _OrganizationDivn | _OrganizationDivn |
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_SupDmndOvwTotDmndQuery.
-- 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.
CREATE VIEW C_SupDmndOvwTotDmndQuery AS
SELECT
RequirementDocumentNumber,
RequirementDocumentItem,
RequestedDate,
ProductAvailabilityDate,
RequirementType,
DeliveredQuantityInBaseUnit,
RequestedRqmtQtyInBaseUnit,
ConfirmedRqmtQtyInBaseUnit,
OpenDemandQuantity,
RequirementTypeName,
OrderType,
Demand.SalesOrganization AS SalesOrganization,
Demand.DistributionChannel AS DistributionChannel,
RequestedDeliveryDate,
SoldToParty,
ShipToParty,
Demand.CompanyCode AS CompanyCode,
PartnerFunction,
SalesDocumentItemCategory,
Demand.Division AS Division,
Demand.Material AS Material,
Demand.MaterialGroup AS MaterialGroup,
BaseUnit,
DeliveryGroup,
ItemBillingBlockReason,
NetAmount,
DocumentCurrency,
Demand.Plant AS Plant,
StorageLocation,
ShippingPoint,
NetPriceAmount,
NetPriceQuantity,
RequirementSegment,
ProductSeasonYear,
ProductSeason,
ProductCollection,
ProductTheme,
FashionCancelDate,
ShippingGroupRule,
ShippingGroupNumber,
CustomerGroup,
Demand.SalesDistrict AS SalesDistrict,
CalendarMonth,
CalendarWeek,
CalendarYear,
CalendarMonthName,
AssignedQuantityInBaseUnit,
NormalAssignedQuantityInBsUnt,
FixedQuantityInBaseUnit,
SupAssgmtReservedQtyInBaseUnit,
OnHoldQuantityInBaseUnit,
ReadyForReleaseQtyInBaseUnit,
InboundAssignedQuantityInBsUnt,
PreviewFixedAssignedQtyInBsUnt,
PreviewReservedAssgdQtyInBsUnt,
PreviewOnHoldAssgdQtyInBsUnt,
PreviewRdyForReleaseQtyInBsUnt,
PreviewAssignedQuantityInBsUnt,
RequestedQuantityInBaseUnit,
SupAssgmtCategory,
SupAssgmtCategoryName,
SupAssgmtOrdStatusName,
Demand.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
SupAssgmtSource,
SupAssgmtSourceName,
SalesDocument,
SalesOrganizationName,
MaterialText.MaterialName AS MaterialName,
MatGrpText.MaterialGroupName AS MaterialGroupName,
DistChl.DistributionChannelName AS DistributionChannelName,
Div.DivisionName AS DivisionName,
SalesDist.SalesDistrictName AS SalesDistrictName,
Plant.PlantName AS PlantName,
CompanyCode.CompanyCodeName AS CompanyCodeName,
OrderTypeName,
Demand.ARunCancDteSupDlyTmeHrznCode AS ARunCancDteSupDlyTmeHrznCode,
CancDteSupDlyHrznT.ARunCancDteSupDlyTmeHrznTxt AS ARunCancDteSupDlyTmeHrznTxt,
Customer.CustomerName AS CustomerName,
PurchaseOrderByCustomer,
DeliveryBlockReason,
Demand.ProductCharacteristic1 AS ProductCharacteristic1,
CharValTexts1.RetailCharacteristicValueDesc AS ProductCharacteristic1Desc,
Demand.ProductCharacteristic2 AS ProductCharacteristic2,
CharValTexts2.RetailCharacteristicValueDesc AS ProductCharacteristic2Desc,
Demand.ProductCharacteristic3 AS ProductCharacteristic3,
CharValTexts3.RetailCharacteristicValueDesc AS ProductCharacteristic3Desc,
OrganizationDivision,
Demand.SalesOffice AS SalesOffice,
SalesOffice.SalesOfficeName AS SalesOfficeName
FROM I_SupDmndOvwTotalDemandCube AS Demand
LEFT OUTER JOIN I_MaterialText AS MaterialText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialGroupText AS MatGrpText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DistributionChannelText AS DistChl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DivisionText AS Div ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesDistrictText AS SalesDist ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS Plant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer AS Customer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesOfficeText AS SalesOffice ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ARunCancDteSupDlyHrznT AS CancDteSupDlyHrznT ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS Material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RetailCharacteristicValueT AS CharValTexts1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RetailCharacteristicValueT AS CharValTexts2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RetailCharacteristicValueT AS CharValTexts3 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DivisionText AS _OrganizationDivn ON OrganizationDivision = _OrganizationDivn.Division AND _OrganizationDivn.Language = $session.system_language -- association [0..1]
;
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