C_CL_StRpTrialBalanceItemQuery

DDL: C_CL_STRPTRIALBALANCEITEMQUERY SQL: CCLSTRBALITMQ Type: view CONSUMPTION

Trial Balance Item for Chile Rptg Query

C_CL_StRpTrialBalanceItemQuery is a Consumption CDS View that provides data about "Trial Balance Item for Chile Rptg Query" in SAP S/4HANA. It reads from 1 data source (C_CL_StRpTrialBalanceItemCube) and exposes 48 fields with key fields Ledger, CompanyCode, FiscalYear, SourceLedger, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
C_CL_StRpTrialBalanceItemCube C_CL_StRpTrialBalanceItemCube from

Parameters (3)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_ReportingCurrency glo_reporting_currency

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCLSTRBALITMQ view
VDM.viewType #CONSUMPTION view
Analytics.query true 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
EndUserText.label Trial Balance Item for Chile Rptg Query view
AbapCatalog.compiler.compareFilter true view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SourceLedger SourceLedger Source Ledger
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
AccountingDocumentItem AccountingDocumentItem Posting View Item
ReconciliationAccountType ReconciliationAccountType Reconcil. ID
GLAccount GLAccount General Ledger
GLAccountLongName GLAccountLongName Long Text
ChartOfAccounts ChartOfAccounts Node Class
AlternativeGLAccount AlternativeGLAccount Group Account
CountryChartOfAccounts CountryChartOfAccounts Chart of Accts
Customer Customer Sold-to Party
Supplier Supplier Supplier
AccountingDocumentType AccountingDocumentType Journal Entry Type
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
FiscalPeriod FiscalPeriod Tax period
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
NumberOfDocuments
NumberOfDocumentItems
ReportingCurrency ReportingCurrency Currency
GLAcctDebitAmtInRptgCrcy
GLAcctCreditAmtInRptgCrcy
DebtorEndingBalAmtInRptgCrcy
CreditorEndingBalAmtInRptgCrcy
AssetAmountInReportingCurrency
LiabilityAmountInRptgCrcy
ProfitAmtInReportingCurrency
LossAmountInReportingCurrency
DebitStartingBalAmtInRptgCrcy DebitStartingBalAmtInRptgCrcy
CreditStartingBalAmtInRptgCrcy CreditStartingBalAmtInRptgCrcy
StartingBalanceAmtInRptgCrcy StartingBalanceAmtInRptgCrcy
DebtorStartingBalAmtInRptgCrcy
CreditorStrtgBalAmtInRptgCrcy
DebitAmountInReportingCurrency DebitAmountInReportingCurrency
CreditAmountInReportingCrcy CreditAmountInReportingCrcy
AmountInReportingCurrency
DebtorBalAmtInReportingCrcy
CreditorBalAmtInReportingCrcy
DebitEndingBalAmtInRptgCrcy DebitEndingBalAmtInRptgCrcy
CreditEndingBalAmtInRptgCrcy CreditEndingBalAmtInRptgCrcy
EndingBalanceAmtInRptgCrcy EndingBalanceAmtInRptgCrcy

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_CL_StRpTrialBalanceItemQuery.
-- 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: CCLSTRBALITMQ
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_ReportingCurrency : glo_reporting_currency

CREATE VIEW C_CL_StRpTrialBalanceItemQuery AS
SELECT
  Ledger,
  CompanyCode,
  FiscalYear,
  SourceLedger,
  AccountingDocument,
  LedgerGLLineItem,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  AccountingDocumentItem,
  ReconciliationAccountType,
  GLAccount,
  GLAccountLongName,
  ChartOfAccounts,
  AlternativeGLAccount,
  CountryChartOfAccounts,
  Customer,
  Supplier,
  AccountingDocumentType,
  FinancialAccountType,
  SpecialGLCode,
  FiscalPeriod,
  PostingDate,
  DocumentDate,
  cast( NumberOfDocuments as ficl_number_of_acctg_documents ) AS NumberOfDocuments,
  cast( NumberOfDocumentItems as ficl_number_of_acctg_doc_items ) AS NumberOfDocumentItems,
  ReportingCurrency,
  cast( 0 as ficl_bs_debit_amount_rptg_crcy ) AS GLAcctDebitAmtInRptgCrcy,
  cast( 0 as ficl_bs_credit_amnt_rptg_crcy ) AS GLAcctCreditAmtInRptgCrcy,
  cast( 0 as ficl_dbtr_endg_balamt_rptgcrcy ) AS DebtorEndingBalAmtInRptgCrcy,
  cast( 0 as ficl_crdtr_endg_bal_rptg_crcy ) AS CreditorEndingBalAmtInRptgCrcy,
  cast( 0 as glo_asset_amount_rptg_crcy ) AS AssetAmountInReportingCurrency,
  cast( 0 as glo_liability_amount_rptg_crcy ) AS LiabilityAmountInRptgCrcy,
  cast( 0 as glo_profit_amount_rptg_crcy ) AS ProfitAmtInReportingCurrency,
  cast( 0 as glo_loss_amount_rptg_crcy ) AS LossAmountInReportingCurrency,
  DebitStartingBalAmtInRptgCrcy,
  CreditStartingBalAmtInRptgCrcy,
  StartingBalanceAmtInRptgCrcy,
  cast( 0 as glo_dbtr_strtgbalamt_rptgcrcy ) AS DebtorStartingBalAmtInRptgCrcy,
  cast( 0 as glo_crdtr_strtgbalamt_rptgcrcy ) AS CreditorStrtgBalAmtInRptgCrcy,
  DebitAmountInReportingCurrency,
  CreditAmountInReportingCrcy,
  cast( AmountInReportingCurrency as fis_balance_amount preserving type ) AS AmountInReportingCurrency,
  cast( 0 as glo_debtor_bal_amt_rptg_crcy ) AS DebtorBalAmtInReportingCrcy,
  cast( 0 as glo_creditor_bal_amt_rptg_crcy ) AS CreditorBalAmtInReportingCrcy,
  DebitEndingBalAmtInRptgCrcy,
  CreditEndingBalAmtInRptgCrcy,
  EndingBalanceAmtInRptgCrcy
FROM C_CL_StRpTrialBalanceItemCube
;