P_DaysPyblOutstandingPurs03

DDL: P_DAYSPYBLOUTSTANDINGPURS03 SQL: PDPOPURS03 Type: view COMPOSITE

P_DaysPyblOutstandingPurs03 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, P_DaysPyblOutstandingPurs02) and exposes 11 fields.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate CD left_outer
P_DaysPyblOutstandingPurs02 P_DaysPyblOutstandingPurs02 from

Parameters (4)

NameTypeDefault
P_PursRollingAverageMonths abap.int4
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst
P_TodayDate sydate

Annotations (6)

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

Fields (11)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
GLAccount GLAccount General Ledger
CalendarYear CalendarYear Year
CalendarMonth CalendarMonth Calendar Month
YearMonth YearMonth Year Month
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DisplayCurrency DisplayCurrency Display Currency
PurchasesInDisplayCrcy

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_DaysPyblOutstandingPurs03.
-- 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: PDPOPURS03
-- Parameters: P_PursRollingAverageMonths : abap.int4, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst, P_TodayDate : sydate

CREATE VIEW P_DaysPyblOutstandingPurs03 AS
SELECT
  CompanyCode,
  Supplier,
  FinancialAccountType,
  SpecialGLCode,
  GLAccount,
  CalendarYear,
  CalendarMonth,
  YearMonth,
  CompanyCodeCurrency,
  DisplayCurrency,
  sum(PurchasesInDisplayCrcy) AS PurchasesInDisplayCrcy
FROM P_DaysPyblOutstandingPurs02
LEFT OUTER JOIN I_CalendarDate AS CD ON /* join condition not captured in parsed metadata */
;