P_RepFinData_RT_Aggr_02
P_RepFinData_RT_Aggr_02 is a Composite CDS View in SAP S/4HANA. It reads from 8 data sources and exposes 75 fields. It has 1 association to related views.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_SAPClient | _SAPClient | inner |
| I_CnsldtnVersion | I_CnsldtnVersion | inner |
| I_CompanyCode | I_CompanyCode | inner |
| I_FiscalCalendarDate | I_FiscalCalendarDate | inner |
| P_RepFinData_RT_Aggr_01 | P_RepFinData_RT_Aggr_01 | from |
| t881 | t881 | inner |
| tf165 | tf165 | inner |
| tfin010 | tfin010 | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CreationDateTimeRgFr | timestamp | |
| P_CreationDateTimeRgTo | timestamp |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CashLedgerCompanyCode | _CashLedgerCompanyCode.CompanyCode = Source.CashLedgerCompanyCode |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PRFDRTAG_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 (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| gcurrendasGroupCurrency | ||||
| ConsolidationDimension | tfin010 | dimen | Dimension Unit | |
| ConsolidationUnit | tfin010 | bunit | Consolidation Unit | |
| ReferenceChartOfAccounts | I_CompanyCode | ChartOfAccounts | Node Class | |
| ConsolidationVersion | I_CnsldtnVersion | ConsolidationVersion | Version | |
| FSItemMappingVersion | I_CnsldtnVersion | FSItemMappingVersion | ||
| CnsldtnUnitGroupCrcySource | tf168 | curr_group_send | GroupCrcySource | |
| ConsolidationLedger | t881 | rldnr | Ledger (Compat.) | |
| FiscalPeriod | I_FiscalCalendarDate | FiscalPeriod | Tax period | |
| FiscalYear | I_FiscalCalendarDate | FiscalYear | G/L Fiscal Year | |
| FiscalYearPeriod | I_FiscalCalendarDate | FiscalYearPeriod | Period/Year | |
| BalanceTransactionCurrency | Source | BalanceTransactionCurrency | Currency | |
| BaseUnit | Source | BaseUnit | Unit of Measure | |
| FinancialTransactionType | Source | FinancialTransactionType | Transact. Type | |
| FunctionalArea | Source | FunctionalArea | Sendr Fctl Area | |
| BusinessArea | Source | BusinessArea | Business Area | |
| CostCenter | Source | CostCenter | Cost Center | |
| GLAccount | Source | GLAccount | General Ledger | |
| ProfitCenter | Source | ProfitCenter | Profit Center | |
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| AmountInLocalCurrency | AmountInLocalCurrency | Local Crcy Amt | ||
| AmountInGroupCurrency | AmountInGroupCurrency | Amnt in GrpCrcy | ||
| QuantityInBaseUnit | QuantityInBaseUnit | Quantity | ||
| osl | Source | osl | Other Crcy Amnt | |
| vsl | Source | vsl | Amount in Currency 2 | |
| bsl | Source | bsl | Exchange Key | |
| csl | Source | csl | Amount in Currency 4 | |
| dsl | Source | dsl | Amount in Currency 5 | |
| esl | Source | esl | Amount in Currency 6 | |
| fsl | Source | fsl | Amount in Currency 7 | |
| gsl | Source | gsl | Amount in Currency 8 | |
| Segment | Source | Segment | Segment number | |
| PartnerCompany | Source | PartnerCompany | Trading Partner | |
| CompanyCode | Source | CompanyCode | Receiver Company Code | |
| ChartOfAccounts | Source | ChartOfAccounts | Node Class | |
| AssignmentReference | Source | AssignmentReference | Assignment Reference | |
| ControllingArea | Source | ControllingArea | Controlling Area | |
| PartnerCostCenter | Source | PartnerCostCenter | Sender Cost Ctr | |
| PartnerProfitCenter | Source | PartnerProfitCenter | Profit Center | |
| PartnerFunctionalArea | Source | PartnerFunctionalArea | Rec. Fntcl Area | |
| PartnerBusinessArea | Source | PartnerBusinessArea | Trdg Part.BA | |
| PartnerSegment | Source | PartnerSegment | Partner Segment | |
| OrderID | Source | OrderID | Order ID | |
| Customer | Source | Customer | Sold-to Party | |
| Supplier | Source | Supplier | Supplier | |
| Material | Source | Material | Vehicle Model | |
| MaterialGroup | Source | MaterialGroup | Product Group | |
| ProductGroup | Source | ProductGroup | Product Sold Group | |
| Plant | Source | Plant | Valuation Area | |
| WBSElementExternalID | Source | WBSElementExternalID | WBS Element External ID | |
| Project | Source | Project | WBS Element | |
| BillingDocumentType | Source | BillingDocumentType | Billing Type | |
| SalesOrganization | Source | SalesOrganization | Sales Organization | |
| DistributionChannel | Source | DistributionChannel | RefDistCh-Cust/Mat. | |
| OrganizationDivision | Source | OrganizationDivision | Org. Division | |
| SoldProduct | Source | SoldProduct | Product Sold | |
| SoldProductGroup | Source | SoldProductGroup | Product Sold Group | |
| CustomerGroup | Source | CustomerGroup | Customer Group | |
| CustomerSupplierCountry | Source | CustomerSupplierCountry | Customer or Supplier Country/Region | |
| CustomerSupplierIndustry | Source | CustomerSupplierIndustry | Industry | |
| SalesDistrict | Source | SalesDistrict | Sales District | |
| BillToParty | Source | BillToParty | Inv. Recipient | |
| ShipToParty | Source | ShipToParty | Ship-To Party (obsolete) | |
| CustomerSupplierCorporateGroup | Source | CustomerSupplierCorporateGroup | Group | |
| WBSElementInternalID | Source | WBSElementInternalID | WBS Internal ID | |
| CreationDateTime | Source | CreationDateTime | Timestamp | |
| FinancialServicesProductGroup | Source | FinancialServicesProductGroup | Product Group (FS) | |
| FinancialServicesBranch | Source | FinancialServicesBranch | Branch (FS) | |
| FinancialDataSource | Source | FinancialDataSource | Data Source | |
| FinancialManagementArea | Source | FinancialManagementArea | FM Area | |
| GrantID | Source | GrantID | Sender Grant | |
| Fund | Source | Fund | Sender Fund | |
| PartnerFund | Source | PartnerFund | Receiver Fund | |
| CashLedgerAccount | Source | CashLedgerAccount | Cash Origin Account | |
| CnsldtnCashLedgerChartOfAccts | _CashLedgerCompanyCode | ChartOfAccounts | Node Class |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_RepFinData_RT_Aggr_02.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PRFDRTAG_02
-- Parameters: P_CreationDateTimeRgFr : timestamp, P_CreationDateTimeRgTo : timestamp
CREATE VIEW P_RepFinData_RT_Aggr_02 AS
SELECT
case when t881.curt2 = '30' then _SAPClient.GroupCurrency else t881.gcurr end as GroupCurrency AS gcurrendasGroupCurrency,
tfin010.dimen AS ConsolidationDimension,
tfin010.bunit AS ConsolidationUnit,
I_CompanyCode.ChartOfAccounts AS ReferenceChartOfAccounts,
I_CnsldtnVersion.ConsolidationVersion AS ConsolidationVersion,
I_CnsldtnVersion.FSItemMappingVersion AS FSItemMappingVersion,
tf168.curr_group_send AS CnsldtnUnitGroupCrcySource,
t881.rldnr AS ConsolidationLedger,
I_FiscalCalendarDate.FiscalPeriod AS FiscalPeriod,
I_FiscalCalendarDate.FiscalYear AS FiscalYear,
I_FiscalCalendarDate.FiscalYearPeriod AS FiscalYearPeriod,
Source.BalanceTransactionCurrency AS BalanceTransactionCurrency,
Source.BaseUnit AS BaseUnit,
Source.FinancialTransactionType AS FinancialTransactionType,
Source.FunctionalArea AS FunctionalArea,
Source.BusinessArea AS BusinessArea,
Source.CostCenter AS CostCenter,
Source.GLAccount AS GLAccount,
Source.ProfitCenter AS ProfitCenter,
AmountInTransactionCurrency,
AmountInLocalCurrency,
AmountInGroupCurrency,
QuantityInBaseUnit,
Source.osl AS osl,
Source.vsl AS vsl,
Source.bsl AS bsl,
Source.csl AS csl,
Source.dsl AS dsl,
Source.esl AS esl,
Source.fsl AS fsl,
Source.gsl AS gsl,
Source.Segment AS Segment,
Source.PartnerCompany AS PartnerCompany,
Source.CompanyCode AS CompanyCode,
Source.ChartOfAccounts AS ChartOfAccounts,
Source.AssignmentReference AS AssignmentReference,
Source.ControllingArea AS ControllingArea,
Source.PartnerCostCenter AS PartnerCostCenter,
Source.PartnerProfitCenter AS PartnerProfitCenter,
Source.PartnerFunctionalArea AS PartnerFunctionalArea,
Source.PartnerBusinessArea AS PartnerBusinessArea,
Source.PartnerSegment AS PartnerSegment,
Source.OrderID AS OrderID,
Source.Customer AS Customer,
Source.Supplier AS Supplier,
Source.Material AS Material,
Source.MaterialGroup AS MaterialGroup,
Source.ProductGroup AS ProductGroup,
Source.Plant AS Plant,
Source.WBSElementExternalID AS WBSElementExternalID,
Source.Project AS Project,
Source.BillingDocumentType AS BillingDocumentType,
Source.SalesOrganization AS SalesOrganization,
Source.DistributionChannel AS DistributionChannel,
Source.OrganizationDivision AS OrganizationDivision,
Source.SoldProduct AS SoldProduct,
Source.SoldProductGroup AS SoldProductGroup,
Source.CustomerGroup AS CustomerGroup,
Source.CustomerSupplierCountry AS CustomerSupplierCountry,
Source.CustomerSupplierIndustry AS CustomerSupplierIndustry,
Source.SalesDistrict AS SalesDistrict,
Source.BillToParty AS BillToParty,
Source.ShipToParty AS ShipToParty,
Source.CustomerSupplierCorporateGroup AS CustomerSupplierCorporateGroup,
Source.WBSElementInternalID AS WBSElementInternalID,
Source.CreationDateTime AS CreationDateTime,
Source.FinancialServicesProductGroup AS FinancialServicesProductGroup,
Source.FinancialServicesBranch AS FinancialServicesBranch,
Source.FinancialDataSource AS FinancialDataSource,
Source.FinancialManagementArea AS FinancialManagementArea,
Source.GrantID AS GrantID,
Source.Fund AS Fund,
Source.PartnerFund AS PartnerFund,
Source.CashLedgerAccount AS CashLedgerAccount,
_CashLedgerCompanyCode.ChartOfAccounts AS CnsldtnCashLedgerChartOfAccts
FROM P_RepFinData_RT_Aggr_01
INNER JOIN I_CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN tfin010 ON /* join condition not captured in parsed metadata */
INNER JOIN tf165 ON /* join condition not captured in parsed metadata */
INNER JOIN I_SAPClient AS _SAPClient ON /* join condition not captured in parsed metadata */
INNER JOIN t881 ON /* join condition not captured in parsed metadata */
INNER JOIN I_CnsldtnVersion ON /* join condition not captured in parsed metadata */
INNER JOIN I_FiscalCalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CashLedgerCompanyCode ON _CashLedgerCompanyCode.CompanyCode = Source.CashLedgerCompanyCode -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA