P_RTPCOrderBalance

DDL: P_RTPCORDERBALANCE SQL: PRTPCORDBALC Type: view COMPOSITE Package: FINS_PCC_EBW

Event based order's order balance

P_RTPCOrderBalance is a Composite CDS View that provides data about "Event based order's order balance" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemRawData, I_Ledger) and exposes 14 fields with key fields OrderID, ControllingArea, Ledger. Part of development package FINS_PCC_EBW.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItemRawData _item from
I_Ledger _ledger inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PRTPCORDBALC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AbapCatalog.preserveKey true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY OrderID OrderID Order ID
KEY ControllingArea ControllingArea Controlling Area
KEY Ledger SourceLedger Source Ledger
FiscalYearPeriod FiscalYearPeriod Period/Year
AmountInCompanyCodeCurrency
AmountInGlobalCurrency
AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8

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_RTPCOrderBalance.
-- 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: PRTPCORDBALC

CREATE VIEW P_RTPCOrderBalance AS
SELECT
  OrderID,
  ControllingArea,
  SourceLedger AS Ledger,
  FiscalYearPeriod,
  sum(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  sum(AmountInGlobalCurrency) AS AmountInGlobalCurrency,
  sum(AmountInFreeDefinedCurrency1) AS AmountInFreeDefinedCurrency1,
  sum(AmountInFreeDefinedCurrency2) AS AmountInFreeDefinedCurrency2,
  sum(AmountInFreeDefinedCurrency3) AS AmountInFreeDefinedCurrency3,
  sum(AmountInFreeDefinedCurrency4) AS AmountInFreeDefinedCurrency4,
  sum(AmountInFreeDefinedCurrency5) AS AmountInFreeDefinedCurrency5,
  sum(AmountInFreeDefinedCurrency6) AS AmountInFreeDefinedCurrency6,
  sum(AmountInFreeDefinedCurrency7) AS AmountInFreeDefinedCurrency7,
  sum(AmountInFreeDefinedCurrency8) AS AmountInFreeDefinedCurrency8
FROM I_GLAccountLineItemRawData AS _item
INNER JOIN I_Ledger AS _ledger ON /* join condition not captured in parsed metadata */
;