P_REALTIMERPTDFINDATA_TN

DDL: P_REALTIMERPTDFINDATA_TN SQL: PREALTIMERFD_TN Type: view COMPOSITE

P_REALTIMERPTDFINDATA_TN is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItem, P_RealTimeRptdFinData) and exposes 102 fields with key field gl_sirid.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem _acdoca inner
P_RealTimeRptdFinData P_RealTimeRptdFinData from

Parameters (2)

NameTypeDefault
p_timestamp_from timestamp
p_timestamp_to timestamp

Annotations (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PREALTIMERFD_TN 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 (102)

KeyFieldSource TableSource FieldDescription
KEY gl_sirid Source ConsolidationRecordNumber
rldnr Source ConsolidationLedger Ledger
rvers Source ConsolidationVersion Version
ryear Source FiscalYear G/L Fiscal Year
rtcur Source TransactionCurrency Transaction Currency
runit Source BaseUnit Unit of Measure
poper Source FiscalPeriod Tax period
rdimen Source ConsolidationDimension Dimension
rbunit Source ConsolidationUnit Consolidation Unit
ritclg Source ConsolidationChartOfAccounts Cons. COA
ritem Source FinancialStatementItem FS Item
rbuptr Source PartnerConsolidationUnit Partner Unit
robukrs Source CompanyCode Receiver Company Code
sityp Source SubItemCategory Subitem Category
subit Source SubItem Subitem Number
tsl Source AmountInTransactionCurrency Pt Crcy Amt
hsl Source AmountInLocalCurrency Local Crcy Amt
ksl Source AmountInGroupCurrency Amnt in GrpCrcy
msl Source QuantityInBaseUnit Quantity
ktopl Source ChartOfAccounts Node Class
rhcur Source LocalCurrency Local Currency
rkcur Source GroupCurrency Ledger curr.
racct Source GLAccount General Ledger
zuonr Source AssignmentReference Assignment Reference
rcntr Source CostCenter Cost Center
prctr Source ProfitCenter Profit Center
rfarea Source FunctionalArea Sendr Fctl Area
rbusa Source BusinessArea Business Area
kokrs Source ControllingArea Controlling Area
segment Source Segment Segment number
scntr Source PartnerCostCenter Sender Cost Ctr
pprctr Source PartnerProfitCenter Profit Center
sfarea Source PartnerFunctionalArea Rec. Fntcl Area
sbusa Source PartnerBusinessArea Trdg Part.BA
rassc Source PartnerCompany Trading Partner
psegment Source PartnerSegment Partner Segment
aufnr Source OrderID Order ID
kunnr Source Customer Sold-to Party
lifnr Source Supplier Supplier
matnr Source Material Vehicle Model
matkl_mm Source MaterialGroup Product Group
werks Source Plant Valuation Area
rmvct Source FinancialTransactionType Transact. Type
ps_posid Source WBSElementExternalID WBS Element External ID
ps_pspid Source Project WBS Element
fkart Source BillingDocumentType Billing Type
vkorg Source SalesOrganization Sales Organization
vtweg Source DistributionChannel RefDistCh-Cust/Mat.
spart Source OrganizationDivision Org. Division
matnr_copa Source SoldProduct Product Sold
matkl Source SoldProductGroup Product Sold Group
kdgrp Source CustomerGroup Customer Group
land1 Source CustomerSupplierCountry Customer or Supplier Country/Region
brsch Source CustomerSupplierIndustry Industry
bzirk Source SalesDistrict Sales District
kunre Source BillToParty Inv. Recipient
kunwe Source ShipToParty Ship-To Party (obsolete)
konzs Source CustomerSupplierCorporateGroup Group
ps_psp_pnr Source WBSElementInternalID WBS Internal ID
timestamp Source CreationDateTime Timestamp
docty
rldnr_fin Source SourceLedger Source Ledger
docnr
docln
refryear
fiscyearper
updhp
budat
refdocnr
cpudt
cputm
awtyp
aworg
logsys
usnam
wsdat
refdocln
rrcty
rtflg
drcrk
coicu
rvsdocnr
revyear
yracq
sgtxt
autom
rcongr
bvorg
coiac
orndocnr
plevl
refdocct
docct
coinr
refactiv
activ
rpflg
rcomp
pracq
xblnr
uppcu
_dataaging

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_REALTIMERPTDFINDATA_TN.
-- 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: PREALTIMERFD_TN
-- Parameters: p_timestamp_from : timestamp, p_timestamp_to : timestamp

CREATE VIEW P_REALTIMERPTDFINDATA_TN AS
SELECT
  Source.ConsolidationRecordNumber AS gl_sirid,
  Source.ConsolidationLedger AS rldnr,
  Source.ConsolidationVersion AS rvers,
  Source.FiscalYear AS ryear,
  Source.TransactionCurrency AS rtcur,
  Source.BaseUnit AS runit,
  Source.FiscalPeriod AS poper,
  Source.ConsolidationDimension AS rdimen,
  Source.ConsolidationUnit AS rbunit,
  Source.ConsolidationChartOfAccounts AS ritclg,
  Source.FinancialStatementItem AS ritem,
  Source.PartnerConsolidationUnit AS rbuptr,
  Source.CompanyCode AS robukrs,
  Source.SubItemCategory AS sityp,
  Source.SubItem AS subit,
  Source.AmountInTransactionCurrency AS tsl,
  Source.AmountInLocalCurrency AS hsl,
  Source.AmountInGroupCurrency AS ksl,
  Source.QuantityInBaseUnit AS msl,
  Source.ChartOfAccounts AS ktopl,
  Source.LocalCurrency AS rhcur,
  Source.GroupCurrency AS rkcur,
  Source.GLAccount AS racct,
  Source.AssignmentReference AS zuonr,
  Source.CostCenter AS rcntr,
  Source.ProfitCenter AS prctr,
  Source.FunctionalArea AS rfarea,
  Source.BusinessArea AS rbusa,
  Source.ControllingArea AS kokrs,
  Source.Segment AS segment,
  Source.PartnerCostCenter AS scntr,
  Source.PartnerProfitCenter AS pprctr,
  Source.PartnerFunctionalArea AS sfarea,
  Source.PartnerBusinessArea AS sbusa,
  Source.PartnerCompany AS rassc,
  Source.PartnerSegment AS psegment,
  Source.OrderID AS aufnr,
  Source.Customer AS kunnr,
  Source.Supplier AS lifnr,
  Source.Material AS matnr,
  Source.MaterialGroup AS matkl_mm,
  Source.Plant AS werks,
  Source.FinancialTransactionType AS rmvct,
  Source.WBSElementExternalID AS ps_posid,
  Source.Project AS ps_pspid,
  Source.BillingDocumentType AS fkart,
  Source.SalesOrganization AS vkorg,
  Source.DistributionChannel AS vtweg,
  Source.OrganizationDivision AS spart,
  Source.SoldProduct AS matnr_copa,
  Source.SoldProductGroup AS matkl,
  Source.CustomerGroup AS kdgrp,
  Source.CustomerSupplierCountry AS land1,
  Source.CustomerSupplierIndustry AS brsch,
  Source.SalesDistrict AS bzirk,
  Source.BillToParty AS kunre,
  Source.ShipToParty AS kunwe,
  Source.CustomerSupplierCorporateGroup AS konzs,
  Source.WBSElementInternalID AS ps_psp_pnr,
  Source.CreationDateTime AS timestamp,
  cast(I_CnsldtnDocumentType.ConsolidationDocumentType as fc_docty) AS docty,
  Source.SourceLedger AS rldnr_fin,
  cast(Source.AccountingDocument as belnr_d) AS docnr,
  cast(Source.LedgerGLLineItem as docln6) AS docln,
  cast(Source.ReferenceFiscalYear as gjahr) AS refryear,
  cast(CONCAT(Source.FiscalYear, Source.FiscalPeriod) as fis_jahrper_conv ) AS fiscyearper,
  cast(Source.FiscalPeriod as updhp) AS updhp,
  cast(_acdoca.PostingDate as budat) AS budat,
  cast(_acdoca.ReferenceDocument as belnr_d) AS refdocnr,
  cast(substring(cast(_acdoca.CreationDateTime as abap.char(19)), 1, 8) as cpudt) AS cpudt,
  cast(substring(cast(_acdoca.CreationDateTime as abap.char(19)),5,6) as cputm) AS cputm,
  cast(_acdoca.ReferenceDocumentType as awtyp) AS awtyp,
  cast(_acdoca.ReferenceDocumentContext as aworg) AS aworg,
  cast(_acdoca.LogicalSystem as logsys) AS logsys,
  cast(_acdoca.AccountingDocCreatedByUser as usnam) AS usnam,
  cast(_acdoca.PostingDate as wsdat) AS wsdat,
  cast('000000' as buzei6) AS refdocln,
  cast('0' as rrcty) AS rrcty,
  cast('0' as fc_rtflg) AS rtflg,
  cast(' ' as shkzg) AS drcrk,
  cast(' ' as fc_coicu) AS coicu,
  cast(' ' as stblg) AS rvsdocnr,
  cast('0000' as fc_revyear) AS revyear,
  cast('0000' as fc_ryacq) AS yracq,
  cast(' ' as sgtxt) AS sgtxt,
  cast(' ' as autom) AS autom,
  cast(' ' as fc_congr) AS rcongr,
  cast(' ' as bvorg) AS bvorg,
  cast(' ' as fc_coiac) AS coiac,
  cast(' ' as stbln) AS orndocnr,
  cast(' ' as fc_plevl) AS plevl,
  cast('W' as docct) AS refdocct,
  cast('A' as docct) AS docct,
  cast(' ' as fc_coinr) AS coinr,
  cast('' as glvor) AS refactiv,
  cast('' as glvor) AS activ,
  cast('0' as fc_rpflg) AS rpflg,
  cast(' ' as rcomp_d) AS rcomp,
  cast('000' as rpacq) AS pracq,
  cast('' as xblnr1) AS xblnr,
  cast('' as fc_uppcu) AS uppcu,
  cast('' as data_temperature ) AS _dataaging
FROM P_RealTimeRptdFinData
INNER JOIN I_JournalEntryItem AS _acdoca ON /* join condition not captured in parsed metadata */
;