C_TrialBalance

DDL: C_TRIALBALANCE SQL: CFITRIALBALANCE Type: view CONSUMPTION Package: FINS_FIS_API

Trial Balance

C_TrialBalance (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

C_TrialBalance is a Consumption CDS View that provides data about "Trial Balance" in SAP S/4HANA. It reads from 1 data source (I_GLAcctBalanceCube) and exposes 299 fields. Part of development package FINS_FIS_API.

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentFI-GL-IS-2CL
CapabilitiesAnalytical Query
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description This CDS view can form balances of various dimensions of the journal entry including the most important business entities, such as the G/L account, company code, cost center and profit center. Other attributes and hierarchies can be reached via associations. The CDS view also contains postings of carryforward balances. <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What are the G/L account balances and G/L account ending balances of a specific time frame?</p></li> <li><p>What is the balance of a cost center for a specific time frame?</p></li> <li><p>What are balances within the G/L account hierarchy?</p></li> <li> <p>What is the revenue drilled down by profit center?</p> </li> </ul>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_GLAcctBalanceCube I_GLAcctBalanceCube from

Parameters (4)

NameTypeDefault
P_Language sylangu
P_KeyDate sydate
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CFITRIALBALANCE view
EndUserText.label Trial Balance view
VDM.viewType #CONSUMPTION view
Analytics.query true view
Analytics.settings.maxProcessingEffort #HIGH view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
OData.publish true view

Fields (299)

KeyFieldSource TableSource FieldDescription
lookupEntityI_CalendarDate
resultElementFirstDayofMonthDate
resultElementCalendarDate
P_FromPostingDate
Ledger Ledger
CompanyCode I_GLAcctBalanceCube CompanyCode Receiver Company Code
CompanyCodeName Name of Company Code or Company
GLAccount I_GLAcctBalanceCube GLAccount General Ledger
GLAccountHierarchy Account Number
GLAccountHierarchyName G/L Account Name
PostingDate Posting Date in the Document
FiscalYear I_GLAcctBalanceCube FiscalYear G/L Fiscal Year
LedgerFiscalYear I_GLAcctBalanceCube LedgerFiscalYear Fiscal Year of Ledger
FinancialTransactionType I_GLAcctBalanceCube FinancialTransactionType Financial Transaction Type
BusinessTransactionType I_GLAcctBalanceCube BusinessTransactionType Business Transaction Type
ReferenceDocumentType I_GLAcctBalanceCube ReferenceDocumentType Reference Document Type
LogicalSystem I_GLAcctBalanceCube LogicalSystem Logical System
ReferenceDocumentItemGroup I_GLAcctBalanceCube ReferenceDocumentItemGroup Reference Document Item Group
IsReversal I_GLAcctBalanceCube IsReversal Indicator: Item is Reversing Another Item
IsReversed I_GLAcctBalanceCube IsReversed Indicator: Item is Reversed
IsSettlement I_GLAcctBalanceCube IsSettlement Indicator: Item is Settling or Transferring Another Item
IsSettled I_GLAcctBalanceCube IsSettled Indicator: Line Item is Settled or Transferred
PredecessorReferenceDocType I_GLAcctBalanceCube PredecessorReferenceDocType Predecessor Reference Document Type
ProfitCenter I_GLAcctBalanceCube ProfitCenter Profit Center
ProfitCenterName Description of Profit Center
FunctionalArea I_GLAcctBalanceCube FunctionalArea Sendr Fctl Area
FunctionalAreaName Name of the Functional Area
BusinessArea I_GLAcctBalanceCube BusinessArea Business Area
BusinessAreaName Business Area Name
ControllingArea I_GLAcctBalanceCube ControllingArea Controlling Area
ControllingAreaName Controlling Area Name
Segment I_GLAcctBalanceCube Segment Segment for Segmental Reporting
SegmentName Segment Name
PartnerCostCenter I_GLAcctBalanceCube PartnerCostCenter Partner Cost Center
PartnerProfitCenter I_GLAcctBalanceCube PartnerProfitCenter Partner Profit Center
PartnerFunctionalArea I_GLAcctBalanceCube PartnerFunctionalArea Partner Functional Area
PartnerFunctionalAreaName Name of the Partner Functional Area
PartnerBusinessArea I_GLAcctBalanceCube PartnerBusinessArea Partner Business Area
PartnerBusinessAreaName Partner Business Area Name
PartnerCompany I_GLAcctBalanceCube PartnerCompany Company ID of Trading Partner
PartnerSegment I_GLAcctBalanceCube PartnerSegment Partner Segment for Segmental Reporting
PartnerSegmentName Partner Segment Name
DebitCreditCode I_GLAcctBalanceCube DebitCreditCode Single-Character Flag
DebitCreditCodeName Debit/Credit Code Name
FiscalYearVariant I_GLAcctBalanceCube FiscalYearVariant Fiscal Year Variant
FiscalYearPeriod I_GLAcctBalanceCube FiscalYearPeriod Fiscal Year Period
FiscalPeriod I_GLAcctBalanceCube FiscalPeriod Fiscal Period
AccountingDocumentType I_GLAcctBalanceCube AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName Document Type Name
AssignmentReference I_GLAcctBalanceCube AssignmentReference Assignment Reference
PostingKey I_GLAcctBalanceCube PostingKey Posting Key
PostingKeyName Posting Key Name
AccountingDocumentCategory I_GLAcctBalanceCube AccountingDocumentCategory Journal Entry Category
TransactionTypeDetermination I_GLAcctBalanceCube TransactionTypeDetermination Transaction Key
AccountingDocCreatedByUser I_GLAcctBalanceCube AccountingDocCreatedByUser User which created overhead document
EliminationProfitCenter I_GLAcctBalanceCube EliminationProfitCenter Elimination Profit Center
OriginObjectType I_GLAcctBalanceCube OriginObjectType Type of Origin Object
GLAccountType I_GLAcctBalanceCube GLAccountType Type of a General Ledger Account
ChartOfAccounts I_GLAcctBalanceCube ChartOfAccounts Chart of Accounts
AlternativeGLAccount I_GLAcctBalanceCube AlternativeGLAccount Alternative G/L Account Number In Company Code
CountryChartOfAccounts I_GLAcctBalanceCube CountryChartOfAccounts Alternative Chart of Accounts for Country/Region
PurchasingDocument I_GLAcctBalanceCube PurchasingDocument Purchasing Document
PurchasingDocumentItem I_GLAcctBalanceCube PurchasingDocumentItem Purchasing Document Item
AccountAssignmentNumber I_GLAcctBalanceCube AccountAssignmentNumber Account Assignment Number
Material I_GLAcctBalanceCube Material Product (Deprecated)
Product I_GLAcctBalanceCube Product Product Sold
MaterialName Product Description
Plant I_GLAcctBalanceCube Plant Valuation Area
PlantName Plant Name
Supplier I_GLAcctBalanceCube Supplier Supplier
SupplierName Name of Supplier
Customer I_GLAcctBalanceCube Customer Customer Number
CustomerName Name of Customer
FinancialAccountType I_GLAcctBalanceCube FinancialAccountType Fin. Account Type
FinancialAccountTypeName Financial Account Type Name
SpecialGLCode I_GLAcctBalanceCube SpecialGLCode Special G/L Indicator
TaxCode I_GLAcctBalanceCube TaxCode Tax on Sales/Purchases Code
HouseBank I_GLAcctBalanceCube HouseBank House Bank Key
HouseBankAccount I_GLAcctBalanceCube HouseBankAccount House Bank Account
IsOpenItemManaged I_GLAcctBalanceCube IsOpenItemManaged Managed on an Open Item Basis
ClearingAccountingDocument I_GLAcctBalanceCube ClearingAccountingDocument Clearing Journal Entry (Deprecated)
ClearingDocFiscalYear I_GLAcctBalanceCube ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry (Deprecated)
ClearingJournalEntry I_GLAcctBalanceCube ClearingJournalEntry Clearing Journal Entry
ClearingJournalEntryFiscalYear I_GLAcctBalanceCube ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
AssetDepreciationArea I_GLAcctBalanceCube AssetDepreciationArea Asset Depreciation Area (Real or Derived)
MasterFixedAsset I_GLAcctBalanceCube MasterFixedAsset Fixed Asset (Main Asset Number)
FixedAsset I_GLAcctBalanceCube FixedAsset Asset Subnumber
AssetValueDate I_GLAcctBalanceCube AssetValueDate Asset Value Date
AssetTransactionType I_GLAcctBalanceCube AssetTransactionType Asset Transaction Type
GroupMasterFixedAsset I_GLAcctBalanceCube GroupMasterFixedAsset Group Asset
GroupFixedAsset I_GLAcctBalanceCube GroupFixedAsset Group Asset Subnumber
InventorySpecialStockValnType I_GLAcctBalanceCube InventorySpecialStockValnType Inventory Special Stock Valuation Type (Deprecated)
InvtrySpecialStockValnType_2 I_GLAcctBalanceCube InvtrySpecialStockValnType_2 Inventory Special Stock Valuation Type
InventorySpecialStockType I_GLAcctBalanceCube InventorySpecialStockType Inventory Special Stock Type
InventorySpclStkSalesDocument I_GLAcctBalanceCube InventorySpclStkSalesDocument Inventory Special Stock Sales Document
InventorySpclStkSalesDocItm I_GLAcctBalanceCube InventorySpclStkSalesDocItm Inventory Special Stock Sales Document Item
InventorySpclStockWBSElement I_GLAcctBalanceCube InventorySpclStockWBSElement WBS Element (external) of Valuated Special Inventory
InvtrySpclStockWBSElmntExtID I_GLAcctBalanceCube InvtrySpclStockWBSElmntExtID Inventory Special Stock WBS Element External ID
InvtrySpclStockWBSElmntIntID I_GLAcctBalanceCube InvtrySpclStockWBSElmntIntID Inventory Special Stock WBS Element Internal ID
InventorySpecialStockSupplier I_GLAcctBalanceCube InventorySpecialStockSupplier Supplier of Inventory Special Stock
InvtrySpecialStockSupplierName Inventory Special Stock Supplier Name
InventoryValuationType I_GLAcctBalanceCube InventoryValuationType Inventory Valuation Type
ValuationArea I_GLAcctBalanceCube ValuationArea Valuation Area
SenderGLAccount I_GLAcctBalanceCube SenderGLAccount Sender G/L Account
SenderAccountAssignment I_GLAcctBalanceCube SenderAccountAssignment Sender Account Assignment
SenderAccountAssignmentType I_GLAcctBalanceCube SenderAccountAssignmentType Account Assignment Type in Sender System
ControllingObjectDebitType I_GLAcctBalanceCube ControllingObjectDebitType Controlling Object Debit Type
QuantityIsIncomplete I_GLAcctBalanceCube QuantityIsIncomplete Indicator: Quantity is Incomplete
OffsettingAccount I_GLAcctBalanceCube OffsettingAccount Offsetting Account
OffsettingAccountType I_GLAcctBalanceCube OffsettingAccountType Offsetting Account Type
LineItemIsCompleted I_GLAcctBalanceCube LineItemIsCompleted Indicator: Line Item is Completed
PersonnelNumber I_GLAcctBalanceCube PersonnelNumber Personnel Number
ControllingObjectClass I_GLAcctBalanceCube ControllingObjectClass Controlling Object Class
PartnerCompanyCode I_GLAcctBalanceCube PartnerCompanyCode Partner Company Code
PartnerControllingObjectClass I_GLAcctBalanceCube PartnerControllingObjectClass Partner Controlling Object Class
OriginCostCenter I_GLAcctBalanceCube OriginCostCenter Origin Cost Center
OriginCostCtrActivityType I_GLAcctBalanceCube OriginCostCtrActivityType Origin Cost Center Activity Type
AccountAssignment I_GLAcctBalanceCube AccountAssignment Sender Acct Assgmt
AccountAssignmentType I_GLAcctBalanceCube AccountAssignmentType Account Assignment Type
ProjectNetwork I_GLAcctBalanceCube ProjectNetwork Network Number for Account Assignment
RelatedNetworkActivity I_GLAcctBalanceCube RelatedNetworkActivity Related Network Activity
BusinessProcess I_GLAcctBalanceCube BusinessProcess Business Process
CostObject I_GLAcctBalanceCube CostObject Cost Object
CustomerServiceNotification I_GLAcctBalanceCube CustomerServiceNotification Customer Service Notification
OperatingConcern I_GLAcctBalanceCube OperatingConcern Operating concern
PartnerAccountAssignment I_GLAcctBalanceCube PartnerAccountAssignment Partner Account Assignment
PartnerAccountAssignmentType I_GLAcctBalanceCube PartnerAccountAssignmentType Partner Account Assignment Type
PartnerCostCtrActivityType I_GLAcctBalanceCube PartnerCostCtrActivityType Partner Cost Center Activity Type
PartnerOrder I_GLAcctBalanceCube PartnerOrder Partner Order
PartnerOrderCategory I_GLAcctBalanceCube PartnerOrderCategory Partner Order Category
PartnerWBSElement I_GLAcctBalanceCube PartnerWBSElement Partner WBS Element
PartnerWBSElementExternalID Partner WBS Element External ID
PartnerProject I_GLAcctBalanceCube PartnerProject Partner Project
PartnerProjectExternalID Partner Project External ID
PartnerSalesDocument I_GLAcctBalanceCube PartnerSalesDocument Partner Sales Document
PartnerSalesDocumentItem I_GLAcctBalanceCube PartnerSalesDocumentItem Partner Sales Document Item
PartnerProjectNetwork I_GLAcctBalanceCube PartnerProjectNetwork Partner Project Network
PartnerProjectNetworkActivity I_GLAcctBalanceCube PartnerProjectNetworkActivity Partner Project Network Activity
PartnerBusinessProcess I_GLAcctBalanceCube PartnerBusinessProcess Partner Business Process
PartnerCostObject I_GLAcctBalanceCube PartnerCostObject Partner Cost Object
BillingDocumentType I_GLAcctBalanceCube BillingDocumentType Billing Type
SalesOrganization I_GLAcctBalanceCube SalesOrganization Sales Organization
DistributionChannel I_GLAcctBalanceCube DistributionChannel Distribution Channel
OrganizationDivision I_GLAcctBalanceCube OrganizationDivision Org. Division
SoldMaterial I_GLAcctBalanceCube SoldMaterial Product Sold (Deprecated)
SoldProduct I_GLAcctBalanceCube SoldProduct Product Sold
MaterialGroup I_GLAcctBalanceCube MaterialGroup Product Sold Group (Deprecated)
SoldProductGroup I_GLAcctBalanceCube SoldProductGroup Product Sold Group
ProductGroup I_GLAcctBalanceCube ProductGroup Product Sold Group
MaterialGroupName Product Group Description
CustomerGroup I_GLAcctBalanceCube CustomerGroup Customer Group
CustomerGroupName Description
FinancialManagementArea I_GLAcctBalanceCube FinancialManagementArea Financial Management Area
Fund I_GLAcctBalanceCube Fund Sender Fund
GrantID I_GLAcctBalanceCube GrantID Sender Grant
BudgetPeriod I_GLAcctBalanceCube BudgetPeriod Budget Period
PartnerFund I_GLAcctBalanceCube PartnerFund Receiver Fund
PartnerGrant I_GLAcctBalanceCube PartnerGrant Receiver Grant
PartnerBudgetPeriod I_GLAcctBalanceCube PartnerBudgetPeriod FM: Partner Budget Period
JointVenture I_GLAcctBalanceCube JointVenture Joint venture
JointVentureEquityGroup I_GLAcctBalanceCube JointVentureEquityGroup Joint Venture Equity Group
JointVentureCostRecoveryCode I_GLAcctBalanceCube JointVentureCostRecoveryCode Joint Venture Cost Recovery Code
JointVentureEquityType I_GLAcctBalanceCube JointVentureEquityType Joint Venture Equity Type
SettlementReferenceDate I_GLAcctBalanceCube SettlementReferenceDate Settlement Reference Date
CostCenter I_GLAcctBalanceCube CostCenter Cost Center
CostCenterName Cost Center Name
CostCtrActivityType I_GLAcctBalanceCube CostCtrActivityType Activity Type
OrderID I_GLAcctBalanceCube OrderID Order ID
OrderCategory I_GLAcctBalanceCube OrderCategory Order Category
WBSElement I_GLAcctBalanceCube WBSElement WBS Internal ID
WBSElementExternalID I_GLAcctBalanceCube WBSElementExternalID WBS Element External ID
Project I_GLAcctBalanceCube Project WBS Element
ProjectExternalID I_GLAcctBalanceCube ProjectExternalID Project External ID
SalesOrder I_GLAcctBalanceCube SalesOrder SD Document
SalesOrderItem I_GLAcctBalanceCube SalesOrderItem Sales Order Item
SalesDocument I_GLAcctBalanceCube SalesDocument Sales Document
SalesDocumentItem I_GLAcctBalanceCube SalesDocumentItem Sales Document Item
ClearingDate I_GLAcctBalanceCube ClearingDate Clearing Date
CompanyCodeCurrency I_GLAcctBalanceCube CompanyCodeCurrency Company Code Currency
GlobalCurrency I_GLAcctBalanceCube GlobalCurrency GM Billing Element: Global Currency
FreeDefinedCurrency1 I_GLAcctBalanceCube FreeDefinedCurrency1 Freely Defined Currency 1
FreeDefinedCurrency2 I_GLAcctBalanceCube FreeDefinedCurrency2 Freely Defined Currency 2
FreeDefinedCurrency3 I_GLAcctBalanceCube FreeDefinedCurrency3 Freely Defined Currency 3
FreeDefinedCurrency4 I_GLAcctBalanceCube FreeDefinedCurrency4 Freely Defined Currency 4
FreeDefinedCurrency5 I_GLAcctBalanceCube FreeDefinedCurrency5 Freely Defined Currency 5
FreeDefinedCurrency6 I_GLAcctBalanceCube FreeDefinedCurrency6 Freely Defined Currency 6
FreeDefinedCurrency7 I_GLAcctBalanceCube FreeDefinedCurrency7 Freely Defined Currency 7
FreeDefinedCurrency8 I_GLAcctBalanceCube FreeDefinedCurrency8 Freely Defined Currency 8
BalanceTransactionCurrency I_GLAcctBalanceCube BalanceTransactionCurrency Balance Transaction Currency
TransactionCurrency I_GLAcctBalanceCube TransactionCurrency Transaction Currency
FiscalPeriodDate I_GLAcctBalanceCube FiscalPeriodDate Fiscal Period Date
FiscalPeriodEndDate I_GLAcctBalanceCube FiscalPeriodEndDate End Date of Fiscal Period
FiscalPeriodStartDate I_GLAcctBalanceCube FiscalPeriodStartDate Start Date of Fiscal Period
CalendarYear I_GLAcctBalanceCube CalendarYear Calendar Year
CalendarQuarter I_GLAcctBalanceCube CalendarQuarter Calendar Quarter
CalendarYearQuarter I_GLAcctBalanceCube CalendarYearQuarter Year Quarter
CalendarMonth I_GLAcctBalanceCube CalendarMonth Calendar Month
CalendarYearMonth I_GLAcctBalanceCube CalendarYearMonth Year Month
CalendarWeek I_GLAcctBalanceCube CalendarWeek Calendar Week
CalendarYearWeek I_GLAcctBalanceCube CalendarYearWeek Year Week
FiscalQuarter I_GLAcctBalanceCube FiscalQuarter Fiscal Quarter
FiscalWeek I_GLAcctBalanceCube FiscalWeek Fiscal Week
FiscalYearQuarter I_GLAcctBalanceCube FiscalYearQuarter Fiscal Year + Fiscal Quarter
FiscalYearWeek I_GLAcctBalanceCube FiscalYearWeek Fiscal Year + Fiscal Week
CorporateGroupAccount I_GLAcctBalanceCube CorporateGroupAccount Group Account Number
CorporateGroupChartOfAccounts I_GLAcctBalanceCube CorporateGroupChartOfAccounts Group Chart of Accts
IsBalanceSheetAccount I_GLAcctBalanceCube IsBalanceSheetAccount Is Balance Sheet Account
StartingBalanceAmtInCoCodeCrcy Starting Balance Amount In Company Code Currency
DebitAmountInCoCodeCrcy Debit Balance in Company Code Currency
CreditAmountInCoCodeCrcy Credit Balance in Company Code Currency
EndingBalanceAmtInCoCodeCrcy Ending Balance in Company Code Currency
IntmdEndingBalAmtInCoCodeCrcy I_GLAcctBalanceCube EndingBalanceAmtInCoCodeCrcy Ending Balance in Company Code Currency
GLAcctDebitAmtInCoCodeCrcy I_GLAcctBalanceCube DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
GLAcctCreditAmtInCoCodeCrcy I_GLAcctBalanceCube CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
StartingBalanceAmtInGlobalCrcy Starting Balance Amount In Global Currency
DebitAmountInGlobalCrcy Debit Balance in Global Currency
CreditAmountInGlobalCrcy Credit Balance in Global Currency
EndingBalanceAmtInGlobalCrcy Ending Balance in Global Currency
IntmdEndingBalAmtInGlobalCrcy I_GLAcctBalanceCube EndingBalanceAmtInGlobalCrcy Ending Balance in Global Currency
IntmdDebitAmountInGlobalCrcy I_GLAcctBalanceCube DebitAmountInGlobalCrcy Debit Amount in Global Currency
IntmdCreditAmountInGlobalCrcy I_GLAcctBalanceCube CreditAmountInGlobalCrcy Credit Amount in Global Currency
StrtgBalAmtInFreeDfndCrcy1 Starting Balance Amount In Freely Defined Currency 1
DebitAmountInFreeDfndCrcy1 Debit Balance in Freely Defined Currency 1
CreditAmountInFreeDfndCrcy1 Credit Balance in Freely Defined Currency 1
EndingBalAmtInFreeDfndCrcy1 Ending Balance in Freely Defined Currency 1
IntmdEndingBalInFreeDfndCrcy1 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy1 Ending Balance in Free Defined Currency 1
IntmdDebitAmtInFreeDfndCrcy1 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy1 Debit Amount in Free Defined Currency 1
IntmdCreditAmtInFreeDfndCrcy1 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy1 Credit Amount in Free Defined Currency 1
StrtgBalAmtInFreeDfndCrcy2 Starting Balance Amount In Freely Defined Currency 2
DebitAmountInFreeDfndCrcy2 Debit Balance in Freely Defined Currency 2
CreditAmountInFreeDfndCrcy2 Credit Balance in Freely Defined Currency 2
EndingBalAmtInFreeDfndCrcy2 Ending Balance in Freely Defined Currency 2
IntmdEndingBalInFreeDfndCrcy2 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy2 Ending Balance in Free Defined Currency 2
IntmdDebitAmtInFreeDfndCrcy2 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy2 Debit Amount in Free Defined Currency 2
IntmdCreditAmtInFreeDfndCrcy2 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy2 Credit Amount in Free Defined Currency 2
StrtgBalAmtInFreeDfndCrcy3 Starting Balance Amount In Freely Defined Currency 3
DebitAmountInFreeDfndCrcy3 Debit Balance in Freely Defined Currency 3
CreditAmountInFreeDfndCrcy3 Credit Balance in Freely Defined Currency 3
EndingBalAmtInFreeDfndCrcy3 Ending Balance in Freely Defined Currency 3
IntmdEndingBalInFreeDfndCrcy3 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy3 Ending Balance in Free Defined Currency 3
IntmdDebitAmtInFreeDfndCrcy3 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy3 Debit Amount in Free Defined Currency 3
IntmdCreditAmtInFreeDfndCrcy3 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy3 Credit Amount in Free Defined Currency 3
StrtgBalAmtInFreeDfndCrcy4 Starting Balance Amount In Freely Defined Currency 4
DebitAmountInFreeDfndCrcy4 Debit Balance in Freely Defined Currency 4
CreditAmountInFreeDfndCrcy4 Credit Balance in Freely Defined Currency 4
EndingBalAmtInFreeDfndCrcy4 Ending Balance in Freely Defined Currency 4
IntmdEndingBalInFreeDfndCrcy4 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy4 Ending Balance in Free Defined Currency 4
IntmdDebitAmtInFreeDfndCrcy4 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy4 Debit Amount in Free Defined Currency 4
IntmdCreditAmtInFreeDfndCrcy4 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy4 Credit Amount in Free Defined Currency 4
StrtgBalAmtInFreeDfndCrcy5 Starting Balance Amount In Freely Defined Currency 5
DebitAmountInFreeDfndCrcy5 Debit Balance in Freely Defined Currency 5
CreditAmountInFreeDfndCrcy5 Credit Balance in Freely Defined Currency 5
EndingBalAmtInFreeDfndCrcy5 Ending Balance in Freely Defined Currency 5
IntmdEndingBalInFreeDfndCrcy5 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy5 Ending Balance in Free Defined Currency 5
IntmdDebitAmtInFreeDfndCrcy5 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy5 Debit Amount in Free Defined Currency 5
IntmdCreditAmtInFreeDfndCrcy5 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy5 Credit Amount in Free Defined Currency 5
StrtgBalAmtInFreeDfndCrcy6 Starting Balance Amount In Freely Defined Currency 6
DebitAmountInFreeDfndCrcy6 Debit Balance in Freely Defined Currency 6
CreditAmountInFreeDfndCrcy6 Credit Balance in Freely Defined Currency 6
EndingBalAmtInFreeDfndCrcy6 Ending Balance in Freely Defined Currency 6
IntmdEndingBalInFreeDfndCrcy6 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy6 Ending Balance in Free Defined Currency 6
IntmdDebitAmtInFreeDfndCrcy6 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy6 Debit Amount in Free Defined Currency 6
IntmdCreditAmtInFreeDfndCrcy6 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy6 Credit Amount in Free Defined Currency 6
StrtgBalAmtInFreeDfndCrcy7 Starting Balance Amount In Freely Defined Currency 7
DebitAmountInFreeDfndCrcy7 Debit Balance in Freely Defined Currency 7
CreditAmountInFreeDfndCrcy7 Credit Balance in Freely Defined Currency 7
EndingBalAmtInFreeDfndCrcy7 Ending Balance in Freely Defined Currency 7
IntmdEndingBalInFreeDfndCrcy7 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy7 Ending Balance in Free Defined Currency 7
IntmdDebitAmtInFreeDfndCrcy7 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy7 Debit Amount in Free Defined Currency 7
IntmdCreditAmtInFreeDfndCrcy7 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy7 Credit Amount in Free Defined Currency 7
StrtgBalAmtInFreeDfndCrcy8 Starting Balance Amount In Freely Defined Currency 8
DebitAmountInFreeDfndCrcy8 Debit Balance in Freely Defined Currency 8
CreditAmountInFreeDfndCrcy8 Credit Balance in Freely Defined Currency 8
EndingBalAmtInFreeDfndCrcy8 Ending Balance in Freely Defined Currency 8
IntmdEndingBalInFreeDfndCrcy8 I_GLAcctBalanceCube EndingBalAmtInFreeDfndCrcy8 Ending Balance in Free Defined Currency 8
IntmdDebitAmtInFreeDfndCrcy8 I_GLAcctBalanceCube DebitAmountInFreeDefinedCrcy8 Debit Amount in Free Defined Currency 8
IntmdCreditAmtInFreeDfndCrcy8 I_GLAcctBalanceCube CreditAmountInFreeDefinedCrcy8 Credit Amount in Free Defined Currency 8
StartingBalAmtInBalTransCrcy Starting Balance Amount In Balance Transaction Currency
DebitAmountInBalanceTransCrcy Debit Balance in Balance Transaction Currency
CreditAmountInBalanceTransCrcy Credit Balance in Balance Transaction Currency
EndingBalanceAmtInBalTransCrcy Ending Balance in Balance Transaction Currency
IntmdEndingBalInBalTransCrcy I_GLAcctBalanceCube EndingBalanceAmtInBalTransCrcy Ending Balance in Balance Transaction Currency
IntmdDebitAmtInBalTransCrcy I_GLAcctBalanceCube DebitAmountInBalanceTransCrcy Debit Amount in Balance Transaction Currency
IntmdCreditAmtInBalTransCrcy I_GLAcctBalanceCube CreditAmountInBalanceTransCrcy Credit Amount in Balance Transaction Currency
StartingBalanceAmtInTransCrcy Starting Balance Amount In Transaction Currency
DebitAmountInTransCrcy Debit Balance in Transaction Currency
CreditAmountInTransCrcy Credit Balance in Transaction Currency
EndingBalanceAmtInTransCrcy Ending Balance in Transaction Currency
IntmdEndingBalanceInTransCrcy I_GLAcctBalanceCube EndingBalanceAmtInTransCrcy Ending Balance in Transaction Currency
IntmdDebitAmtInTransCrcy I_GLAcctBalanceCube DebitAmountInTransCrcy Debit Amount in Transaction Currency
IntmdCreditAmountInTransCrcy I_GLAcctBalanceCube CreditAmountInTransCrcy Credit Amount in Transaction Currency
FunctionalCurrency I_GLAcctBalanceCube FunctionalCurrency Functional Currency
StartingBalanceAmtInFuncnlCrcy Starting Balance Amount In Functional Currency
DebitAmountInFunctionalCrcy Debit Amount in Functional Currency
CreditAmountInFunctionalCrcy Credit Amount in Functional Currency
EndingBalanceAmtInFuncnlCrcy Ending Balance in Functional Currency
IntmdEndingBalAmtInFuncnlCrcy I_GLAcctBalanceCube EndingBalanceAmtInFuncnlCrcy Ending Balance in Functional Currency
IntmdDebitAmountInFuncnlCrcy I_GLAcctBalanceCube DebitAmountInFunctionalCrcy Debit Amount in Functional Currency
IntmdCreditAmountInFuncnlCrcy I_GLAcctBalanceCube CreditAmountInFunctionalCrcy Credit Amount in Functional Currency

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 C_TrialBalance.
-- 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: CFITRIALBALANCE
-- Parameters: P_Language : sylangu, P_KeyDate : sydate, P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to

CREATE VIEW C_TrialBalance AS
SELECT
  lookupEntity: 'I_CalendarDate' AS lookupEntityI_CalendarDate,
  resultElement: 'FirstDayofMonthDate' AS resultElementFirstDayofMonthDate,
  resultElement: 'CalendarDate' AS resultElementCalendarDate,
  binding: [ { targetElement : 'CalendarDate' , type : #PARAMETER, value : 'P_KeyDate' AS P_FromPostingDate,
  I_GLAcctBalanceCube.CompanyCode AS CompanyCode,
  I_GLAcctBalanceCube._CompanyCode.CompanyCodeName AS CompanyCodeName,
  I_GLAcctBalanceCube.GLAccount AS GLAccount,
  cast(I_GLAcctBalanceCube.GLAccountHierarchy as racct) AS GLAccountHierarchy,
  I_GLAcctBalanceCube._GLAccountInChartOfAccounts._Text[1: Language = $parameters.P_Language].GLAccountName AS GLAccountHierarchyName,
  cast( I_GLAcctBalanceCube.PostingDate as budat preserving type ) AS PostingDate,
  I_GLAcctBalanceCube.FiscalYear AS FiscalYear,
  I_GLAcctBalanceCube.LedgerFiscalYear AS LedgerFiscalYear,
  I_GLAcctBalanceCube.FinancialTransactionType AS FinancialTransactionType,
  I_GLAcctBalanceCube.BusinessTransactionType AS BusinessTransactionType,
  I_GLAcctBalanceCube.ReferenceDocumentType AS ReferenceDocumentType,
  I_GLAcctBalanceCube.LogicalSystem AS LogicalSystem,
  I_GLAcctBalanceCube.ReferenceDocumentItemGroup AS ReferenceDocumentItemGroup,
  I_GLAcctBalanceCube.IsReversal AS IsReversal,
  I_GLAcctBalanceCube.IsReversed AS IsReversed,
  I_GLAcctBalanceCube.IsSettlement AS IsSettlement,
  I_GLAcctBalanceCube.IsSettled AS IsSettled,
  I_GLAcctBalanceCube.PredecessorReferenceDocType AS PredecessorReferenceDocType,
  I_GLAcctBalanceCube.ProfitCenter AS ProfitCenter,
  I_GLAcctBalanceCube._ProfitCenter[1:ValidityEndDate >= $parameters.P_KeyDate and ValidityStartDate <= $parameters.P_KeyDate]._Text[1:Language = $parameters.P_Language].ProfitCenterName AS ProfitCenterName,
  I_GLAcctBalanceCube.FunctionalArea AS FunctionalArea,
  I_GLAcctBalanceCube._FunctionalArea._Text[1:Language = $parameters.P_Language].FunctionalAreaName AS FunctionalAreaName,
  I_GLAcctBalanceCube.BusinessArea AS BusinessArea,
  I_GLAcctBalanceCube._BusinessArea._Text[1:Language = $parameters.P_Language].BusinessAreaName AS BusinessAreaName,
  I_GLAcctBalanceCube.ControllingArea AS ControllingArea,
  I_GLAcctBalanceCube._ControllingArea.ControllingAreaName AS ControllingAreaName,
  I_GLAcctBalanceCube.Segment AS Segment,
  I_GLAcctBalanceCube._Segment._Text[1:Language = $parameters.P_Language].SegmentName AS SegmentName,
  I_GLAcctBalanceCube.PartnerCostCenter AS PartnerCostCenter,
  I_GLAcctBalanceCube.PartnerProfitCenter AS PartnerProfitCenter,
  I_GLAcctBalanceCube.PartnerFunctionalArea AS PartnerFunctionalArea,
  cast( I_GLAcctBalanceCube._PartnerFunctionalArea._Text[1:Language = $parameters.P_Language].FunctionalAreaName as fis_pfkbtx preserving type ) AS PartnerFunctionalAreaName,
  I_GLAcctBalanceCube.PartnerBusinessArea AS PartnerBusinessArea,
  cast( I_GLAcctBalanceCube._PartnerBusinessArea._Text[1:Language = $parameters.P_Language].BusinessAreaName as fis_partner_gtext_vdm preserving type ) AS PartnerBusinessAreaName,
  I_GLAcctBalanceCube.PartnerCompany AS PartnerCompany,
  I_GLAcctBalanceCube.PartnerSegment AS PartnerSegment,
  cast( I_GLAcctBalanceCube._PartnerSegment._Text[1:Language = $parameters.P_Language].SegmentName as fis_partner_segment_name preserving type ) AS PartnerSegmentName,
  I_GLAcctBalanceCube.DebitCreditCode AS DebitCreditCode,
  I_GLAcctBalanceCube._DebitCreditCode._Text[1:Language = $parameters.P_Language].DebitCreditCodeName AS DebitCreditCodeName,
  I_GLAcctBalanceCube.FiscalYearVariant AS FiscalYearVariant,
  I_GLAcctBalanceCube.FiscalYearPeriod AS FiscalYearPeriod,
  I_GLAcctBalanceCube.FiscalPeriod AS FiscalPeriod,
  I_GLAcctBalanceCube.AccountingDocumentType AS AccountingDocumentType,
  I_GLAcctBalanceCube._AccountingDocumentType._Text[1:Language = $parameters.P_Language].AccountingDocumentTypeName AS AccountingDocumentTypeName,
  I_GLAcctBalanceCube.AssignmentReference AS AssignmentReference,
  I_GLAcctBalanceCube.PostingKey AS PostingKey,
  I_GLAcctBalanceCube._PostingKey._PostingKeyText[1:Language = $parameters.P_Language].PostingKeyName AS PostingKeyName,
  I_GLAcctBalanceCube.AccountingDocumentCategory AS AccountingDocumentCategory,
  I_GLAcctBalanceCube.TransactionTypeDetermination AS TransactionTypeDetermination,
  I_GLAcctBalanceCube.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  I_GLAcctBalanceCube.EliminationProfitCenter AS EliminationProfitCenter,
  I_GLAcctBalanceCube.OriginObjectType AS OriginObjectType,
  I_GLAcctBalanceCube.GLAccountType AS GLAccountType,
  I_GLAcctBalanceCube.ChartOfAccounts AS ChartOfAccounts,
  I_GLAcctBalanceCube.AlternativeGLAccount AS AlternativeGLAccount,
  I_GLAcctBalanceCube.CountryChartOfAccounts AS CountryChartOfAccounts,
  I_GLAcctBalanceCube.PurchasingDocument AS PurchasingDocument,
  I_GLAcctBalanceCube.PurchasingDocumentItem AS PurchasingDocumentItem,
  I_GLAcctBalanceCube.AccountAssignmentNumber AS AccountAssignmentNumber,
  I_GLAcctBalanceCube.Material AS Material,
  I_GLAcctBalanceCube.Product AS Product,
  I_GLAcctBalanceCube._Product._Text[1:Language = $parameters.P_Language].ProductName AS MaterialName,
  I_GLAcctBalanceCube.Plant AS Plant,
  I_GLAcctBalanceCube._Plant.PlantName AS PlantName,
  I_GLAcctBalanceCube.Supplier AS Supplier,
  I_GLAcctBalanceCube._Supplier.SupplierName AS SupplierName,
  I_GLAcctBalanceCube.Customer AS Customer,
  I_GLAcctBalanceCube._Customer.CustomerName AS CustomerName,
  I_GLAcctBalanceCube.FinancialAccountType AS FinancialAccountType,
  I_GLAcctBalanceCube._FinancialAccountType._Text[1:Language = $parameters.P_Language].FinancialAccountTypeName AS FinancialAccountTypeName,
  I_GLAcctBalanceCube.SpecialGLCode AS SpecialGLCode,
  I_GLAcctBalanceCube.TaxCode AS TaxCode,
  I_GLAcctBalanceCube.HouseBank AS HouseBank,
  I_GLAcctBalanceCube.HouseBankAccount AS HouseBankAccount,
  I_GLAcctBalanceCube.IsOpenItemManaged AS IsOpenItemManaged,
  I_GLAcctBalanceCube.ClearingAccountingDocument AS ClearingAccountingDocument,
  I_GLAcctBalanceCube.ClearingDocFiscalYear AS ClearingDocFiscalYear,
  I_GLAcctBalanceCube.ClearingJournalEntry AS ClearingJournalEntry,
  I_GLAcctBalanceCube.ClearingJournalEntryFiscalYear AS ClearingJournalEntryFiscalYear,
  I_GLAcctBalanceCube.AssetDepreciationArea AS AssetDepreciationArea,
  I_GLAcctBalanceCube.MasterFixedAsset AS MasterFixedAsset,
  I_GLAcctBalanceCube.FixedAsset AS FixedAsset,
  I_GLAcctBalanceCube.AssetValueDate AS AssetValueDate,
  I_GLAcctBalanceCube.AssetTransactionType AS AssetTransactionType,
  I_GLAcctBalanceCube.GroupMasterFixedAsset AS GroupMasterFixedAsset,
  I_GLAcctBalanceCube.GroupFixedAsset AS GroupFixedAsset,
  I_GLAcctBalanceCube.InventorySpecialStockValnType AS InventorySpecialStockValnType,
  I_GLAcctBalanceCube.InvtrySpecialStockValnType_2 AS InvtrySpecialStockValnType_2,
  I_GLAcctBalanceCube.InventorySpecialStockType AS InventorySpecialStockType,
  I_GLAcctBalanceCube.InventorySpclStkSalesDocument AS InventorySpclStkSalesDocument,
  I_GLAcctBalanceCube.InventorySpclStkSalesDocItm AS InventorySpclStkSalesDocItm,
  I_GLAcctBalanceCube.InventorySpclStockWBSElement AS InventorySpclStockWBSElement,
  I_GLAcctBalanceCube.InvtrySpclStockWBSElmntExtID AS InvtrySpclStockWBSElmntExtID,
  I_GLAcctBalanceCube.InvtrySpclStockWBSElmntIntID AS InvtrySpclStockWBSElmntIntID,
  I_GLAcctBalanceCube.InventorySpecialStockSupplier AS InventorySpecialStockSupplier,
  cast( I_GLAcctBalanceCube._InventorySpecialStockSupplier.SupplierName as fis_mlmat_lifnr_name preserving type ) AS InvtrySpecialStockSupplierName,
  I_GLAcctBalanceCube.InventoryValuationType AS InventoryValuationType,
  I_GLAcctBalanceCube.ValuationArea AS ValuationArea,
  I_GLAcctBalanceCube.SenderGLAccount AS SenderGLAccount,
  I_GLAcctBalanceCube.SenderAccountAssignment AS SenderAccountAssignment,
  I_GLAcctBalanceCube.SenderAccountAssignmentType AS SenderAccountAssignmentType,
  I_GLAcctBalanceCube.ControllingObjectDebitType AS ControllingObjectDebitType,
  I_GLAcctBalanceCube.QuantityIsIncomplete AS QuantityIsIncomplete,
  I_GLAcctBalanceCube.OffsettingAccount AS OffsettingAccount,
  I_GLAcctBalanceCube.OffsettingAccountType AS OffsettingAccountType,
  I_GLAcctBalanceCube.LineItemIsCompleted AS LineItemIsCompleted,
  I_GLAcctBalanceCube.PersonnelNumber AS PersonnelNumber,
  I_GLAcctBalanceCube.ControllingObjectClass AS ControllingObjectClass,
  I_GLAcctBalanceCube.PartnerCompanyCode AS PartnerCompanyCode,
  I_GLAcctBalanceCube.PartnerControllingObjectClass AS PartnerControllingObjectClass,
  I_GLAcctBalanceCube.OriginCostCenter AS OriginCostCenter,
  I_GLAcctBalanceCube.OriginCostCtrActivityType AS OriginCostCtrActivityType,
  I_GLAcctBalanceCube.AccountAssignment AS AccountAssignment,
  I_GLAcctBalanceCube.AccountAssignmentType AS AccountAssignmentType,
  I_GLAcctBalanceCube.ProjectNetwork AS ProjectNetwork,
  I_GLAcctBalanceCube.RelatedNetworkActivity AS RelatedNetworkActivity,
  I_GLAcctBalanceCube.BusinessProcess AS BusinessProcess,
  I_GLAcctBalanceCube.CostObject AS CostObject,
  I_GLAcctBalanceCube.CustomerServiceNotification AS CustomerServiceNotification,
  I_GLAcctBalanceCube.OperatingConcern AS OperatingConcern,
  I_GLAcctBalanceCube.PartnerAccountAssignment AS PartnerAccountAssignment,
  I_GLAcctBalanceCube.PartnerAccountAssignmentType AS PartnerAccountAssignmentType,
  I_GLAcctBalanceCube.PartnerCostCtrActivityType AS PartnerCostCtrActivityType,
  I_GLAcctBalanceCube.PartnerOrder AS PartnerOrder,
  I_GLAcctBalanceCube.PartnerOrderCategory AS PartnerOrderCategory,
  I_GLAcctBalanceCube.PartnerWBSElement AS PartnerWBSElement,
  cast( I_GLAcctBalanceCube._PartnerWBSElementBasicData.WBSElementExternalID as fis_partner_wbsext_no_conv ) AS PartnerWBSElementExternalID,
  I_GLAcctBalanceCube.PartnerProject AS PartnerProject,
  cast( I_GLAcctBalanceCube._PartnerProjectBasicData.ProjectExternalID as fis_part_projectext_no_conv ) AS PartnerProjectExternalID,
  I_GLAcctBalanceCube.PartnerSalesDocument AS PartnerSalesDocument,
  I_GLAcctBalanceCube.PartnerSalesDocumentItem AS PartnerSalesDocumentItem,
  I_GLAcctBalanceCube.PartnerProjectNetwork AS PartnerProjectNetwork,
  I_GLAcctBalanceCube.PartnerProjectNetworkActivity AS PartnerProjectNetworkActivity,
  I_GLAcctBalanceCube.PartnerBusinessProcess AS PartnerBusinessProcess,
  I_GLAcctBalanceCube.PartnerCostObject AS PartnerCostObject,
  I_GLAcctBalanceCube.BillingDocumentType AS BillingDocumentType,
  I_GLAcctBalanceCube.SalesOrganization AS SalesOrganization,
  I_GLAcctBalanceCube.DistributionChannel AS DistributionChannel,
  I_GLAcctBalanceCube.OrganizationDivision AS OrganizationDivision,
  I_GLAcctBalanceCube.SoldMaterial AS SoldMaterial,
  I_GLAcctBalanceCube.SoldProduct AS SoldProduct,
  I_GLAcctBalanceCube.MaterialGroup AS MaterialGroup,
  I_GLAcctBalanceCube.SoldProductGroup AS SoldProductGroup,
  I_GLAcctBalanceCube.ProductGroup AS ProductGroup,
  I_GLAcctBalanceCube._SoldProductGroup_2._ProductGroupText[1:Language = $parameters.P_Language].ProductGroupName AS MaterialGroupName,
  I_GLAcctBalanceCube.CustomerGroup AS CustomerGroup,
  I_GLAcctBalanceCube._CustomerGroup._Text[1:Language = $parameters.P_Language].CustomerGroupName AS CustomerGroupName,
  I_GLAcctBalanceCube.FinancialManagementArea AS FinancialManagementArea,
  I_GLAcctBalanceCube.Fund AS Fund,
  I_GLAcctBalanceCube.GrantID AS GrantID,
  I_GLAcctBalanceCube.BudgetPeriod AS BudgetPeriod,
  I_GLAcctBalanceCube.PartnerFund AS PartnerFund,
  I_GLAcctBalanceCube.PartnerGrant AS PartnerGrant,
  I_GLAcctBalanceCube.PartnerBudgetPeriod AS PartnerBudgetPeriod,
  I_GLAcctBalanceCube.JointVenture AS JointVenture,
  I_GLAcctBalanceCube.JointVentureEquityGroup AS JointVentureEquityGroup,
  I_GLAcctBalanceCube.JointVentureCostRecoveryCode AS JointVentureCostRecoveryCode,
  I_GLAcctBalanceCube.JointVentureEquityType AS JointVentureEquityType,
  I_GLAcctBalanceCube.SettlementReferenceDate AS SettlementReferenceDate,
  I_GLAcctBalanceCube.CostCenter AS CostCenter,
  I_GLAcctBalanceCube._CostCenter[1:ValidityEndDate >= $parameters.P_KeyDate and ValidityStartDate <= $parameters.P_KeyDate]._Text[1:Language = $parameters.P_Language].CostCenterName AS CostCenterName,
  I_GLAcctBalanceCube.CostCtrActivityType AS CostCtrActivityType,
  I_GLAcctBalanceCube.OrderID AS OrderID,
  I_GLAcctBalanceCube.OrderCategory AS OrderCategory,
  I_GLAcctBalanceCube.WBSElement AS WBSElement,
  I_GLAcctBalanceCube.WBSElementExternalID AS WBSElementExternalID,
  I_GLAcctBalanceCube.Project AS Project,
  I_GLAcctBalanceCube.ProjectExternalID AS ProjectExternalID,
  I_GLAcctBalanceCube.SalesOrder AS SalesOrder,
  I_GLAcctBalanceCube.SalesOrderItem AS SalesOrderItem,
  I_GLAcctBalanceCube.SalesDocument AS SalesDocument,
  I_GLAcctBalanceCube.SalesDocumentItem AS SalesDocumentItem,
  I_GLAcctBalanceCube.ClearingDate AS ClearingDate,
  I_GLAcctBalanceCube.CompanyCodeCurrency AS CompanyCodeCurrency,
  I_GLAcctBalanceCube.GlobalCurrency AS GlobalCurrency,
  I_GLAcctBalanceCube.FreeDefinedCurrency1 AS FreeDefinedCurrency1,
  I_GLAcctBalanceCube.FreeDefinedCurrency2 AS FreeDefinedCurrency2,
  I_GLAcctBalanceCube.FreeDefinedCurrency3 AS FreeDefinedCurrency3,
  I_GLAcctBalanceCube.FreeDefinedCurrency4 AS FreeDefinedCurrency4,
  I_GLAcctBalanceCube.FreeDefinedCurrency5 AS FreeDefinedCurrency5,
  I_GLAcctBalanceCube.FreeDefinedCurrency6 AS FreeDefinedCurrency6,
  I_GLAcctBalanceCube.FreeDefinedCurrency7 AS FreeDefinedCurrency7,
  I_GLAcctBalanceCube.FreeDefinedCurrency8 AS FreeDefinedCurrency8,
  I_GLAcctBalanceCube.BalanceTransactionCurrency AS BalanceTransactionCurrency,
  I_GLAcctBalanceCube.TransactionCurrency AS TransactionCurrency,
  I_GLAcctBalanceCube.FiscalPeriodDate AS FiscalPeriodDate,
  I_GLAcctBalanceCube.FiscalPeriodEndDate AS FiscalPeriodEndDate,
  I_GLAcctBalanceCube.FiscalPeriodStartDate AS FiscalPeriodStartDate,
  I_GLAcctBalanceCube.CalendarYear AS CalendarYear,
  I_GLAcctBalanceCube.CalendarQuarter AS CalendarQuarter,
  I_GLAcctBalanceCube.CalendarYearQuarter AS CalendarYearQuarter,
  I_GLAcctBalanceCube.CalendarMonth AS CalendarMonth,
  I_GLAcctBalanceCube.CalendarYearMonth AS CalendarYearMonth,
  I_GLAcctBalanceCube.CalendarWeek AS CalendarWeek,
  I_GLAcctBalanceCube.CalendarYearWeek AS CalendarYearWeek,
  I_GLAcctBalanceCube.FiscalQuarter AS FiscalQuarter,
  I_GLAcctBalanceCube.FiscalWeek AS FiscalWeek,
  I_GLAcctBalanceCube.FiscalYearQuarter AS FiscalYearQuarter,
  I_GLAcctBalanceCube.FiscalYearWeek AS FiscalYearWeek,
  I_GLAcctBalanceCube.CorporateGroupAccount AS CorporateGroupAccount,
  I_GLAcctBalanceCube.CorporateGroupChartOfAccounts AS CorporateGroupChartOfAccounts,
  I_GLAcctBalanceCube.IsBalanceSheetAccount AS IsBalanceSheetAccount,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_hsl_ui ) AS StartingBalanceAmtInCoCodeCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_hsl ) AS DebitAmountInCoCodeCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_hsl ) AS CreditAmountInCoCodeCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_hsl_ui ) AS EndingBalanceAmtInCoCodeCrcy,
  I_GLAcctBalanceCube.EndingBalanceAmtInCoCodeCrcy AS IntmdEndingBalAmtInCoCodeCrcy,
  I_GLAcctBalanceCube.DebitAmountInCoCodeCrcy AS GLAcctDebitAmtInCoCodeCrcy,
  I_GLAcctBalanceCube.CreditAmountInCoCodeCrcy AS GLAcctCreditAmtInCoCodeCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_ksl_ui ) AS StartingBalanceAmtInGlobalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_ksl ) AS DebitAmountInGlobalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_ksl ) AS CreditAmountInGlobalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_ksl_ui ) AS EndingBalanceAmtInGlobalCrcy,
  I_GLAcctBalanceCube.EndingBalanceAmtInGlobalCrcy AS IntmdEndingBalAmtInGlobalCrcy,
  I_GLAcctBalanceCube.DebitAmountInGlobalCrcy AS IntmdDebitAmountInGlobalCrcy,
  I_GLAcctBalanceCube.CreditAmountInGlobalCrcy AS IntmdCreditAmountInGlobalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_osl_ui ) AS StrtgBalAmtInFreeDfndCrcy1,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_osl ) AS DebitAmountInFreeDfndCrcy1,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_osl ) AS CreditAmountInFreeDfndCrcy1,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_osl_ui ) AS EndingBalAmtInFreeDfndCrcy1,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy1 AS IntmdEndingBalInFreeDfndCrcy1,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy1 AS IntmdDebitAmtInFreeDfndCrcy1,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy1 AS IntmdCreditAmtInFreeDfndCrcy1,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_vsl_ui ) AS StrtgBalAmtInFreeDfndCrcy2,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_vsl ) AS DebitAmountInFreeDfndCrcy2,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_vsl ) AS CreditAmountInFreeDfndCrcy2,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_vsl_ui ) AS EndingBalAmtInFreeDfndCrcy2,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy2 AS IntmdEndingBalInFreeDfndCrcy2,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy2 AS IntmdDebitAmtInFreeDfndCrcy2,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy2 AS IntmdCreditAmtInFreeDfndCrcy2,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_bsl_ui ) AS StrtgBalAmtInFreeDfndCrcy3,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_bsl ) AS DebitAmountInFreeDfndCrcy3,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_bsl ) AS CreditAmountInFreeDfndCrcy3,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_bsl_ui ) AS EndingBalAmtInFreeDfndCrcy3,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy3 AS IntmdEndingBalInFreeDfndCrcy3,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy3 AS IntmdDebitAmtInFreeDfndCrcy3,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy3 AS IntmdCreditAmtInFreeDfndCrcy3,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_csl ) AS StrtgBalAmtInFreeDfndCrcy4,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_csl ) AS DebitAmountInFreeDfndCrcy4,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_csl ) AS CreditAmountInFreeDfndCrcy4,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_csl_ui ) AS EndingBalAmtInFreeDfndCrcy4,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy4 AS IntmdEndingBalInFreeDfndCrcy4,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy4 AS IntmdDebitAmtInFreeDfndCrcy4,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy4 AS IntmdCreditAmtInFreeDfndCrcy4,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_dsl ) AS StrtgBalAmtInFreeDfndCrcy5,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_dsl ) AS DebitAmountInFreeDfndCrcy5,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_dsl ) AS CreditAmountInFreeDfndCrcy5,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_dsl_ui ) AS EndingBalAmtInFreeDfndCrcy5,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy5 AS IntmdEndingBalInFreeDfndCrcy5,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy5 AS IntmdDebitAmtInFreeDfndCrcy5,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy5 AS IntmdCreditAmtInFreeDfndCrcy5,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_esl ) AS StrtgBalAmtInFreeDfndCrcy6,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_esl ) AS DebitAmountInFreeDfndCrcy6,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_esl ) AS CreditAmountInFreeDfndCrcy6,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_esl_ui ) AS EndingBalAmtInFreeDfndCrcy6,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy6 AS IntmdEndingBalInFreeDfndCrcy6,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy6 AS IntmdDebitAmtInFreeDfndCrcy6,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy6 AS IntmdCreditAmtInFreeDfndCrcy6,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_fsl_ui ) AS StrtgBalAmtInFreeDfndCrcy7,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_fsl ) AS DebitAmountInFreeDfndCrcy7,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_fsl ) AS CreditAmountInFreeDfndCrcy7,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_fsl_ui ) AS EndingBalAmtInFreeDfndCrcy7,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy7 AS IntmdEndingBalInFreeDfndCrcy7,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy7 AS IntmdDebitAmtInFreeDfndCrcy7,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy7 AS IntmdCreditAmtInFreeDfndCrcy7,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_gsl ) AS StrtgBalAmtInFreeDfndCrcy8,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_gsl ) AS DebitAmountInFreeDfndCrcy8,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_gsl ) AS CreditAmountInFreeDfndCrcy8,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_gsl_ui ) AS EndingBalAmtInFreeDfndCrcy8,
  I_GLAcctBalanceCube.EndingBalAmtInFreeDfndCrcy8 AS IntmdEndingBalInFreeDfndCrcy8,
  I_GLAcctBalanceCube.DebitAmountInFreeDefinedCrcy8 AS IntmdDebitAmtInFreeDfndCrcy8,
  I_GLAcctBalanceCube.CreditAmountInFreeDefinedCrcy8 AS IntmdCreditAmtInFreeDfndCrcy8,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_tsl_ui ) AS StartingBalAmtInBalTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_tsl ) AS DebitAmountInBalanceTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_tsl ) AS CreditAmountInBalanceTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_tsl_ui ) AS EndingBalanceAmtInBalTransCrcy,
  I_GLAcctBalanceCube.EndingBalanceAmtInBalTransCrcy AS IntmdEndingBalInBalTransCrcy,
  I_GLAcctBalanceCube.DebitAmountInBalanceTransCrcy AS IntmdDebitAmtInBalTransCrcy,
  I_GLAcctBalanceCube.CreditAmountInBalanceTransCrcy AS IntmdCreditAmtInBalTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_wsl_ui ) AS StartingBalanceAmtInTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_bal_wsl ) AS DebitAmountInTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_bal_wsl ) AS CreditAmountInTransCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_wsl_ui ) AS EndingBalanceAmtInTransCrcy,
  I_GLAcctBalanceCube.EndingBalanceAmtInTransCrcy AS IntmdEndingBalanceInTransCrcy,
  I_GLAcctBalanceCube.DebitAmountInTransCrcy AS IntmdDebitAmtInTransCrcy,
  I_GLAcctBalanceCube.CreditAmountInTransCrcy AS IntmdCreditAmountInTransCrcy,
  I_GLAcctBalanceCube.FunctionalCurrency AS FunctionalCurrency,
  cast( cast( 1 as abap.dec(23,2)) as fis_start_bal_fcsl_ui ) AS StartingBalanceAmtInFuncnlCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_dr_amt_funccrcy ) AS DebitAmountInFunctionalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_cr_amt_funccrcy ) AS CreditAmountInFunctionalCrcy,
  cast( cast( 1 as abap.dec(23,2)) as fis_end_bal_fcsl_ui ) AS EndingBalanceAmtInFuncnlCrcy,
  I_GLAcctBalanceCube.EndingBalanceAmtInFuncnlCrcy AS IntmdEndingBalAmtInFuncnlCrcy,
  I_GLAcctBalanceCube.DebitAmountInFunctionalCrcy AS IntmdDebitAmountInFuncnlCrcy,
  I_GLAcctBalanceCube.CreditAmountInFunctionalCrcy AS IntmdCreditAmountInFuncnlCrcy
FROM I_GLAcctBalanceCube
;