I_SupDmndAllDocTotSupCube
Cube View for Total Supply of All Document Types
I_SupDmndAllDocTotSupCube is a Composite CDS View (Cube) that provides data about "Cube View for Total Supply of All Document Types" in SAP S/4HANA. It reads from 1 data source (I_SupDmndAllDocTotSup) and exposes 54 fields with key fields Material, Plant, Batch, StorageLocation, SupplyNumber. It has 15 associations to related views. Part of development package VDM_ARUN_ANALYTICS_ALL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SupDmndAllDocTotSup | Supply | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductText | _ProductText | $projection.Material = _ProductText.Product and _ProductText.Language = $session.system_language |
| [0..1] | I_ProductGroupText | _ProductGroupText | $projection.MaterialGroup = _ProductGroupText.MaterialGroup and _ProductGroupText.Language = $session.system_language |
| [0..1] | I_ProductTypeText | _ProductTypeText | $projection.MaterialType = _ProductTypeText.ProductType and _ProductTypeText.Language = $session.system_language |
| [0..1] | I_SalesOrganizationText | _SalesOrgText | $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language |
| [0..1] | I_DistributionChannelText | _DistrChnl | $projection.DistributionChannel = _DistrChnl.DistributionChannel and _DistrChnl.Language = $session.system_language |
| [0..1] | I_DivisionText | _Divn | $projection.Division = _Divn.Division and _Divn.Language = $session.system_language |
| [0..1] | I_SalesDistrictText | _SalesDist | $projection.SalesDistrict = _SalesDist.SalesDistrict and _SalesDist.Language = $session.system_language |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization and $projection.CompanyCode = _PurchasingOrganization.CompanyCode |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_SupDmndAllDocSupTypeT | _SupText | $projection.AssignedSupplyType = _SupText.AssignedSupplyType and _SupText.Language = $session.system_language |
| [0..1] | I_SupDmndAllDocSupSourceT | _SupSrceText | $projection.SupAssgmtSource = _SupSrceText.SupAssgmtSource and _SupSrceText.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 | ISUPDMNDADSUPC | 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 | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Cube View for Total Supply of All Document Types | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Product | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | Batch | Batch | Lot No. | |
| KEY | StorageLocation | StorageLocation | StorageLocation | |
| KEY | SupplyNumber | SupplyNumber | Supply Document No. | |
| KEY | SupplyItem | SupplyItem | Supply Document Item | |
| KEY | SupplyScheduleLine | SupplyScheduleLine | Supply Schedule Line | |
| KEY | ProductAvailabilityDate | ProductAvailabilityDate | Supply Delivery Date | |
| KEY | AssignedSupplyType | AssignedSupplyType | Supply Type | |
| RequestedDeliveryDate | I_SupDmndAllDocTotSup | RequestedDeliveryDate | Requested Delivery Date | |
| TotalQuantity | Total Supply Quantity | |||
| OpenSupplyQuantity | Open Supply Quantity | |||
| AssignedQuantityInBaseUnit | AssignedQuantityInBaseUnit | Total Assigned Quantity | ||
| NormalAssignedQuantityInBsUnt | NormalAssignedQuantityInBsUnt | Normal Assigned Quantity | ||
| PreviewAssignedQuantityInBsUnt | PreviewAssignedQuantityInBsUnt | Preview Assigned Quantity | ||
| ARunTmpAssignedQuantityInBsUnt | ARunTmpAssignedQuantityInBsUnt | Temporary Assigned Quantity | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| CalendarYear | CalendarYear | Year | ||
| CalendarMonth | CalendarMonth | Month | ||
| CalendarMonthName | CalendarMonthName | Month | ||
| CalendarWeek | CalendarWeek | Week | ||
| CalendarDay | CalendarDay | Day | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialType | MaterialType | Product Type | ||
| SupAssgmtSource | SupAssgmtSource | Supply Source | ||
| CrossPlantConfigurableProduct | CrossPlantConfigurableProduct | Generic Product | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| Customer | Customer | Sold-to Party | ||
| SupAssgmtAggrgQtyUnit | ||||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| StockSegment | StockSegment | Stock Segment | ||
| GoodsReceiptDurationInDays | GoodsReceiptDurationInDays | GR proc. time | ||
| _ProductText | _ProductText | |||
| _ProductGroupText | _ProductGroupText | |||
| _ProductTypeText | _ProductTypeText | |||
| _SupSrceText | _SupSrceText | |||
| _SalesOrgText | _SalesOrgText | |||
| _DistrChnl | _DistrChnl | |||
| _Divn | _Divn | |||
| _SalesDist | _SalesDist | |||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _Customer | _Customer | |||
| _BaseUnit | _BaseUnit | |||
| _SupText | _SupText |
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_SupDmndAllDocTotSupCube.
-- 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 I_SupDmndAllDocTotSupCube AS
SELECT
Material,
Plant,
Batch,
StorageLocation,
SupplyNumber,
SupplyItem,
SupplyScheduleLine,
ProductAvailabilityDate,
AssignedSupplyType,
Supply.RequestedDeliveryDate AS RequestedDeliveryDate,
cast( TotalQuantity as abap.quan( 25, 3 )) AS TotalQuantity,
cast( OpenSupplyQuantity as abap.quan( 25, 3 )) AS OpenSupplyQuantity,
AssignedQuantityInBaseUnit,
NormalAssignedQuantityInBsUnt,
PreviewAssignedQuantityInBsUnt,
ARunTmpAssignedQuantityInBsUnt,
BaseUnit,
CalendarYear,
CalendarMonth,
CalendarMonthName,
CalendarWeek,
CalendarDay,
MaterialGroup,
MaterialType,
SupAssgmtSource,
CrossPlantConfigurableProduct,
PurchasingOrganization,
PurchasingGroup,
SalesOrganization,
DistributionChannel,
Division,
SalesDistrict,
CompanyCode,
Customer,
cast( ' ' as meins ) AS SupAssgmtAggrgQtyUnit,
NetPriceAmount,
DocumentCurrency,
StockSegment,
GoodsReceiptDurationInDays
FROM I_SupDmndAllDocTotSup AS Supply
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product AND _ProductText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON MaterialGroup = _ProductGroupText.MaterialGroup AND _ProductGroupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductTypeText AS _ProductTypeText ON MaterialType = _ProductTypeText.ProductType AND _ProductTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnl ON DistributionChannel = _DistrChnl.DistributionChannel AND _DistrChnl.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _Divn ON Division = _Divn.Division AND _Divn.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDist ON SalesDistrict = _SalesDist.SalesDistrict AND _SalesDist.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization AND CompanyCode = _PurchasingOrganization.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- 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 _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_SupDmndAllDocSupTypeT AS _SupText ON AssignedSupplyType = _SupText.AssignedSupplyType AND _SupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SupDmndAllDocSupSourceT AS _SupSrceText ON SupAssgmtSource = _SupSrceText.SupAssgmtSource AND _SupSrceText.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