P_SPP_TrainingData05C
P_SPP_TrainingData05C is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_SPP_TrainingData04) and exposes 13 fields with key fields YearMonth, SalesOrganization, DistributionChannel, Division, SoldToParty.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SPP_TrainingData04 | P_SPP_TrainingData04 | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSDSPPTDA05C | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | YearMonth | YearMonth | ||
| KEY | SalesOrganization | SalesOrganization | ||
| KEY | DistributionChannel | DistributionChannel | ||
| KEY | Division | Division | ||
| KEY | SoldToParty | SoldToParty | ||
| KEY | CustomerGroup | CustomerGroup | ||
| KEY | Material | Material | ||
| KEY | MaterialGroup | MaterialGroup | ||
| KEY | BillingDocumentType | BillingDocumentType | ||
| CntByMonth | ||||
| SumAmtByMonth | ||||
| MaxAmtByMonth | ||||
| MinAmtByMonth |
@AbapCatalog.sqlViewName: 'PSDSPPTDA05C'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_SPP_TrainingData05C
as select from P_SPP_TrainingData04
{
key YearMonth,
key SalesOrganization,
key DistributionChannel,
key Division,
key SoldToParty,
key CustomerGroup,
key Material,
key MaterialGroup,
key BillingDocumentType,
count( * ) as CntByMonth,
sum( Amount ) as SumAmtByMonth,
max( Amount ) as MaxAmtByMonth,
min( Amount ) as MinAmtByMonth
}
group by
YearMonth,
SalesOrganization,
DistributionChannel,
Division,
SoldToParty,
CustomerGroup,
Material,
MaterialGroup,
BillingDocumentType
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_SPP_TRAININGDATA04"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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