I_ARunAnlytsTotDmndCube

DDL: I_ARUNANLYTSTOTDMNDCUBE Type: view COMPOSITE

Supply Assignment Total Demand - Cube

I_ARunAnlytsTotDmndCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

I_ARunAnlytsTotDmndCube is a Composite CDS View (Cube) that provides data about "Supply Assignment Total Demand - Cube" in SAP S/4HANA. It reads from 1 data source (I_SupDmndAllDocTotDmnd) and exposes 88 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, SupProtTimeBucketUUID, RequestedDate, ProductAvailabilityDate. It has 19 associations to related views.

SAP Help Documentation

CategoryAnalytics CDS Views
Data CategoryCube
Corresponding DataSource2CIARNALYSTDMND
Purpose
This CDS view provides an overview of demand details for products relevant for supply assignment. This CDS view provides the data to answer the following business questions: What is the open demand and open supply per plant for a country - region combination? What is the amount per ship-to party country? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: ARUN_SDO (Authorization object for supply demand overview)

Structure
Fields Used for Filtering The main filters are as follows: RequestedDeliveryDate : This field is used to filter the data for a range of requested delivery date. Plant : This field is used to filter the data for different plants. DistributionChannel : This field is used to filter the data for different distribution channels. SalesOrganization : This field is used to filter the data by different sales organizations. Further Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute RequestedRqmtQtyInBaseUnit Ordered Quantity in Base Unit Measure ConfirmedRqmtQtyInBaseUnit Confirmed Quantity in Base Unit Measure DeliveredQuantityInBaseUnit Delivered Quantity in Base Unit Measure OpenDemandQuantity Open Demand Quantity Measure AssignedQuantityInBaseUnit Total Assignment Quantity in Base Unit Measure NormalAssignedQuantityInBsUnt Normal Assigned Quantity in Base Unit Measure PreviewAssignedQuantityInBsUnt Preview Assigned Quantity in Base Unit Measure ARunTmpAssignedQuantityInBsUnt Temporary Assigned Quantity in Base Unit Measure SupAssgmtReservedQtyInBaseUnit Reserved Quantity in Base Unit Measure FixedQuantityInBaseUnit Fixed quantity in Base Unit Measure OnHoldQuantityInBaseUnit On Hold Quantity in Base Unit Measure

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentLO-RFM-ARN
CapabilitiesData Provider for Analytical Queries, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides an overview of demand details for products relevant for supply assignment.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is the open demand and open supply per plant for a country - region combination?</p></li> <li><p>What is the amount per ship-to party country?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_SupDmndAllDocTotDmnd Demand from

Parameters (1)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency

Associations (19)

CardinalityTargetAliasCondition
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_ProductGroup _ProductGroup $projection.ProductGroup = _ProductGroup.MaterialGroup
[0..1] I_Producttype _ProductType $projection.ProductType = _ProductType.ProductType
[0..1] I_SalesOrganization _SalesOrg $projection.SalesOrganization = _SalesOrg.SalesOrganization
[0..1] I_DistributionChannel _DistrChnl $projection.DistributionChannel = _DistrChnl.DistributionChannel
[0..1] I_Division _Divn $projection.Division = _Divn.Division
[0..1] I_SalesDistrict _SalesDist $projection.SalesDistrict = _SalesDist.SalesDistrict
[0..1] I_SalesOffice _SalesOffice $projection.SalesOffice = _SalesOffice.SalesOffice
[0..1] I_SalesGroup _SalesGroup $projection.SalesGroup = _SalesGroup.SalesGroup
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] I_Customer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_SupDmndAllDocRqmtType _Rqmt $projection.RequirementType = _Rqmt.RequirementType
[0..1] I_SalesDocumentItem _SalesDocumentItem $projection.RequirementDocumentNumber = _SalesDocumentItem.SalesDocument and $projection.RequirementDocumentItem = _SalesDocumentItem.SalesDocumentItem
[0..1] I_Currency _DisplayCurrency $projection.DisplayCurrency = _DisplayCurrency.Currency
[0..1] I_CountryGeoPoint _PlantCountry $projection.PlantCountry = _PlantCountry.Country
[0..1] I_CountryGeoPoint _ShipToCountry $projection.ShipToCountry = _ShipToCountry.Country

Annotations (17)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.sqlViewName IARNALYSTDMND view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Supply Assignment Total Demand - Cube view

Fields (88)

