P_GLRevenueExpensesOvw

DDL: P_GLREVENUEEXPENSESOVW SQL: PGLREVEXPOVW Type: view COMPOSITE

P_GLRevenueExpensesOvw is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemSemTag) and exposes 10 fields with key fields CompanyCode, GLAccountHierarchy, Ledger, SemanticTag, FiscalPeriod.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemSemTag I_GLAccountLineItemSemTag from

Parameters (4)

NameTypeDefault
P_PlanningCategory fac_revvar_pln_category
P_FiscalYear gjahr
P_FromFiscalPeriod fins_fiscalperiod
P_ToFiscalPeriod fins_fiscalperiod

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PGLREVEXPOVW view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY GLAccountHierarchy GLAccountHierarchy
KEY Ledger Ledger Ledger
KEY SemanticTag SemanticTag Semantic Tag
KEY FiscalPeriod FiscalPeriod Tax period
CompanyCodeCurrency CompanyCodeCurrency Local Currency
ActualRevenueAmtInCCCrcy
PlnRevenueAmountInCCCrcy 0
ActualCostAmtInCCCrcy
PlnCostAmtInCompanyCodeCrcy 0

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_GLRevenueExpensesOvw.
-- 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: PGLREVEXPOVW
-- Parameters: P_PlanningCategory : fac_revvar_pln_category, P_FiscalYear : gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalPeriod : fins_fiscalperiod

CREATE VIEW P_GLRevenueExpensesOvw AS
SELECT
  CompanyCode,
  GLAccountHierarchy,
  Ledger,
  SemanticTag,
  FiscalPeriod,
  CompanyCodeCurrency,
  sum(RevenueAmountInCompanyCodeCrcy) AS ActualRevenueAmtInCCCrcy,
  0 AS PlnRevenueAmountInCCCrcy,
  sum(CostAmountInCompanyCodeCrcy) AS ActualCostAmtInCCCrcy,
  0 AS PlnCostAmtInCompanyCodeCrcy
FROM I_GLAccountLineItemSemTag
;