P_RealTimeRptdFinData_06
P_RealTimeRptdFinData_06 is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_JournalEntryItem, I_CnsldtnUnit, P_RealTimeRptdFinData_05) and exposes 63 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | _acdoca | inner |
| I_CnsldtnUnit | I_CnsldtnUnit | inner |
| P_RealTimeRptdFinData_05 | P_RealTimeRptdFinData_05 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CreationDateTimeRgFr | timestamp | |
| P_CreationDateTimeRgTo | timestamp |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PREALTIMERFD_06 | 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 (63)
| 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 | ||
| CompanyCode | I_JournalEntryItem | CompanyCode | ||
| ChartOfAccounts | I_JournalEntryItem | ChartOfAccounts | ||
| AssignmentReference | I_JournalEntryItem | AssignmentReference | ||
| ControllingArea | I_JournalEntryItem | ControllingArea | ||
| PartnerCostCenter | I_JournalEntryItem | PartnerCostCenter | ||
| PartnerProfitCenter | I_JournalEntryItem | PartnerProfitCenter | ||
| PartnerFunctionalArea | I_JournalEntryItem | PartnerFunctionalArea | ||
| PartnerBusinessArea | I_JournalEntryItem | PartnerBusinessArea | ||
| PartnerCompany | I_JournalEntryItem | PartnerCompany | ||
| PartnerSegment | I_JournalEntryItem | PartnerSegment | ||
| OrderID | I_JournalEntryItem | OrderID | ||
| Customer | I_JournalEntryItem | Customer | ||
| Supplier | I_JournalEntryItem | Supplier | ||
| Material | I_JournalEntryItem | Material | ||
| MaterialGroup | I_JournalEntryItem | MaterialGroup | ||
| Plant | I_JournalEntryItem | Plant | ||
| WBSElementExternalID | I_JournalEntryItem | WBSElement | ||
| WBSElement | I_JournalEntryItem | WBSElement | ||
| Project | I_JournalEntryItem | Project | ||
| BillingDocumentType | I_JournalEntryItem | BillingDocumentType | ||
| SalesOrganization | I_JournalEntryItem | SalesOrganization | ||
| DistributionChannel | I_JournalEntryItem | DistributionChannel | ||
| OrganizationDivision | I_JournalEntryItem | OrganizationDivision | ||
| SoldProduct | I_JournalEntryItem | SoldProduct | ||
| SoldProductGroup | I_JournalEntryItem | SoldProductGroup | ||
| CustomerGroup | I_JournalEntryItem | CustomerGroup | ||
| CustomerSupplierCountry | I_JournalEntryItem | CustomerSupplierCountry | ||
| CustomerSupplierIndustry | I_JournalEntryItem | CustomerSupplierIndustry | ||
| SalesDistrict | I_JournalEntryItem | SalesDistrict | ||
| BillToParty | I_JournalEntryItem | BillToParty | ||
| ShipToParty | I_JournalEntryItem | ShipToParty | ||
| CustomerSupplierCorporateGroup | I_JournalEntryItem | CustomerSupplierCorporateGroup | ||
| WBSElementInternalID | I_JournalEntryItem | WBSElementInternalID | ||
| CreationDateTime | I_JournalEntryItem | CreationDateTime | ||
| SourceLedger | Source | SourceLedger | ||
| Ledger | Source | Ledger | ||
| LedgerGLLineItem | Source | LedgerGLLineItem | ||
| AccountingDocument | Source | AccountingDocument | ||
| ReferenceFiscalYear | Source | ReferenceFiscalYear |
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'PREALTIMERFD_06'
@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_RealTimeRptdFinData_06
with parameters
P_CreationDateTimeRgFr :timestamp,
P_CreationDateTimeRgTo :timestamp
as select from P_RealTimeRptdFinData_05
(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
inner join I_JournalEntryItem as _acdoca on Source.SourceLedger = _acdoca.SourceLedger
and Source.Ledger = _acdoca.Ledger
and Source.CompanyCode = _acdoca.CompanyCode
and Source.ReferenceFiscalYear = _acdoca.FiscalYear
and Source.AccountingDocument = _acdoca.AccountingDocument
and Source.LedgerGLLineItem = _acdoca.LedgerGLLineItem
/*association [1..1] to I_JournalEntryItem as _acdoca on Source.SourceLedger = _acdoca.SourceLedger
and Source.Ledger = _acdoca.Ledger
and Source.CompanyCode = _acdoca.CompanyCode
and Source.ReferenceFiscalYear = _acdoca.FiscalYear
and Source.AccountingDocument = _acdoca.AccountingDocument
and Source.LedgerGLLineItem = _acdoca.LedgerGLLineItem*/
{
// 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
_acdoca.CompanyCode,
_acdoca.ChartOfAccounts,
_acdoca.AssignmentReference,
_acdoca.ControllingArea,
_acdoca.PartnerCostCenter,
_acdoca.PartnerProfitCenter,
_acdoca.PartnerFunctionalArea,
_acdoca.PartnerBusinessArea,
_acdoca.PartnerCompany,
_acdoca.PartnerSegment,
_acdoca.OrderID,
_acdoca.Customer,
_acdoca.Supplier,
_acdoca.Material,
_acdoca.MaterialGroup,
_acdoca.Plant,
_acdoca.WBSElement as WBSElementExternalID,
_acdoca.WBSElement,
_acdoca.Project,
_acdoca.BillingDocumentType,
_acdoca.SalesOrganization,
_acdoca.DistributionChannel,
_acdoca.OrganizationDivision,
_acdoca.SoldProduct,
_acdoca.SoldProductGroup,
_acdoca.CustomerGroup,
_acdoca.CustomerSupplierCountry,
_acdoca.CustomerSupplierIndustry,
_acdoca.SalesDistrict,
_acdoca.BillToParty,
_acdoca.ShipToParty,
_acdoca.CustomerSupplierCorporateGroup,
_acdoca.WBSElementInternalID,
_acdoca.CreationDateTime,
// specific fileds for this cds view
/*Source.CompanyCode,*/
Source.SourceLedger,
Source.Ledger,
Source.LedgerGLLineItem,
Source.AccountingDocument,
Source.ReferenceFiscalYear
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BREAKDOWNCATEGORYFIELD",
"I_CNSLDTNUNIT",
"I_JOURNALENTRYITEM",
"P_REALTIMERPTDFINDATA_05"
],
"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