C_SubscrpnProdSalesCountry
Consumption view - subcription product sales country/region
C_SubscrpnProdSalesCountry is a Consumption CDS View that provides data about "Consumption view - subcription product sales country/region" in SAP S/4HANA. It reads from 1 data source (I_Productsalescountry) and exposes 12 fields with key fields Product, ProductSalesOrg, ProductDistributionChnl, Country, TaxCategory. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Productsalescountry | SalesCountry | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [1..1] | C_SubscrpnProdSlsDelivery | _SubscrpnProdSlsDelivery | $projection.Product = _SubscrpnProdSlsDelivery.Product and $projection.ProductSalesOrg = _SubscrpnProdSlsDelivery.ProductSalesOrg and $projection.ProductDistributionChnl = _SubscrpnProdSlsDelivery.ProductDistributionChnl |
| [0..1] | I_Taxclass | _TaxClassification | $projection.TaxClassification = _TaxClassification.TaxClassification and $projection.TaxCategory = _TaxClassification.TaxClassificationCategory |
| [0..1] | I_Taxclasstext | _TaxClassText | $projection.TaxClassification = _TaxClassText.TaxClassification and $projection.TaxCategory = _TaxClassText.TaxClassificationCategory and _TaxClassText.Language = $session.system_language |
| [1..1] | I_Country | _Country | $projection.Country = _Country.Country |
| [0..*] | I_CountryText | _CountryName | $projection.Country = _CountryName.Country |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSPRDSALESCNTRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Consumption view - subcription product sales country/region | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_Productsalescountry | Product | Product Sold |
| KEY | ProductSalesOrg | I_Productsalescountry | ProductSalesOrg | Sales Org. |
| KEY | ProductDistributionChnl | I_Productsalescountry | ProductDistributionChnl | Distr. Channel |
| KEY | Country | I_Productsalescountry | Country | Venue: Ctry/Reg |
| KEY | TaxCategory | I_Productsalescountry | TaxCategory | Tax Code |
| TaxClassification | I_Productsalescountry | TaxClassification | Tax class. | |
| _Product | _Product | |||
| _SubscrpnProdSlsDelivery | _SubscrpnProdSlsDelivery | |||
| _TaxClassification | _TaxClassification | |||
| _TaxClassText | _TaxClassText | |||
| _Country | _Country | |||
| _CountryName | _CountryName |
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_SubscrpnProdSalesCountry.
-- 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: CSPRDSALESCNTRY
CREATE VIEW C_SubscrpnProdSalesCountry AS
SELECT
SalesCountry.Product AS Product,
SalesCountry.ProductSalesOrg AS ProductSalesOrg,
SalesCountry.ProductDistributionChnl AS ProductDistributionChnl,
SalesCountry.Country AS Country,
SalesCountry.TaxCategory AS TaxCategory,
SalesCountry.TaxClassification AS TaxClassification
FROM I_Productsalescountry AS SalesCountry
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [1..1]
LEFT OUTER JOIN C_SubscrpnProdSlsDelivery AS _SubscrpnProdSlsDelivery ON Product = _SubscrpnProdSlsDelivery.Product AND ProductSalesOrg = _SubscrpnProdSlsDelivery.ProductSalesOrg AND ProductDistributionChnl = _SubscrpnProdSlsDelivery.ProductDistributionChnl -- association [1..1]
LEFT OUTER JOIN I_Taxclass AS _TaxClassification ON TaxClassification = _TaxClassification.TaxClassification AND TaxCategory = _TaxClassification.TaxClassificationCategory -- association [0..1]
LEFT OUTER JOIN I_Taxclasstext AS _TaxClassText ON TaxClassification = _TaxClassText.TaxClassification AND TaxCategory = _TaxClassText.TaxClassificationCategory AND _TaxClassText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country -- association [1..1]
LEFT OUTER JOIN I_CountryText AS _CountryName ON Country = _CountryName.Country -- association [0..*]
;
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