P_DaysPyblOutstanding04

DDL: P_DAYSPYBLOUTSTANDING04 SQL: PDPO04 Type: view COMPOSITE

P_DaysPyblOutstanding04 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_DaysPyblOutstanding03) and exposes 13 fields.

Data Sources (1)

SourceAliasJoin Type
P_DaysPyblOutstanding03 P_DaysPyblOutstanding03 from

Parameters (5)

NameTypeDefault
P_PyblsRollingAverageMonths abap.int4
P_PursRollingAverageMonths abap.int4
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst
P_TodayDate sydate

Annotations (5)

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

Fields (13)

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
ExchangeRateType
PurchasesInDisplayCrcy
CreditInDisplayCrcy

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

CREATE VIEW P_DaysPyblOutstanding04 AS
SELECT
  CompanyCode,
  Supplier,
  FinancialAccountType,
  SpecialGLCode,
  GLAccount,
  CalendarYear,
  CalendarMonth,
  YearMonth,
  CompanyCodeCurrency,
  DisplayCurrency,
  :P_ExchangeRateType AS ExchangeRateType,
  sum(PurchasesInDisplayCrcy) AS PurchasesInDisplayCrcy,
  sum(CreditInDisplayCrcy) AS CreditInDisplayCrcy
FROM P_DaysPyblOutstanding03
;