KeyFieldSource TableSource FieldDescription
KEY RequirementDocumentNumber RequirementDocumentNumber Sales Document
KEY RequirementDocumentItem RequirementDocumentItem Sales Document Item
KEY SupProtTimeBucketUUID I_SupDmndAllDocTotDmnd SupProtTimeBucketUUID
KEY RequestedDate RequestedDate Material Staging/Availability Date
KEY ProductAvailabilityDate ProductAvailabilityDate Material Staging/Availability Date
KEY RequirementType I_SupDmndAllDocTotDmnd RequirementType RequirementType
RequirementTypeName _Rqmt RequirementTypeName Short Text for Fixed Values
RequestedDeliveryDate I_SupDmndAllDocTotDmnd RequestedDeliveryDate Requested Delivery Date
RequestedRqmtQtyInBaseUnit RequestedRqmtQtyInBaseUnit
ConfirmedRqmtQtyInBaseUnit ConfirmedRqmtQtyInBaseUnit
DeliveredQuantityInBaseUnit DeliveredQuantityInBaseUnit
OpenDemandQuantity OpenDemandQuantity
UnconfirmedQuantityInBaseUnit UnconfirmedQuantityInBaseUnit
AssignedQuantityInBaseUnit AssignedQuantityInBaseUnit
NormalAssignedQuantityInBsUnt NormalAssignedQuantityInBsUnt
PreviewAssignedQuantityInBsUnt PreviewAssignedQuantityInBsUnt
ARunTmpAssignedQuantityInBsUnt ARunTmpAssignedQuantityInBsUnt
ARunPhysSupAssgdQtyInBsUnt ARunPhysSupAssgdQtyInBsUnt
SupAssgmtReservedQtyInBaseUnit SupAssgmtReservedQtyInBaseUnit
FixedQuantityInBaseUnit FixedQuantityInBaseUnit
OnHoldQuantityInBaseUnit OnHoldQuantityInBaseUnit
ReadyForReleaseQtyInBaseUnit ReadyForReleaseQtyInBaseUnit
SimulationRdyForRelQtyInBsUnt ReadyForReleaseQtyInBaseUnit
BaseUnit BaseUnit Base Unit of Measure
CalendarYear CalendarYear Calendar Year
CalendarMonth CalendarMonth Calendar Month
CalendarMonthName CalendarMonthName Short Text for Fixed Values
CalendarWeek CalendarWeek Calendar Week
CalendarDay CalendarDay Occur Day in a Month
Product Material Material Number
ProductGroup MaterialGroup Material Group
ProductType MaterialType Material Type
CrossPlantConfigurableProduct CrossPlantConfigurableProduct Cross-Plant Configurable Material
Plant Plant Valuation Area
PlantCountry PlantCountry Country/Region Key
PlantRegion PlantRegion Region (State, Province, County)
SalesOrganization SalesOrganization Sales Organization
Country Country/Region Key
Region Region (State, Province, County)
DistributionChannel DistributionChannel Distribution Channel
Division Division Internal Division ID
SalesDistrict SalesDistrict Sales District
SalesOffice Sales Office
SalesGroup Sales Group
SoldToParty Customer Customer Number
SoldToPartyCountry _SoldToParty Country Country/Region Key
SoldToPartyRegion _SoldToParty Region Region (State, Province, County)
ShipToParty Customer Customer Number
ShipToCountry _ShipToParty Country Country/Region Key
CustomerRegion _ShipToParty Region Region (State, Province, County)
CompanyCode CompanyCode Company Code to Be Billed
StorageLocation StorageLocation Storage Location
SupplyProtectionName SupplyProtectionName Name
SupAssgmtAggrgQtyUnit Base Unit of Measure
NetPriceAmount NetPriceAmount Net Price
DocumentCurrency DocumentCurrency SD Document Currency
RequirementSegment RequirementSegment Requirement Segment
DisplayCurrency Display Currency
FashionCancelDate _SalesDocumentItem FashionCancelDate Cancellation Date
ProductSeasonYear _SalesDocumentItem ProductSeasonYear Season Year
ProductSeason _SalesDocumentItem ProductSeason Season
ProductCollection _SalesDocumentItem ProductCollection Fashion Collection
ProductTheme _SalesDocumentItem ProductTheme Fashion Theme
ProductCharacteristic1 _SalesDocumentItem ProductCharacteristic1 Characteristic Value 1
ProductCharacteristic2 _SalesDocumentItem ProductCharacteristic2 Characteristic Value 2
ProductCharacteristic3 _SalesDocumentItem ProductCharacteristic3 Characteristic Value 3
ConfirmedDeliveryDate ConfirmedDeliveryDate Confirmed Delivery Date
ScheduleLine ScheduleLine Schedule Line
OrderType OrderType Sales Document Type
_Product _Product
_ProductGroup _ProductGroup
_ProductType _ProductType
_SalesOrg _SalesOrg
_DistrChnl _DistrChnl
_Divn _Divn
_SalesDist _SalesDist
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_Plant _Plant
_CompanyCode _CompanyCode
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BaseUnit _BaseUnit
_Rqmt _Rqmt
_SalesDocumentItem _SalesDocumentItem
_DisplayCurrency _DisplayCurrency
_PlantCountry _PlantCountry
_ShipToCountry _ShipToCountry

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 I_ARunAnlytsTotDmndCube.
-- 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.
-- Parameters: P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW I_ARunAnlytsTotDmndCube AS
SELECT
  RequirementDocumentNumber,
  RequirementDocumentItem,
  Demand.SupProtTimeBucketUUID AS SupProtTimeBucketUUID,
  RequestedDate,
  ProductAvailabilityDate,
  Demand.RequirementType AS RequirementType,
  _Rqmt.RequirementTypeName AS RequirementTypeName,
  Demand.RequestedDeliveryDate AS RequestedDeliveryDate,
  RequestedRqmtQtyInBaseUnit,
  ConfirmedRqmtQtyInBaseUnit,
  DeliveredQuantityInBaseUnit,
  OpenDemandQuantity,
  UnconfirmedQuantityInBaseUnit,
  AssignedQuantityInBaseUnit,
  NormalAssignedQuantityInBsUnt,
  PreviewAssignedQuantityInBsUnt,
  ARunTmpAssignedQuantityInBsUnt,
  ARunPhysSupAssgdQtyInBsUnt,
  SupAssgmtReservedQtyInBaseUnit,
  FixedQuantityInBaseUnit,
  OnHoldQuantityInBaseUnit,
  ReadyForReleaseQtyInBaseUnit,
  ReadyForReleaseQtyInBaseUnit AS SimulationRdyForRelQtyInBsUnt,
  BaseUnit,
  CalendarYear,
  CalendarMonth,
  CalendarMonthName,
  CalendarWeek,
  CalendarDay,
  Material AS Product,
  MaterialGroup AS ProductGroup,
  MaterialType AS ProductType,
  CrossPlantConfigurableProduct,
  Plant,
  PlantCountry,
  PlantRegion,
  SalesOrganization,
  _SalesOrg._Address.Country AS Country,
  _SalesOrg._Address.Region AS Region,
  DistributionChannel,
  Division,
  SalesDistrict,
  _SalesDocumentItem._SalesDocument.SalesOffice AS SalesOffice,
  _SalesDocumentItem._SalesDocument.SalesGroup AS SalesGroup,
  Customer AS SoldToParty,
  _SoldToParty.Country AS SoldToPartyCountry,
  _SoldToParty.Region AS SoldToPartyRegion,
  Customer AS ShipToParty,
  _ShipToParty.Country AS ShipToCountry,
  _ShipToParty.Region AS CustomerRegion,
  CompanyCode,
  StorageLocation,
  SupplyProtectionName,
  cast( ' ' as meins ) AS SupAssgmtAggrgQtyUnit,
  NetPriceAmount,
  DocumentCurrency,
  RequirementSegment,
  cast(:P_DisplayCurrency as vdm_v_display_currency) AS DisplayCurrency,
  _SalesDocumentItem.FashionCancelDate AS FashionCancelDate,
  _SalesDocumentItem.ProductSeasonYear AS ProductSeasonYear,
  _SalesDocumentItem.ProductSeason AS ProductSeason,
  _SalesDocumentItem.ProductCollection AS ProductCollection,
  _SalesDocumentItem.ProductTheme AS ProductTheme,
  _SalesDocumentItem.ProductCharacteristic1 AS ProductCharacteristic1,
  _SalesDocumentItem.ProductCharacteristic2 AS ProductCharacteristic2,
  _SalesDocumentItem.ProductCharacteristic3 AS ProductCharacteristic3,
  ConfirmedDeliveryDate,
  ScheduleLine,
  OrderType
