P_SPP_TrainingData05A1
P_SPP_TrainingData05A1 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_SPP_TrainingData04, P_SPP_TrainingDate02) and exposes 11 fields with key fields YearMonth, PartOfMonth, SalesOrganization, DistributionChannel, Division.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_SPP_TrainingData04 | Data04 | left_outer |
| P_SPP_TrainingDate02 | Date02 | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSDSPPTDA05A1 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (11)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | YearMonth | P_SPP_TrainingDate02 | YearMonth | |
| KEY | PartOfMonth | P_SPP_TrainingDate02 | PartOfMonth | |
| KEY | SalesOrganization | SalesOrganization | ||
| KEY | DistributionChannel | DistributionChannel | ||
| KEY | Division | Division | ||
| KEY | SoldToParty | SoldToParty | ||
| KEY | CustomerGroup | CustomerGroup | ||
| KEY | Material | Material | ||
| KEY | MaterialGroup | MaterialGroup | ||
| KEY | BillingDocumentType | BillingDocumentType | ||
| Amount | Amount |
@AbapCatalog.sqlViewName: 'PSDSPPTDA05A1'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_SPP_TrainingData05A1
as select from P_SPP_TrainingDate02 as Date02
left outer join P_SPP_TrainingData04 as Data04
on Date02.YearMonth = Data04.YearMonth
and Date02.PartOfMonth >= Data04.PartOfMonth
{
key Date02.YearMonth,
key Date02.PartOfMonth,
key SalesOrganization,
key DistributionChannel,
key Division,
key SoldToParty,
key CustomerGroup,
key Material,
key MaterialGroup,
key BillingDocumentType,
Amount
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_SPP_TRAININGDATA04",
"P_SPP_TRAININGDATE02"
],
"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