P_RepFinData_RT_Aggr_07
P_RepFinData_RT_Aggr_07 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnUnit, P_RepFinData_RT_Aggr_06) and exposes 57 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnUnit | I_CnsldtnUnit | inner |
| P_RepFinData_RT_Aggr_06 | P_RepFinData_RT_Aggr_06 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CreationDateTimeRgFr | timestamp | |
| P_CreationDateTimeRgTo | timestamp |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PRFDRTAG_07 | 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 (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| SubItemCategory | Source | SubItemCategory | ||
| SubItem | Source | SubItem | ||
| PartnerConsolidationUnit | Source | PartnerConsolidationUnit | ||
| BaseUnit | Source | BaseUnit | ||
| QuantityInBaseUnit | Source | QuantityInBaseUnit | ||
| FinancialTransactionType | Source | FinancialTransactionType | ||
| FunctionalArea | Source | FunctionalArea | ||
| BusinessArea | Source | BusinessArea | ||
| CostCenter | Source | CostCenter | ||
| GLAccount | Source | GLAccount | ||
| ProfitCenter | Source | ProfitCenter | ||
| Segment | Source | Segment | ||
| AmountInLocalCurrency | Source | AmountInLocalCurrency | ||
| AmountInGroupCurrency | Source | AmountInGroupCurrency | ||
| FinancialStatementItem | Source | FinancialStatementItem | ||
| ConsolidationChartOfAccounts | Source | ConsolidationChartOfAccounts | ||
| ConsolidationUnitLocalCurrency | Source | ConsolidationUnitLocalCurrency | ||
| ConsolidationDimension | Source | ConsolidationDimension | ||
| ConsolidationUnit | Source | ConsolidationUnit | ||
| ConsolidationVersion | Source | ConsolidationVersion | ||
| ConsolidationLedger | Source | ConsolidationLedger | ||
| GroupCurrency | Source | GroupCurrency | ||
| FiscalPeriod | Source | FiscalPeriod | ||
| FiscalYear | Source | FiscalYear | ||
| 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 |
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PRFDRTAG_07'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@AccessControl.authorizationCheck: #NOT_ALLOWED
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.sizeCategory: #XL
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
define view P_RepFinData_RT_Aggr_07
with parameters
P_CreationDateTimeRgFr :timestamp,
P_CreationDateTimeRgTo :timestamp
as select from P_RepFinData_RT_Aggr_06
(P_CreationDateTimeRgFr : :P_CreationDateTimeRgFr,
P_CreationDateTimeRgTo : :P_CreationDateTimeRgTo) as Source
// TF103A: Breakdown info for transaction currency (RTCUR) depending on breakdown category (ITGRP)
left outer to one join I_BreakdownCategoryField tf103a_rtcur on Source.ConsolidationChartOfAccounts = tf103a_rtcur.ConsolidationChartOfAccounts
and Source.BreakdownCategory = tf103a_rtcur.BreakdownCategory
and tf103a_rtcur.BreakdownCatFieldName = 'RTCUR'
// TF160: Cons. unit master data
inner join I_CnsldtnUnit on Source.ConsolidationDimension = I_CnsldtnUnit.ConsolidationDimension
and Source.ConsolidationUnit = I_CnsldtnUnit.ConsolidationUnit
{
// Value in transaction currency (TSL): Evaluate breakdown type for RTCUR
case //only 0 and 2 are possible for RTCUR
when tf103a_rtcur.BreakdownType = '0'
or tf103a_rtcur.BreakdownType is null
// no breakdown
then
// TSL is never empty: Set local or group currency as default
case I_CnsldtnUnit.DocumentEntryIsInGroupCurrency
when '' then Source.AmountInLocalCurrency
when 'X' // The cons. unit provides only values in group currency
then Source.AmountInGroupCurrency
end
when tf103a_rtcur.BreakdownType = '2'
// breakdown required, default allowed
then Source.AmountInTransactionCurrency
end as AmountInTransactionCurrency,
// Transaction currency key (RTCUR): Evaluate breakdown type
case //only 0 and 2 are possible for RTCUR
when tf103a_rtcur.BreakdownType = '0'
or tf103a_rtcur.BreakdownType is null
// no breakdown
then
// RTCUR is never empty: Set local or group currency as default
case I_CnsldtnUnit.DocumentEntryIsInGroupCurrency
when '' then Source.ConsolidationUnitLocalCurrency
when 'X' // The cons. unit provides only values in group currency
then Source.GroupCurrency
end
when tf103a_rtcur.BreakdownType = '2'
// breakdown required, default allowed
then Source.BalanceTransactionCurrency
end as BalanceTransactionCurrency,
// case
Source.SubItemCategory,
Source.SubItem,
Source.PartnerConsolidationUnit,
Source.BaseUnit,
Source.QuantityInBaseUnit,
Source.FinancialTransactionType,
Source.FunctionalArea,
Source.BusinessArea,
Source.CostCenter,
Source.GLAccount,
Source.ProfitCenter,
Source.Segment,
Source.AmountInLocalCurrency,
Source.AmountInGroupCurrency,
// I_CnsldtnFinStmntItem
/*Source.BreakdownCategory,*/
// I_FSItemMappingAssgmtWithVers
Source.FinancialStatementItem,
Source.ConsolidationChartOfAccounts,
// P_ConsolidationUnitCurrency
Source.ConsolidationUnitLocalCurrency,
// tfin010
Source.ConsolidationDimension,
Source.ConsolidationUnit,
// I_CnsldtnVersion
Source.ConsolidationVersion,
// t881
Source.ConsolidationLedger,
Source.GroupCurrency,
// I_FiscalCalendarDate / Or other source
Source.FiscalPeriod,
Source.FiscalYear,
// mandatory standard fields
/*Source.BalanceTransactionCurrency,*/
/*Source.AmountInTransactionCurrency,*/
// 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
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BREAKDOWNCATEGORYFIELD",
"I_CNSLDTNUNIT",
"P_REPFINDATA_RT_AGGR_06"
],
"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