P_EBPAO_TR_VarianceByType2

DDL: P_EBPAO_TR_VARIANCEBYTYPE2 SQL: PEBPAOTRVRCBT2 Type: view COMPOSITE

P_EBPAO_TR_VarianceByType2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LedgerCompanyCodeCrcyRoles, P_EBPAO_TR_VarianceByType1) and exposes 2 fields with key fields CompanyCode, OrderID.

Data Sources (2)

SourceAliasJoin Type
I_LedgerCompanyCodeCrcyRoles LedgerCompanyCodeCrcyRole inner
P_EBPAO_TR_VarianceByType1 P_EBPAO_TR_VarianceByType1 from

Parameters (5)

NameTypeDefault
P_Ledger fins_ledger
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_CurrencyRole fac_crcyrole
P_SubLedgerAcctLineItemType slalittype

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PEBPAOTRVRCBT2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode VarianceCost CompanyCode Receiver Company Code
KEY OrderID VarianceCost OrderID Order 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 P_EBPAO_TR_VarianceByType2.
-- 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: PEBPAOTRVRCBT2
-- Parameters: P_Ledger : fins_ledger, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_CurrencyRole : fac_crcyrole, P_SubLedgerAcctLineItemType : slalittype

CREATE VIEW P_EBPAO_TR_VarianceByType2 AS
SELECT
  VarianceCost.CompanyCode AS CompanyCode,
  VarianceCost.OrderID AS OrderID
FROM P_EBPAO_TR_VarianceByType1
INNER JOIN I_LedgerCompanyCodeCrcyRoles AS LedgerCompanyCodeCrcyRole ON /* join condition not captured in parsed metadata */
;