P_CnsldtnGLAvgDailyBal

DDL: P_CNSLDTNGLAVGDAILYBAL SQL: PCNSLDTNADB Type: view COMPOSITE

P_CnsldtnGLAvgDailyBal is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CnsldtnGLAvgDailyBal_02) and exposes 74 fields with key field ConsolidationRecordNumber.

Data Sources (1)

SourceAliasJoin Type
P_CnsldtnGLAvgDailyBal_02 P_CnsldtnGLAvgDailyBal_02 from

Parameters (12)

NameTypeDefault
P_FiscalYearStartDate gle_dte_adb_keydate
P_FiscalHalfYearStartDate gle_dte_adb_keydate
P_FiscalQuarterStartDate gle_dte_adb_keydate
P_FiscalMonthStartDate gle_dte_adb_keydate
P_ReportingDate gle_dte_adb_keydate
P_ConsolidationDimension fc_dimen
P_ConsolidationUnit fc_bunit
P_ConsolidationVersion fc_rvers
P_FiscalYearPeriod fincs_fiscalyearper
P_CreationDateTimeRgFr gle_dte_adb_timestamp
P_CreationDateTimeRgTo gle_dte_adb_timestamp
P_ArchiveDataIsIncluded abap_boolean

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCNSLDTNADB view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true 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 (74)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationRecordNumber
ReferenceDocumentNumber
SubItemCategory
SubItem
PartnerConsolidationUnit
BaseUnit
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
Segment Source Segment Segment number
MTDAvgDailyBalInBalTransCrcy Source MTDAvgDailyBalInBalTransCrcy
QTDAvgDailyBalInBalTransCrcy Source QTDAvgDailyBalInBalTransCrcy
HYTDAvgDailyBalInBalTransCrcy Source HYTDAvgDailyBalInBalTransCrcy
YTDAvgDailyBalInBalTransCrcy Source YTDAvgDailyBalInBalTransCrcy
MTDAvgDailyBalInGlobCrcy Source MTDAvgDailyBalInGlobCrcy
QTDAvgDailyBalInGlobCrcy Source QTDAvgDailyBalInGlobCrcy
HYTDAvgDailyBalInGlobCrcy Source HYTDAvgDailyBalInGlobCrcy
YTDAvgDailyBalInGlobCrcy Source YTDAvgDailyBalInGlobCrcy
MTDAvgDailyBalInCCCrcy Source MTDAvgDailyBalInCCCrcy
QTDAvgDailyBalInCCCrcy Source QTDAvgDailyBalInCCCrcy
HYTDAvgDailyBalInCCCrcy Source HYTDAvgDailyBalInCCCrcy
YTDAvgDailyBalInCCCrcy Source YTDAvgDailyBalInCCCrcy
TransactionCurrency
FinancialStatementItem Source FinancialStatementItem FS Item
ConsolidationChartOfAccounts Source ConsolidationChartOfAccounts Cons. COA
LocalCurrency
ConsolidationDimension Source ConsolidationDimension Dimension
ConsolidationUnit Source ConsolidationUnit Consolidation Unit
ConsolidationVersion Source ConsolidationVersion Version
ConsolidationLedger Source ConsolidationLedger Ledger
GroupCurrency
FiscalPeriod Source FiscalPeriod Tax period
FiscalYear Source FiscalYear G/L Fiscal Year
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
PartnerCompany Source PartnerCompany Trading Partner
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
Plant Source Plant Valuation Area
WBSElementExternalID
Project
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
CreationDateTime Source CreationDateTime Timestamp
SourceLedger Source SourceLedger Source Ledger
Ledger Source Ledger Ledger
LedgerGLLineItem Source LedgerGLLineItem Journal Entry Item
AccountingDocument
ReferenceFiscalYear Source ReferenceFiscalYear Original FY

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_CnsldtnGLAvgDailyBal.
-- 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: PCNSLDTNADB
-- Parameters: P_FiscalYearStartDate : gle_dte_adb_keydate, P_FiscalHalfYearStartDate : gle_dte_adb_keydate, P_FiscalQuarterStartDate : gle_dte_adb_keydate, P_FiscalMonthStartDate : gle_dte_adb_keydate, P_ReportingDate : gle_dte_adb_keydate, P_ConsolidationDimension : fc_dimen, P_ConsolidationUnit : fc_bunit, P_ConsolidationVersion : fc_rvers, P_FiscalYearPeriod : fincs_fiscalyearper, P_CreationDateTimeRgFr : gle_dte_adb_timestamp, P_CreationDateTimeRgTo : gle_dte_adb_timestamp, P_ArchiveDataIsIncluded : abap_boolean

