P_DaysPyblOutstandingPurs06

DDL: P_DAYSPYBLOUTSTANDINGPURS06 SQL: PDPOPURS06 Type: view COMPOSITE

P_DaysPyblOutstandingPurs06 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_DaysPyblOutstandingCalMonth, P_DaysPyblOutstandingPurs05) and exposes 12 fields.

Data Sources (2)

SourceAliasJoin Type
P_DaysPyblOutstandingCalMonth CM inner
P_DaysPyblOutstandingPurs05 P_DaysPyblOutstandingPurs05 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 PDPOPURS06 view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

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 P_DaysPyblOutstandingCalMonth CalendarYear Year
CalendarMonth P_DaysPyblOutstandingCalMonth CalendarMonth Calendar Month
YearMonth P_DaysPyblOutstandingCalMonth YearMonth Year Month
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DisplayCurrency DisplayCurrency Display Currency
ExchangeRateType
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_DaysPyblOutstandingPurs06.
-- 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: PDPOPURS06
-- Parameters: P_PyblsRollingAverageMonths : abap.int4, P_PursRollingAverageMonths : abap.int4, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst, P_TodayDate : sydate

CREATE VIEW P_DaysPyblOutstandingPurs06 AS
SELECT
  CompanyCode,
  Supplier,
  FinancialAccountType,
  SpecialGLCode,
  GLAccount,
  CM.CalendarYear AS CalendarYear,
  CM.CalendarMonth AS CalendarMonth,
  CM.YearMonth AS YearMonth,
  CompanyCodeCurrency,
  DisplayCurrency,
  :P_ExchangeRateType AS ExchangeRateType,
  sum(PurchasesInDisplayCrcy) AS PurchasesInDisplayCrcy
FROM P_DaysPyblOutstandingPurs05
INNER JOIN P_DaysPyblOutstandingCalMonth AS CM ON /* join condition not captured in parsed metadata */
;