I_SupDmndAllDocContrCube
Cube View for Contract Details
I_SupDmndAllDocContrCube is a Composite CDS View (Cube) that provides data about "Cube View for Contract Details" in SAP S/4HANA. It reads from 6 data sources and exposes 57 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, RequestedDate, ProductAvailabilityDate, RequirementType. It has 13 associations to related views.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_ARunTimeUnitText | ARunTimeUnitText | left_outer |
| P_ARunAssgmtDmnd | Assgmt | left_outer |
| I_ARunCalendarDate | CalDate | left_outer |
| I_CalendarMonthName | CalMonth | left_outer |
| I_SupDmndAllDocSDItm | Demand | from |
| I_SupDmndOvwPlant | Plant | inner |
Associations (13)
| 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_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_SupDmndAllDocRqmtTypeT | _RqmtText | $projection.RequirementType = _RqmtText.RequirementType and _RqmtText.Language = $session.system_language |
| [1..1] | I_SalesDocument | _SalesDocument | $projection.RequirementDocumentNumber = _SalesDocument.SalesDocument |
Annotations (15)
| 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 | ISUPDMNDADCONTRC | 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 | |
| EndUserText.label | Cube View for Contract Details | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RequirementDocumentNumber | I_SupDmndAllDocSDItm | RequirementDocumentNumber | Requirement Document Number |
| KEY | RequirementDocumentItem | I_SupDmndAllDocSDItm | RequirementDocumentItem | Requirement Document Item |
| KEY | RequestedDate | I_SupDmndAllDocSDItm | RequestedDate | Requested Date |
| KEY | ProductAvailabilityDate | I_SupDmndAllDocSDItm | ProductAvailabilityDate | Delivery Date |
| KEY | RequirementType | I_SupDmndAllDocSDItm | RequirementType | Requirement Type |
| RequestedDeliveryDate | I_SupDmndAllDocSDItm | RequestedDeliveryDate | Requested Delivery Date | |
| RequestedRqmtQtyInBaseUnit | RequestedRqmtQtyInBaseUnit | Order Quantity | ||
| OrderQuantityInBaseUnit | ||||
| ConfirmedRqmtQtyInBaseUnit | ConfirmedRqmtQtyInBaseUnit | Confirmed Quantity | ||
| DeliveredQuantityInBaseUnit | DeliveredQuantityInBaseUnit | Delivered Quantity | ||
| OpenForAssignmentQtyInBsUnt | ||||
| SalesContractReleasedQuantity | SalesContractReleasedQuantity | Referenced Quantity | ||
| OpenReleasedQuantity | RequestedRqmtQtyInBaseUnit | Unreferenced Quantity | ||
| AssignedQuantityInBaseUnit | P_ARunAssgmtDmnd | AssignedQuantityInBaseUnit | Total Assigned Quantity | |
| NormalAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | NormalAssignedQuantityInBsUnt | Normal Assigned Quantity | |
| PreviewAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | PreviewAssignedQuantityInBsUnt | Preview Assigned Quantity | |
| ARunTmpAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | ARunTmpAssignedQuantityInBsUnt | Temporary Assigned Quantity | |
| BaseUnit | I_SupDmndAllDocSDItm | BaseUnit | Unit of Measure | |
| CalendarYear | I_ARunCalendarDate | CalendarYear | Year | |
| CalendarMonth | I_ARunCalendarDate | CalendarMonth | Month | |
| CalendarMonthName | I_CalendarMonthName | CalendarMonthName | Month | |
| CalendarWeek | Week | |||
| CalendarDay | I_ARunCalendarDate | CalendarDay | Day | |
| Material | I_SupDmndAllDocSDItm | Material | Product | |
| MaterialGroup | I_SupDmndAllDocSDItm | MaterialGroup | Product Group | |
| MaterialType | MaterialType | Product Type | ||
| CrossPlantConfigurableProduct | I_SupDmndAllDocSDItm | CrossPlantConfigurableProduct | Generic Article | |
| Plant | I_SupDmndAllDocSDItm | Plant | Valuation Area | |
| SalesOrganization | ||||
| DistributionChannel | ||||
| Division | ||||
| SalesDistrict | ||||
| Customer | ||||
| CompanyCode | ||||
| StorageLocation | I_SupDmndAllDocSDItm | StorageLocation | StorageLocation | |
| SupAssgmtAggrgQtyUnit | ||||
| NetPriceAmount | I_SupDmndAllDocSDItm | NetPriceAmount | Net Price | |
| DocumentCurrency | I_SupDmndAllDocSDItm | DocumentCurrency | Document Currency | |
| AgrmtValdtyEndDate | _SalesDocument | AgrmtValdtyEndDate | ||
| ContractExpiryDateHorizonDays | ||||
| FixedQuantityInBaseUnit | FixedQuantityInBaseUnit | |||
| SupAssgmtReservedQtyInBaseUnit | SupAssgmtReservedQtyInBaseUnit | |||
| ReadyForReleaseQtyInBaseUnit | ReadyForReleaseQtyInBaseUnit | |||
| InboundAssignedQuantityInBsUnt | InboundAssignedQuantityInBsUnt | |||
| ARunPhysSupAssgdQtyInBsUnt | ARunPhysSupAssgdQtyInBsUnt | |||
| _ProductText | _ProductText | |||
| _ProductGroupText | _ProductGroupText | |||
| _ProductTypeText | _ProductTypeText | |||
| _SalesOrgText | _SalesOrgText | |||
| _DistrChnl | _DistrChnl | |||
| _Divn | _Divn | |||
| _SalesDist | _SalesDist | |||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _BaseUnit | _BaseUnit | |||
| _RqmtText | _RqmtText |
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_SupDmndAllDocContrCube.
-- 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_SupDmndAllDocContrCube AS
SELECT
Demand.RequirementDocumentNumber AS RequirementDocumentNumber,
Demand.RequirementDocumentItem AS RequirementDocumentItem,
Demand.RequestedDate AS RequestedDate,
Demand.ProductAvailabilityDate AS ProductAvailabilityDate,
Demand.RequirementType AS RequirementType,
Demand.RequestedDeliveryDate AS RequestedDeliveryDate,
RequestedRqmtQtyInBaseUnit,
( RequestedRqmtQtyInBaseUnit + SalesContractReleasedQuantity) AS OrderQuantityInBaseUnit,
ConfirmedRqmtQtyInBaseUnit,
DeliveredQuantityInBaseUnit,
( RequestedRqmtQtyInBaseUnit - AssignedQuantityInBaseUnit ) AS OpenForAssignmentQtyInBsUnt,
SalesContractReleasedQuantity,
RequestedRqmtQtyInBaseUnit AS OpenReleasedQuantity,
Assgmt.AssignedQuantityInBaseUnit AS AssignedQuantityInBaseUnit,
Assgmt.NormalAssignedQuantityInBsUnt AS NormalAssignedQuantityInBsUnt,
Assgmt.PreviewAssignedQuantityInBsUnt AS PreviewAssignedQuantityInBsUnt,
Assgmt.ARunTmpAssignedQuantityInBsUnt AS ARunTmpAssignedQuantityInBsUnt,
Demand.BaseUnit AS BaseUnit,
CalDate.CalendarYear AS CalendarYear,
CalDate.CalendarMonth AS CalendarMonth,
CalMonth.CalendarMonthName AS CalendarMonthName,
concat_with_space( ARunDisplayTimeUnitText, CalDate.CalendarWeek, 1) AS CalendarWeek,
CalDate.CalendarDay AS CalendarDay,
Demand.Material AS Material,
Demand.MaterialGroup AS MaterialGroup,
MaterialType,
Demand.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
Demand.Plant AS Plant,
coalesce( Demand.SalesOrganization, coalesce( Plant.SalesOrganization, '' ) ) AS SalesOrganization,
coalesce( Demand.DistributionChannel, coalesce( Plant.DistributionChannel, '') ) AS DistributionChannel,
coalesce( Demand.Division, coalesce( Plant.Division, '') ) AS Division,
coalesce( Demand.SalesDistrict, coalesce( Plant.SalesDistrict, '') ) AS SalesDistrict,
cast( coalesce( Demand.SoldToParty, coalesce( Plant.PlantCustomer, '') ) as kunnr ) AS Customer,
coalesce( Demand.CompanyCode, coalesce( Plant.CompanyCode, '') ) AS CompanyCode,
Demand.StorageLocation AS StorageLocation,
cast( ' ' as meins ) AS SupAssgmtAggrgQtyUnit,
Demand.NetPriceAmount AS NetPriceAmount,
Demand.DocumentCurrency AS DocumentCurrency,
_SalesDocument.AgrmtValdtyEndDate AS AgrmtValdtyEndDate,
Dats_Days_Between( cast($session.system_date as dats), _SalesDocument.AgrmtValdtyEndDate) AS ContractExpiryDateHorizonDays,
FixedQuantityInBaseUnit,
SupAssgmtReservedQtyInBaseUnit,
ReadyForReleaseQtyInBaseUnit,
InboundAssignedQuantityInBsUnt,
ARunPhysSupAssgdQtyInBsUnt
FROM I_SupDmndAllDocSDItm AS Demand
INNER JOIN I_SupDmndOvwPlant AS Plant ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ARunAssgmtDmnd AS Assgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ARunCalendarDate AS CalDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CalendarMonthName AS CalMonth ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ARunTimeUnitText AS ARunTimeUnitText ON /* join condition not captured in parsed metadata */
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_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_SupDmndAllDocRqmtTypeT AS _RqmtText ON RequirementType = _RqmtText.RequirementType AND _RqmtText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON RequirementDocumentNumber = _SalesDocument.SalesDocument -- association [1..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