P_RepFinData_RT_AggrNRL_02
P_RepFinData_RT_AggrNRL_02 is a Composite CDS View in SAP S/4HANA. It reads from 6 data sources and exposes 68 fields.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnUnit_3 | I_CnsldtnUnit_3 | inner |
| I_CnsldtnUnitByTimeVersion | I_CnsldtnUnitByTimeVersion | inner |
| I_CnsldtnVersion | I_CnsldtnVersion | inner |
| I_CompanyCode | I_CompanyCode | inner |
| I_FiscalCalendarDate | I_FiscalCalendarDate | inner |
| P_RepFinData_RT_AggrNRL_01 | P_RepFinData_RT_AggrNRL_01 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CreationDateTimeRgFr | timestamp | |
| P_CreationDateTimeRgTo | timestamp |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRFDRTAGNRL_02 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (68)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ConsolidationDimension | I_CnsldtnUnit_3 | ConsolidationDimension | ||
| ConsolidationUnit | I_CnsldtnUnit_3 | ConsolidationUnit | ||
| ReferenceChartOfAccounts | I_CompanyCode | ChartOfAccounts | ||
| ConsolidationVersion | I_CnsldtnVersion | ConsolidationVersion | ||
| FSItemMappingVersion | I_CnsldtnVersion | FSItemMappingVersion | ||
| ConsolidationLedger | I_CnsldtnVersion | ConsolidationLedger | ||
| GroupCurrency | I_CnsldtnVersion | GroupCurrency | ||
| DocumentEntryIsInGroupCurrency | I_CnsldtnUnitByTimeVersion | DocumentEntryIsInGroupCurrency | ||
| CnsldtnUnitGroupCrcySource | I_CnsldtnUnitByTimeVersion | CnsldtnUnitGroupCrcySource | ||
| CnsldtnUnitLocalCrcySource | I_CnsldtnUnitByTimeVersion | CnsldtnUnitLocalCrcySource | ||
| FiscalPeriod | I_FiscalCalendarDate | FiscalPeriod | ||
| FiscalYear | I_FiscalCalendarDate | FiscalYear | ||
| FiscalYearPeriod | I_FiscalCalendarDate | FiscalYearPeriod | ||
| BalanceTransactionCurrency | Source | BalanceTransactionCurrency | ||
| BaseUnit | Source | BaseUnit | ||
| FinancialTransactionType | Source | FinancialTransactionType | ||
| FunctionalArea | Source | FunctionalArea | ||
| BusinessArea | Source | BusinessArea | ||
| CostCenter | Source | CostCenter | ||
| GLAccount | Source | GLAccount | ||
| ProfitCenter | Source | ProfitCenter | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | |||
| AmountInLocalCurrency | AmountInLocalCurrency | |||
| AmountInGroupCurrency | AmountInGroupCurrency | |||
| QuantityInBaseUnit | QuantityInBaseUnit | |||
| osl | Source | osl | ||
| vsl | Source | vsl | ||
| bsl | Source | bsl | ||
| csl | Source | csl | ||
| dsl | Source | dsl | ||
| esl | Source | esl | ||
| fsl | Source | fsl | ||
| gsl | Source | gsl | ||
| Segment | Source | Segment | ||
| PartnerCompany | Source | PartnerCompany | ||
| CompanyCode | Source | CompanyCode | ||
| ChartOfAccounts | Source | ChartOfAccounts | ||
| AssignmentReference | Source | AssignmentReference | ||
| ControllingArea | Source | ControllingArea | ||
| PartnerCostCenter | Source | PartnerCostCenter | ||
| PartnerProfitCenter | Source | PartnerProfitCenter | ||
| PartnerFunctionalArea | Source | PartnerFunctionalArea | ||
| PartnerBusinessArea | Source | PartnerBusinessArea | ||
| PartnerSegment | Source | PartnerSegment | ||
| OrderID | Source | OrderID | ||
| Customer | Source | Customer | ||
| Supplier | Source | Supplier | ||
| Material | Source | Material | ||
| MaterialGroup | Source | MaterialGroup | ||
| Plant | Source | Plant | ||
| WBSElementExternalID | Source | WBSElementExternalID | ||
| Project | Source | Project | ||
| BillingDocumentType | Source | BillingDocumentType | ||
| SalesOrganization | Source | SalesOrganization | ||
| DistributionChannel | Source | DistributionChannel | ||
| OrganizationDivision | Source | OrganizationDivision | ||
| SoldProduct | Source | SoldProduct | ||
| SoldProductGroup | Source | SoldProductGroup | ||
| CustomerGroup | Source | CustomerGroup | ||
| CustomerSupplierCountry | Source | CustomerSupplierCountry | ||
| CustomerSupplierIndustry | Source | CustomerSupplierIndustry | ||
| SalesDistrict | Source | SalesDistrict | ||
| BillToParty | Source | BillToParty | ||
| ShipToParty | Source | ShipToParty | ||
| CustomerSupplierCorporateGroup | Source | CustomerSupplierCorporateGroup | ||
| WBSElementInternalID | Source | WBSElementInternalID | ||
| CreationDateTime | Source | CreationDateTime | ||
| SourceLedger | Source | SourceLedger |
@AbapCatalog.sqlViewName: 'PRFDRTAGNRL_02'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
// Aggregate over timestamp and posting date
define view P_RepFinData_RT_AggrNRL_02
with parameters
P_CreationDateTimeRgFr :timestamp,
P_CreationDateTimeRgTo :timestamp
as select from P_RepFinData_RT_AggrNRL_01
(P_CreationDateTimeRgFr : :P_CreationDateTimeRgFr,
P_CreationDateTimeRgTo : :P_CreationDateTimeRgTo) as Source
inner join I_CompanyCode on Source.CompanyCode = I_CompanyCode.CompanyCode
inner join I_CnsldtnUnit_3 on I_CompanyCode.Company = I_CnsldtnUnit_3.Company
inner join I_CnsldtnUnitByTimeVersion on I_CnsldtnUnit_3.ConsolidationDimension = I_CnsldtnUnitByTimeVersion.ConsolidationDimension
and I_CnsldtnUnit_3.ConsolidationUnit = I_CnsldtnUnitByTimeVersion.ConsolidationUnit
and Source.FiscalYearPeriod between I_CnsldtnUnitByTimeVersion.FromFiscalYearPeriod and I_CnsldtnUnitByTimeVersion.ToFiscalYearPeriod
and I_CnsldtnUnitByTimeVersion.CnsldtnDataTransferMethod = 'H'
inner join I_CnsldtnVersion on I_CnsldtnUnitByTimeVersion.CnsldtnUnitAttributeVersion = I_CnsldtnVersion.CnsldtnUnitAttributeVersion
and Source.Ledger = I_CnsldtnVersion.CnsldtnSourceLedger
and I_CnsldtnVersion.CnsldtnIsPlanVersion = ''
inner join I_FiscalCalendarDate on (
I_CnsldtnUnitByTimeVersion.FiscalYearVariant = I_FiscalCalendarDate.FiscalYearVariant
and Source.PostingDate = I_FiscalCalendarDate.CalendarDate
and I_CnsldtnUnitByTimeVersion.FiscalYearVariant <> ''
and I_CnsldtnUnitByTimeVersion.FiscalYearVariant is not null
)
or (
I_CnsldtnVersion.FiscalYearVariant = I_FiscalCalendarDate.FiscalYearVariant
and Source.PostingDate = I_FiscalCalendarDate.CalendarDate
and(
I_CnsldtnUnitByTimeVersion.FiscalYearVariant = ''
or I_CnsldtnUnitByTimeVersion.FiscalYearVariant is null
)
and I_CnsldtnVersion.FiscalYearVariant <> ''
)
or (
I_FiscalCalendarDate.FiscalYearVariant = 'K4'
and Source.PostingDate = I_FiscalCalendarDate.CalendarDate
and(
I_CnsldtnUnitByTimeVersion.FiscalYearVariant = ''
or I_CnsldtnUnitByTimeVersion.FiscalYearVariant is null
)
and I_CnsldtnVersion.FiscalYearVariant = ''
)
and I_FiscalCalendarDate.FiscalYearPeriod between I_CnsldtnUnitByTimeVersion.FromFiscalYearPeriod and I_CnsldtnUnitByTimeVersion.ToFiscalYearPeriod
{
I_CnsldtnUnit_3.ConsolidationDimension,
I_CnsldtnUnit_3.ConsolidationUnit,
I_CompanyCode.ChartOfAccounts as ReferenceChartOfAccounts,
I_CnsldtnVersion.ConsolidationVersion,
I_CnsldtnVersion.FSItemMappingVersion,
I_CnsldtnVersion.ConsolidationLedger,
I_CnsldtnVersion.GroupCurrency,
I_CnsldtnUnitByTimeVersion.DocumentEntryIsInGroupCurrency,
I_CnsldtnUnitByTimeVersion.CnsldtnUnitGroupCrcySource,
I_CnsldtnUnitByTimeVersion.CnsldtnUnitLocalCrcySource,
I_FiscalCalendarDate.FiscalPeriod,
I_FiscalCalendarDate.FiscalYear,
I_FiscalCalendarDate.FiscalYearPeriod,
// mandatory standard fields
/*Source.PartnerCompany,*/
Source.BalanceTransactionCurrency,
Source.BaseUnit,
Source.FinancialTransactionType,
Source.FunctionalArea,
Source.BusinessArea,
Source.CostCenter,
Source.GLAccount,
Source.ProfitCenter,
AmountInTransactionCurrency,
AmountInLocalCurrency,
AmountInGroupCurrency,
QuantityInBaseUnit,
Source.osl,
Source.vsl,
Source.bsl,
Source.csl,
Source.dsl,
Source.esl,
Source.fsl,
Source.gsl,
Source.Segment,
// additional fields
Source.PartnerCompany,
Source.CompanyCode,
Source.ChartOfAccounts,
Source.AssignmentReference,
Source.ControllingArea,
Source.PartnerCostCenter,
Source.PartnerProfitCenter,
Source.PartnerFunctionalArea,
Source.PartnerBusinessArea,
Source.PartnerSegment,
Source.OrderID,
Source.Customer,
Source.Supplier,
Source.Material,
Source.MaterialGroup,
Source.Plant,
Source.WBSElementExternalID,
Source.Project,
Source.BillingDocumentType,
Source.SalesOrganization,
Source.DistributionChannel,
Source.OrganizationDivision,
Source.SoldProduct,
Source.SoldProductGroup,
Source.CustomerGroup,
Source.CustomerSupplierCountry,
Source.CustomerSupplierIndustry,
Source.SalesDistrict,
Source.BillToParty,
Source.ShipToParty,
Source.CustomerSupplierCorporateGroup,
Source.WBSElementInternalID,
Source.CreationDateTime,
// specific fileds for this cds view
Source.SourceLedger
/*Source.Ledger,*/
/*Source.PostingDate,*/
/*Source.FiscalYearPeriod,*/
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNUNITBYTIMEVERSION",
"I_CNSLDTNUNIT_3",
"I_CNSLDTNVERSION",
"I_COMPANYCODE",
"I_FISCALCALENDARDATE",
"P_REPFINDATA_RT_AGGRNRL_01"
],
"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