CREATE VIEW P_CnsldtnGLAvgDailyBal AS
SELECT
  cast('' as gu_recid) AS ConsolidationRecordNumber,
  cast('' as xblnr1 ) AS ReferenceDocumentNumber,
  cast(Source.SubItemCategory as fc_sityp) AS SubItemCategory,
  cast(Source.SubItem as fc_sitem) AS SubItem,
  cast(coalesce(Source.PartnerConsolidationUnit,'') as fc_buptr) AS PartnerConsolidationUnit,
  cast(Source.BaseUnit as meins) 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,
  Source.Segment AS Segment,
  Source.MTDAvgDailyBalInBalTransCrcy AS MTDAvgDailyBalInBalTransCrcy,
  Source.QTDAvgDailyBalInBalTransCrcy AS QTDAvgDailyBalInBalTransCrcy,
  Source.HYTDAvgDailyBalInBalTransCrcy AS HYTDAvgDailyBalInBalTransCrcy,
  Source.YTDAvgDailyBalInBalTransCrcy AS YTDAvgDailyBalInBalTransCrcy,
  Source.MTDAvgDailyBalInGlobCrcy AS MTDAvgDailyBalInGlobCrcy,
  Source.QTDAvgDailyBalInGlobCrcy AS QTDAvgDailyBalInGlobCrcy,
  Source.HYTDAvgDailyBalInGlobCrcy AS HYTDAvgDailyBalInGlobCrcy,
  Source.YTDAvgDailyBalInGlobCrcy AS YTDAvgDailyBalInGlobCrcy,
  Source.MTDAvgDailyBalInCCCrcy AS MTDAvgDailyBalInCCCrcy,
  Source.QTDAvgDailyBalInCCCrcy AS QTDAvgDailyBalInCCCrcy,
  Source.HYTDAvgDailyBalInCCCrcy AS HYTDAvgDailyBalInCCCrcy,
  Source.YTDAvgDailyBalInCCCrcy AS YTDAvgDailyBalInCCCrcy,
  cast(Source.BalanceTransactionCurrency as rtcur) AS TransactionCurrency,
  Source.FinancialStatementItem AS FinancialStatementItem,
  Source.ConsolidationChartOfAccounts AS ConsolidationChartOfAccounts,
  cast(Source.ConsolidationUnitLocalCurrency as lcurr) AS LocalCurrency,
  Source.ConsolidationDimension AS ConsolidationDimension,
  Source.ConsolidationUnit AS ConsolidationUnit,
  Source.ConsolidationVersion AS ConsolidationVersion,
  Source.ConsolidationLedger AS ConsolidationLedger,
  cast(Source.GroupCurrency as gcurr) AS GroupCurrency,
  Source.FiscalPeriod AS FiscalPeriod,
  Source.FiscalYear AS FiscalYear,
  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.PartnerCompany AS PartnerCompany,
  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.Plant AS Plant,
  cast(Source.WBSElementExternalID as fis_wbsext_no_conv) AS WBSElementExternalID,
  cast(Source.Project as fis_project_no_conv) 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,
  cast(Source.WBSElementInternalID as fis_wbsint_no_conv) AS WBSElementInternalID,
  Source.CreationDateTime AS CreationDateTime,
  Source.SourceLedger AS SourceLedger,
  Source.Ledger AS Ledger,
  Source.LedgerGLLineItem AS LedgerGLLineItem,
  cast(Source.AccountingDocument as belnr_d) AS AccountingDocument,
  Source.ReferenceFiscalYear AS ReferenceFiscalYear
FROM P_CnsldtnGLAvgDailyBal_02
;