FROM I_SupDmndAllDocTotDmnd AS Demand
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_ProductGroup AS _ProductGroup ON ProductGroup = _ProductGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_Producttype AS _ProductType ON ProductType = _ProductType.ProductType  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrg ON SalesOrganization = _SalesOrg.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistrChnl ON DistributionChannel = _DistrChnl.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_Division AS _Divn ON Division = _Divn.Division  -- association [0..1]
LEFT OUTER JOIN I_SalesDistrict AS _SalesDist ON SalesDistrict = _SalesDist.SalesDistrict  -- association [0..1]
LEFT OUTER JOIN I_SalesOffice AS _SalesOffice ON SalesOffice = _SalesOffice.SalesOffice  -- association [0..1]
LEFT OUTER JOIN I_SalesGroup AS _SalesGroup ON SalesGroup = _SalesGroup.SalesGroup  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_SupDmndAllDocRqmtType AS _Rqmt ON RequirementType = _Rqmt.RequirementType  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON RequirementDocumentNumber = _SalesDocumentItem.SalesDocument AND RequirementDocumentItem = _SalesDocumentItem.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CountryGeoPoint AS _PlantCountry ON PlantCountry = _PlantCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_CountryGeoPoint AS _ShipToCountry ON ShipToCountry = _ShipToCountry.Country  -- association [0..1]
;