C_GR_StRpCustTrialBalItmQuery

DDL: C_GR_STRPCUSTTRIALBALITMQUERY SQL: CGRSRCUSTTRBLITQ Type: view CONSUMPTION

Greece Customer Trial Balance – Query

C_GR_StRpCustTrialBalItmQuery is a Consumption CDS View that provides data about "Greece Customer Trial Balance – Query" in SAP S/4HANA. It reads from 1 data source (I_StRpTrialBalanceItemCube) and exposes 45 fields.

Data Sources (1)

SourceAliasJoin Type
I_StRpTrialBalanceItemCube I_StRpTrialBalanceItemCube from

Parameters (4)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_FromFiscalPeriod fis_period_from
P_ToFiscalPeriod fis_period_to

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CGRSRCUSTTRBLITQ view
VDM.viewType #CONSUMPTION view
Analytics.query true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Greece Customer Trial Balance – Query view

Fields (45)

KeyFieldSource TableSource FieldDescription
Ledger Ledger Ledger
CompanyCode CompanyCode Receiver Company Code
SourceLedger SourceLedger Source Ledger
AccountingDocument AccountingDocument Journal Entry
LedgerGLLineItem LedgerGLLineItem Journal Entry Item
FiscalPeriod FiscalPeriod Tax period
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ChartOfAccounts ChartOfAccounts Node Class
Customer Customer Sold-to Party
CustomerName _Customer CustomerName Name of Customer
CustomerCountry _Customer Country Venue: Ctry/Reg
CustomerVATRegistration _Customer VATRegistration VAT Registration No.
DebitTotalAmountInCoCodeCrcy Total - debit
CreditTotalAmountInCoCodeCrcy Total - credit
GLAccount GLAccount General Ledger
GLAccountLongName GLAccountLongName Long Text
Supplier Supplier Supplier
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
AccountingDocumentType AccountingDocumentType Journal Entry Type
PostingKey PostingKey Posting Key
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
DebitCreditCode DebitCreditCode Single-Character Flag
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CarryFwdBalAmtInCCCrcy CarryFwdBalAmtInCCCrcy
DebitCarryFwdBalAmtInCCCrcy DebitCarryFwdBalAmtInCCCrcy
CreditCarryFwdBalAmtInCCCrcy CreditCarryFwdBalAmtInCCCrcy
DebitPrevPeriodYTDAmtInCCCrcy DebitPrevPeriodYTDAmtInCCCrcy
CreditPrevPeriodYTDAmtInCCCrcy CreditPrevPeriodYTDAmtInCCCrcy
StartingBalanceAmtInCoCodeCrcy StartingBalanceAmtInCoCodeCrcy
DebitAmountInCoCodeCrcy DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
CreditAmountInCoCodeCrcy CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
YTDDebitAmtInCoCodeCrcy YTDDebitAmtInCoCodeCrcy
YTDCrdtAmtInCoCodeCrcy YTDCrdtAmtInCoCodeCrcy
EndingBalanceAmtInCoCodeCrcy EndingBalanceAmtInCoCodeCrcy
DebitEndingBalAmtInCCCrcy DebitEndingBalAmtInCCCrcy
CreditEndingBalAmtInCCCrcy CreditEndingBalAmtInCCCrcy
AssignmentReference AssignmentReference Assignment Reference
DocumentItemText DocumentItemText Text
TransactionCurrency TransactionCurrency Transaction Currency
StatryRptgEntity StatryRptgEntity Reporting Entity
StatryRptCategory StatryRptCategory Report ID
StatryRptRunID StatryRptRunID Report Run ID

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_GR_StRpCustTrialBalItmQuery.
-- 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: CGRSRCUSTTRBLITQ
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to

CREATE VIEW C_GR_StRpCustTrialBalItmQuery AS
SELECT
  Ledger,
  CompanyCode,
  SourceLedger,
  AccountingDocument,
  LedgerGLLineItem,
  FiscalPeriod,
  PostingDate,
  DocumentDate,
  ChartOfAccounts,
  Customer,
  _Customer.CustomerName AS CustomerName,
  _Customer.Country AS CustomerCountry,
  _Customer.VATRegistration AS CustomerVATRegistration,
  DebitAmountInCoCodeCrcy + DebitPrevPeriodYTDAmtInCCCrcy + DebitCarryFwdBalAmtInCCCrcy AS DebitTotalAmountInCoCodeCrcy,
  CreditAmountInCoCodeCrcy + CreditPrevPeriodYTDAmtInCCCrcy + CreditCarryFwdBalAmtInCCCrcy AS CreditTotalAmountInCoCodeCrcy,
  GLAccount,
  GLAccountLongName,
  Supplier,
  FinancialAccountType,
  SpecialGLCode,
  AccountingDocumentType,
  PostingKey,
  AccountingDocumentCategory,
  AccountingDocCreatedByUser,
  DebitCreditCode,
  CompanyCodeCurrency,
  CarryFwdBalAmtInCCCrcy,
  DebitCarryFwdBalAmtInCCCrcy,
  CreditCarryFwdBalAmtInCCCrcy,
  DebitPrevPeriodYTDAmtInCCCrcy,
  CreditPrevPeriodYTDAmtInCCCrcy,
  StartingBalanceAmtInCoCodeCrcy,
  DebitAmountInCoCodeCrcy,
  CreditAmountInCoCodeCrcy,
  YTDDebitAmtInCoCodeCrcy,
  YTDCrdtAmtInCoCodeCrcy,
  EndingBalanceAmtInCoCodeCrcy,
  DebitEndingBalAmtInCCCrcy,
  CreditEndingBalAmtInCCCrcy,
  AssignmentReference,
  DocumentItemText,
  TransactionCurrency,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID
FROM I_StRpTrialBalanceItemCube
;