C_PE_StRpTrialBalanceItemQuery
Trial Balance Items for PE Rptg - Query
C_PE_StRpTrialBalanceItemQuery is a Consumption CDS View that provides data about "Trial Balance Items for PE Rptg - Query" in SAP S/4HANA. It reads from 1 data source (C_PE_StRpTrialBalanceItemC) and exposes 72 fields with key fields Ledger, CompanyCode, FiscalYear, SourceLedger, AccountingDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_PE_StRpTrialBalanceItemC | C_PE_StRpTrialBalanceItemC | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_ReportingCurrency | glo_reporting_currency |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPETRIALBALQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Analytics.query | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Trial Balance Items for PE Rptg - Query | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (72)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| KEY | FinancialStatementHierarchy | FinancialStatementHierarchy | Hierarchy ID | |
| KEY | HierarchyNode | HierarchyNode | Node | |
| KEY | ParentNode | ParentNode | Parent Node | |
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| IsReversal | IsReversal | Reversal doc. | ||
| IsReversed | IsReversed | Reversed? | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Segment | Segment | Segment number | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| CountryChartOfAccounts | CountryChartOfAccounts | Chart of Accts | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAccountLongName | GLAccountLongName | Long Text | ||
| CorporateGroupChartOfAccounts | CorporateGroupChartOfAccounts | Group ChtAccts | ||
| CorporateGroupAccount | CorporateGroupAccount | Group Account Number | ||
| IsBalanceSheetAccount | IsBalanceSheetAccount | Is Balance Sheet Account | ||
| ReconciliationAccountType | ReconciliationAccountType | Reconcil. ID | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| 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 | ||
| TaxCode | TaxCode | Tax Code | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| OffsettingAccount | OffsettingAccount | Offsetting Acct | ||
| OffsettingAccountType | OffsettingAccountType | Offset Acct Type | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| DocumentItemText | DocumentItemText | Text | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| DebitStartingBalAmtInRptgCrcy | DebitStartingBalAmtInRptgCrcy | |||
| CreditStartingBalAmtInRptgCrcy | CreditStartingBalAmtInRptgCrcy | |||
| StartingBalanceAmtInRptgCrcy | StartingBalanceAmtInRptgCrcy | |||
| DebtorStartingBalAmtInRptgCrcy | ||||
| CreditorStrtgBalAmtInRptgCrcy | ||||
| GLAcctDebitAmountInDisplayCrcy | ||||
| GLAcctDebitAmtInRptgCrcy | ||||
| GLAcctCreditAmtInDisplayCrcy | ||||
| GLAcctCreditAmtInRptgCrcy | ||||
| DebitAmountInReportingCurrency | ||||
| CreditAmountInReportingCrcy | ||||
| AmountInReportingCurrency | ||||
| DebtorBalAmtInReportingCrcy | ||||
| CreditorBalAmtInReportingCrcy | ||||
| DebitEndingBalAmtInRptgCrcy | DebitEndingBalAmtInRptgCrcy | |||
| CreditEndingBalAmtInRptgCrcy | CreditEndingBalAmtInRptgCrcy | |||
| EndingBalanceAmtInRptgCrcy | EndingBalanceAmtInRptgCrcy | |||
| DebtorEndingBalAmtInRptgCrcy | ||||
| CreditorEndingBalAmtInRptgCrcy | ||||
| AssetAmountInReportingCurrency | ||||
| LiabilityAmountInRptgCrcy | ||||
| ProfitAmtInReportingCurrency | ||||
| LossAmountInReportingCurrency |
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_PE_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: CPETRIALBALQ
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_ReportingCurrency : glo_reporting_currency
CREATE VIEW C_PE_StRpTrialBalanceItemQuery AS
SELECT
Ledger,
CompanyCode,
FiscalYear,
SourceLedger,
AccountingDocument,
LedgerGLLineItem,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
FinancialStatementHierarchy,
HierarchyNode,
ParentNode,
AccountingDocumentItem,
FiscalPeriod,
PostingDate,
DocumentDate,
IsReversal,
IsReversed,
ProfitCenter,
FunctionalArea,
BusinessArea,
ControllingArea,
Segment,
ChartOfAccounts,
AlternativeGLAccount,
CountryChartOfAccounts,
GLAccount,
GLAccountLongName,
CorporateGroupChartOfAccounts,
CorporateGroupAccount,
IsBalanceSheetAccount,
ReconciliationAccountType,
Supplier,
Customer,
FinancialAccountType,
SpecialGLCode,
AccountingDocumentType,
PostingKey,
AccountingDocumentCategory,
AccountingDocCreatedByUser,
DebitCreditCode,
TaxCode,
FiscalYearVariant,
ReferenceDocument,
OffsettingAccount,
OffsettingAccountType,
AssignmentReference,
DocumentItemText,
ReportingCurrency,
DebitStartingBalAmtInRptgCrcy,
CreditStartingBalAmtInRptgCrcy,
StartingBalanceAmtInRptgCrcy,
cast(0 as glo_dbtr_strtgbalamt_rptgcrcy) AS DebtorStartingBalAmtInRptgCrcy,
cast(0 as glo_crdtr_strtgbalamt_rptgcrcy) AS CreditorStrtgBalAmtInRptgCrcy,
cast(0 as glo_debit_amount_rptg_crcy) AS GLAcctDebitAmountInDisplayCrcy,
cast(0 as glo_debit_amount_rptg_crcy) AS GLAcctDebitAmtInRptgCrcy,
cast(0 as glo_credit_amount_rptg_crcy) AS GLAcctCreditAmtInDisplayCrcy,
cast(0 as glo_credit_amount_rptg_crcy) AS GLAcctCreditAmtInRptgCrcy,
cast(0 as glo_debit_amount_rptg_crcy) AS DebitAmountInReportingCurrency,
cast(0 as glo_credit_amount_rptg_crcy) AS 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,
cast(0 as fipe_dbtr_endg_balamt_rptgcrcy) AS DebtorEndingBalAmtInRptgCrcy,
cast(0 as fipe_crdtr_endg_bal_rptg_crcy) AS CreditorEndingBalAmtInRptgCrcy,
cast(abs(AssetAmountInReportingCurrency) as glo_asset_amount_rptg_crcy) AS AssetAmountInReportingCurrency,
cast(abs(LiabilityAmountInRptgCrcy) as glo_liability_amount_rptg_crcy) AS LiabilityAmountInRptgCrcy,
cast(abs(ProfitAmtInReportingCurrency) as glo_profit_amount_rptg_crcy) AS ProfitAmtInReportingCurrency,
cast(abs(LossAmountInReportingCurrency) as glo_loss_amount_rptg_crcy ) AS LossAmountInReportingCurrency
FROM C_PE_StRpTrialBalanceItemC
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA