I_SalesAnalyticsCube_1
Sales Volume and Open Sales - Cube
I_SalesAnalyticsCube_1 (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sales
I_SalesAnalyticsCube_1 is a Composite CDS View (Cube) that provides data about "Sales Volume and Open Sales - Cube" in SAP S/4HANA. It reads from 1 data source (P_SalesAnalytics) and exposes 73 fields with key fields SalesDocumentItem, ScheduleLine, BillingPlan, BillingPlanItem, DeliveryDocument. It has 15 associations to related views.
SAP Help Documentation
| Category | Sales Volume |
|---|---|
| Data Category | Cube |
| Corresponding DataSource | 2CISDSLSANACUBE1 |
This CDS view provides the data to answer the following business questions: What is my sales volume in comparison with previous months? Where can I increase my sales volume in the current period, for example, with open orders, open billing requests and open deliveries? 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 . Note For currency conversion, the exchange rate is determined by the exchange rate type and the creation date of the sales order item. However, to avoid potential performance issues caused by the currency conversion, we recommend that you exclude the measures in display currency when querying this cube. Alternatively, you can create a query based on this cube and then define your own measures in the display currency from the corresponding ones in the transaction currency. You do this by using the Custom Analytical Queries app.
Prerequisites
Authorizations
Structure
Parameters The parameters of this CDS view are as follows: P_ExchangeRateType used to specify the exchange rate type for currency conversion The default value is M (average rate). P_DisplayCurrency used to specify the target currency for currency conversion. Further important fields Important fields in this view include the following: Field Name Description Measure or Attribute Comment SlsVolumeNetAmtInDspCrcy Sales Volume Measure Indicates the total net value and quantity of invoices during a specified period. This is based on customer invoices that have not been canceled. OpnSlsOrdsForDelivAmtInDspCrcy Open Orders Measure Confirmed sales orders for which a delivery document has not yet been created in the period of the planned billing date (goods issue date). OpnOutbDelivsForInvcNetAmtInDC Open Deliveries Measure The total net value and quantity of deliveries in which a delivery quantity is not fully invoiced. SalesOrganization Sales Organization Attribute Not applicable CustomerGroup Customer Group Attribute AdditionalCustomerGroup1 - AdditionalCustomerGroup5 Customer Group 1-5 Attribute I_ProductGroup_2 Product Group (that is, Material Group) Attribute Subtotal1AmountInDC - Subtotal6AmountInDC Subtotals 1-6 in Display Currency (from pricing procedure for condition) Attribute
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | SD-ANA |
| Capabilities | Data Provider for Analytical Queries, Data Source for Defining CDS Entities |
| Package | Sales for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is my sales volume in comparison with previous months? </p></li> <li><p>Where can I increase my sales volume in the current period, for example, with open orders, open billing requests and open deliveries?</p><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></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SalesAnalytics | P_SalesAnalytics | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ExchangeRateType | kurst | |
| P_DisplayCurrency | vdm_v_display_currency |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _DisplayCurrency | $projection.DisplayCurrency = _DisplayCurrency.Currency |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_ShippingPoint | _ShippingPoint | $projection.ShippingPoint = _ShippingPoint.ShippingPoint |
| [0..1] | I_BillingDocumentType | _BillingDocumentType | $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType |
| [0..1] | I_SDDocumentObject | _SDDocumentObject | $projection.SDDocumentObject = _SDDocumentObject.SDDocumentObject --AT*2 17.2.2020 tunnel product from view stack below -- |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product -- |
| [0..1] | I_ProductGroup_2 | _ProductGroup | $projection.ProductGroup = _ProductGroup.ProductGroup --AT25.10.2019 adding Product&ProductGroup |
| [0..1] | I_CalendarMonth | _BillingDocDateCalendarMonth | $projection.BillingDocDateCalendarMonth = _BillingDocDateCalendarMonth.CalendarMonth |
| [0..1] | I_CalendarQuarter | _BillingDocDateCalendarQuarter | $projection.BillingDocDateCalendarQuarter = _BillingDocDateCalendarQuarter.CalendarQuarter --AT30.06.2020: missing fk for BillingDocDateYearMonth |
| [0..1] | I_ProductHierarchyNode | _ProductHierarchyNode | $projection.ProductHierarchyNode = _ProductHierarchyNode.ProductHierarchyNode --AT^2: 13.5.2019 explicitley added after ignorepropagation true |
| [0..1] | I_SalesDocumentType | _SalesDocumentType | $projection.SalesDocumentType = _SalesDocumentType.SalesDocumentType --AT^2: 13.5.2019 explicitley added after ignorepropagation true |
| [1..1] | I_SalesDocument | _SalesDocument | $projection.SalesDocument = _SalesDocument.SalesDocument --AT^2: 13.5.2019 explicitley added after ignorepropagation true |
| [0..1] | E_SalesDocumentItemBasic | _Extension | $projection.SalesDocument = _Extension.SalesDocument and $projection.SalesDocumentItem = _Extension.SalesDocumentItem |
| [0..1] | E_DeliveryDocumentItem | _DelivDocItemExtension | $projection.DeliveryDocument = _DelivDocItemExtension.DeliveryDocument and $projection.DeliveryDocumentItem = _DelivDocItemExtension.DeliveryDocumentItem |
| [0..1] | E_BillingDocumentItem | _BillgDocItemExtension | $projection.BillingDocument = _BillgDocItemExtension.BillingDocument and $projection.BillingDocumentItem = _BillgDocItemExtension.BillingDocumentItem |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| EndUserText.label | Sales Volume and Open Sales - Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.sqlViewName | ISDSLSANACUBE1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Aggregation.allowPrecisionLoss | true | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocumentItem | SalesDocumentItem | Sales Document Item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line Number | |
| KEY | BillingPlan | BillingPlan | Billing Plan Number / Invoicing Plan Number | |
| KEY | BillingPlanItem | BillingPlanItem | Item for billing plan/invoice plan/payment cards | |
| KEY | DeliveryDocument | DeliveryDocument | Outbound Delivery | |
| KEY | DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | |
| KEY | BillingDocument | BillingDocument | Billing Document | |
| KEY | BillingDocumentItem | BillingDocumentItem | Billing Item | |
| SoldToParty | SoldToParty | Sold-to Party | ||
| SoldToPartyName | SoldToPartyName | Name of Sold-to Party | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| 5addedAdditionalCustomerGroup1 | ||||
| _AdditionalCustomerGroup1 | _AdditionalCustomerGroup1 | |||
| AdditionalCustomerGroup2 | AdditionalCustomerGroup2 | Customer Group 2 | ||
| _AdditionalCustomerGroup2 | _AdditionalCustomerGroup2 | |||
| AdditionalCustomerGroup3 | AdditionalCustomerGroup3 | Customer Group 3 | ||
| _AdditionalCustomerGroup3 | _AdditionalCustomerGroup3 | |||
| AdditionalCustomerGroup4 | AdditionalCustomerGroup4 | Customer Group 4 | ||
| _AdditionalCustomerGroup4 | _AdditionalCustomerGroup4 | |||
| AdditionalCustomerGroup5 | AdditionalCustomerGroup5 | Customer Group 5 | ||
| _AdditionalCustomerGroup5 | _AdditionalCustomerGroup5 | |||
| Customer | Customer Number | |||
| SDDocumentCategory | SDDocumentCategory | SD Document Category | ||
| SDDocumentObject | SDDocumentObject | SD Document Object | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| Division | Division | Internal Division ID | ||
| TradingPartnerasPartnerCompany | ||||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| CE1805willprobablydeprecated | ||||
| 2019addProductdeprecateMaterialMaterial | ||||
| OriginallyRequestedMaterial | OriginallyRequestedMaterial | Material Entered | ||
| InternationalArticleNumber | InternationalArticleNumber | International Article Number (EAN/UPC) | ||
| _ProductHierarchyNode | _ProductHierarchyNode | |||
| ProductGroup | ProductGroup | Product Sold Group | ||
| 5addedAdditionalMaterialGroup1 | ||||
| _AdditionalMaterialGroup1 | _AdditionalMaterialGroup1 | |||
| AdditionalMaterialGroup2 | AdditionalMaterialGroup2 | Material Group 2 | ||
| _AdditionalMaterialGroup2 | _AdditionalMaterialGroup2 | |||
| AdditionalMaterialGroup3 | AdditionalMaterialGroup3 | Material Group 3 | ||
| _AdditionalMaterialGroup3 | _AdditionalMaterialGroup3 | |||
| AdditionalMaterialGroup4 | AdditionalMaterialGroup4 | Material Group 4 | ||
| _AdditionalMaterialGroup4 | _AdditionalMaterialGroup4 | |||
| AdditionalMaterialGroup5 | AdditionalMaterialGroup5 | Material Group 5 | ||
| _AdditionalMaterialGroup5 | _AdditionalMaterialGroup5 | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BillingDocumentDate | Date of Billing | |||
| BillingDocumentDateYear | Year of Billing | |||
| BillingDocDateCalendarQuarter | Calendar Quarter of Billing | |||
| BillingDocDateYearMonth | Month/Year of Billing | |||
| DCLCheckforDeliveryBillingDocumentType | ||||
| CalendarDate | Billing Date | |||
| DeliveryDate | DeliveryDate | Schedule Line Date | ||
| OpnSOForOrdReltdInvcsNetAmount | OpnSOForOrdReltdInvcsNetAmount | Open Sales Orders for Ord.Reltd Invoices Net Amount | ||
| OpnSlsOrdsForOrdReltdInvcsQty | OpnSlsOrdsForOrdReltdInvcsQty | Open Sales Orders for Order-Related Billing Quantity | ||
| OpnRetsForOrdReltdInvcsNetAmt | OpnRetsForOrdReltdInvcsNetAmt | Open Return For Order Related Invoices Net Amount | ||
| OpnRetsForOrdReltdInvcsQty | OpnRetsForOrdReltdInvcsQty | Open Return For Order Related Invoices Quantity | ||
| OpenSlsOrdersForDelivNetAmount | OpenSlsOrdersForDelivNetAmount | Open Sales Orders for Deliveries Net Amt in Trans. Crcy | ||
| OpnSlsOrdrsForDelivQuantity | OpnSlsOrdrsForDelivQuantity | Open Confirmed Sales Orders for Deliveries Quantity in BU | ||
| OpnSlsOrdsForInvcPlansNetAmt | OpnSlsOrdsForInvcPlansNetAmt | Open Sls Orders for Inv Plans Net Amt in Trns Crcy | ||
| OpnOutbDelivsForInvcNetAmt | OpnOutbDelivsForInvcNetAmt | Net Amount of Open Deliveries for Invoices | ||
| 2022introductionofenlargedDec19 | ||||
| 2successors | ||||
| 2022introductionofenlargedDec19 | ||||
| 2successors | ||||
| 2022introductionofenlargedDec19 | ||||
| 2successors | ||||
| 2022introductionofenlargedDec19 | ||||
| 2successors | ||||
| 2020fkadded | ||||
| _GlobalCompany | _SoldToParty | _GlobalCompany |
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_SalesAnalyticsCube_1.
-- 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: ISDSLSANACUBE1
-- Parameters: P_ExchangeRateType : kurst, P_DisplayCurrency : vdm_v_display_currency
CREATE VIEW I_SalesAnalyticsCube_1 AS
SELECT
SalesDocumentItem,
ScheduleLine,
BillingPlan,
BillingPlanItem,
DeliveryDocument,
DeliveryDocumentItem,
BillingDocument,
BillingDocumentItem,
SoldToParty,
SoldToPartyName,
CustomerGroup,
AdditionalCustomerGroup2,
AdditionalCustomerGroup3,
AdditionalCustomerGroup4,
AdditionalCustomerGroup5,
cast (SoldToParty as kunnr) AS Customer,
SDDocumentCategory,
SDDocumentObject,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesDistrict,
OriginallyRequestedMaterial,
InternationalArticleNumber,
ProductGroup,
AdditionalMaterialGroup2,
AdditionalMaterialGroup3,
AdditionalMaterialGroup4,
AdditionalMaterialGroup5,
ProfitCenter,
cast(PSA.CalendarDate as billing_document_date) AS BillingDocumentDate,
cast(Period.CalendarYear as billing_document_date_year) AS BillingDocumentDateYear,
cast(Period.CalendarQuarter as billing_doc_date_cal_quarter ) AS BillingDocDateCalendarQuarter,
cast(Period.YearMonth as billing_doc_date_year_month) AS BillingDocDateYearMonth,
DeliveryDate,
OpnSOForOrdReltdInvcsNetAmount,
OpnSlsOrdsForOrdReltdInvcsQty,
OpnRetsForOrdReltdInvcsNetAmt,
OpnRetsForOrdReltdInvcsQty,
OpenSlsOrdersForDelivNetAmount,
OpnSlsOrdrsForDelivQuantity,
OpnSlsOrdsForInvcPlansNetAmt,
OpnOutbDelivsForInvcNetAmt,
successor: 'ShpdNotInvcdDelivsNetAmount_2' AS 2022introductionofenlargedDec19,
successor: 'CustomerCreditMemoNetAmount_2' AS 2020fkadded,
_SoldToParty._GlobalCompany AS _GlobalCompany
FROM P_SalesAnalytics
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_ShippingPoint AS _ShippingPoint ON ShippingPoint = _ShippingPoint.ShippingPoint -- association [0..1]
LEFT OUTER JOIN I_BillingDocumentType AS _BillingDocumentType ON BillingDocumentType = _BillingDocumentType.BillingDocumentType -- association [0..1]
LEFT OUTER JOIN I_SDDocumentObject AS _SDDocumentObject ON SDDocumentObject = _SDDocumentObject.SDDocumentObject -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup ON ProductGroup = _ProductGroup.ProductGroup -- association [0..1]
LEFT OUTER JOIN I_CalendarMonth AS _BillingDocDateCalendarMonth ON BillingDocDateCalendarMonth = _BillingDocDateCalendarMonth.CalendarMonth -- association [0..1]
LEFT OUTER JOIN I_CalendarQuarter AS _BillingDocDateCalendarQuarter ON BillingDocDateCalendarQuarter = _BillingDocDateCalendarQuarter.CalendarQuarter -- association [0..1]
LEFT OUTER JOIN I_ProductHierarchyNode AS _ProductHierarchyNode ON ProductHierarchyNode = _ProductHierarchyNode.ProductHierarchyNode -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentType AS _SalesDocumentType ON SalesDocumentType = _SalesDocumentType.SalesDocumentType -- association [0..1]
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument -- association [1..1]
LEFT OUTER JOIN E_SalesDocumentItemBasic AS _Extension ON SalesDocument = _Extension.SalesDocument AND SalesDocumentItem = _Extension.SalesDocumentItem -- association [0..1]
LEFT OUTER JOIN E_DeliveryDocumentItem AS _DelivDocItemExtension ON DeliveryDocument = _DelivDocItemExtension.DeliveryDocument AND DeliveryDocumentItem = _DelivDocItemExtension.DeliveryDocumentItem -- association [0..1]
LEFT OUTER JOIN E_BillingDocumentItem AS _BillgDocItemExtension ON BillingDocument = _BillgDocItemExtension.BillingDocument AND BillingDocumentItem = _BillgDocItemExtension.BillingDocumentItem -- 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