P_CnsldtnGLAvgDailyBal_02

DDL: P_CNSLDTNGLAVGDAILYBAL_02 SQL: PCNSLDTNADB_02 Type: view COMPOSITE Package: GADB_GR_AL_KFC

Fill currency fields

P_CnsldtnGLAvgDailyBal_02 is a Composite CDS View that provides data about "Fill currency fields" in SAP S/4HANA. It reads from 1 data source (P_CnsldtnGLAvgDailyBal_01) and exposes 69 fields. Part of development package GADB_GR_AL_KFC.

Data Sources (1)

SourceAliasJoin Type
P_CnsldtnGLAvgDailyBal_01 P_CnsldtnGLAvgDailyBal_01 from

Parameters (10)

NameTypeDefault
P_FiscalYearStartDate 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

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PCNSLDTNADB_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 (69)

KeyFieldSource TableSource FieldDescription
BaseUnitendasBaseUnit
ConsolidationDimension Source ConsolidationDimension Dimension
ConsolidationVersion Source ConsolidationVersion Version
FSItemMappingVersion Source FSItemMappingVersion
ConsolidationLedger Source ConsolidationLedger Ledger
GroupCurrency Source GroupCurrency Ledger curr.
BalanceTransactionCurrency Source BalanceTransactionCurrency Currency
ConsolidationUnitLocalCurrency Source ConsolidationUnitLocalCurrency Functional Currency
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
MTDAvgDailyBalInBalTransCrcy Source MTDAvgDailyBalInBalTransCrcy MTD TranCrcy
QTDAvgDailyBalInBalTransCrcy Source QTDAvgDailyBalInBalTransCrcy QTD TranCrcy
YTDAvgDailyBalInBalTransCrcy Source YTDAvgDailyBalInBalTransCrcy YTD TranCrcy
MTDAvgDailyBalInCCCrcy Source MTDAvgDailyBalInCCCrcy MTD ADB Funcnl Crcy
QTDAvgDailyBalInCCCrcy Source QTDAvgDailyBalInCCCrcy QTD ADB FuncnlCrcy
YTDAvgDailyBalInCCCrcy Source YTDAvgDailyBalInCCCrcy YTD ADB Funcnl Crcy
Segment Source Segment Segment number
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 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
ConsolidationUnit Source ConsolidationUnit Consolidation Unit
PartnerConsolidationUnit Source PartnerConsolidationUnit Partner Unit
Company Source Company Owner
FinancialStatementItem Source FinancialStatementItem FS Item
ConsolidationChartOfAccounts Source ConsolidationChartOfAccounts Cons. COA
SubItemCategory Source SubItemCategory Subitem Category
SubItem Source SubItem Subitem Number
Ledger Source Ledger Ledger
FiscalPeriod Source FiscalPeriod Tax period
FiscalYear Source FiscalYear G/L Fiscal Year
FiscalYearPeriod Source FiscalYearPeriod Period/Year
SourceLedger Source SourceLedger Source Ledger
LedgerGLLineItem Source LedgerGLLineItem Journal Entry Item
AccountingDocument Source AccountingDocument Journal Entry
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_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: PCNSLDTNADB_02
-- Parameters: P_FiscalYearStartDate : 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

CREATE VIEW P_CnsldtnGLAvgDailyBal_02 AS
SELECT
  case when tf103a_runit.BreakdownType = '0' or tf103a_runit.BreakdownType is null then '' when tf103a_runit.BreakdownType = '3' then Source.BaseUnit end as BaseUnit AS BaseUnitendasBaseUnit,
  Source.ConsolidationDimension AS ConsolidationDimension,
  Source.ConsolidationVersion AS ConsolidationVersion,
  Source.FSItemMappingVersion AS FSItemMappingVersion,
  Source.ConsolidationLedger AS ConsolidationLedger,
  Source.GroupCurrency AS GroupCurrency,
  Source.BalanceTransactionCurrency AS BalanceTransactionCurrency,
  Source.ConsolidationUnitLocalCurrency AS ConsolidationUnitLocalCurrency,
  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.MTDAvgDailyBalInBalTransCrcy AS MTDAvgDailyBalInBalTransCrcy,
  Source.QTDAvgDailyBalInBalTransCrcy AS QTDAvgDailyBalInBalTransCrcy,
  Source.YTDAvgDailyBalInBalTransCrcy AS YTDAvgDailyBalInBalTransCrcy,
  Source.MTDAvgDailyBalInCCCrcy AS MTDAvgDailyBalInCCCrcy,
  Source.QTDAvgDailyBalInCCCrcy AS QTDAvgDailyBalInCCCrcy,
  Source.YTDAvgDailyBalInCCCrcy AS YTDAvgDailyBalInCCCrcy,
  Source.Segment AS Segment,
  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,
  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.ConsolidationUnit AS ConsolidationUnit,
  Source.PartnerConsolidationUnit AS PartnerConsolidationUnit,
  Source.Company AS Company,
  Source.FinancialStatementItem AS FinancialStatementItem,
  Source.ConsolidationChartOfAccounts AS ConsolidationChartOfAccounts,
  Source.SubItemCategory AS SubItemCategory,
  Source.SubItem AS SubItem,
  Source.Ledger AS Ledger,
  Source.FiscalPeriod AS FiscalPeriod,
  Source.FiscalYear AS FiscalYear,
  Source.FiscalYearPeriod AS FiscalYearPeriod,
  Source.SourceLedger AS SourceLedger,
  Source.LedgerGLLineItem AS LedgerGLLineItem,
  Source.AccountingDocument AS AccountingDocument,
  Source.ReferenceFiscalYear AS ReferenceFiscalYear
FROM P_CnsldtnGLAvgDailyBal_01
;