P_DaysPyblOutstandingPybls06

DDL: P_DAYSPYBLOUTSTANDINGPYBLS06 SQL: PDPOPYBLS06 Type: view COMPOSITE

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

Data Sources (2)

SourceAliasJoin Type
P_DaysSalesOutstandingCalMonth CM inner
P_DaysPyblOutstandingPybls05 P_DaysPyblOutstandingPybls05 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 PDPOPYBLS06 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_DaysSalesOutstandingCalMonth CalendarYear Year
CalendarMonth P_DaysSalesOutstandingCalMonth CalendarMonth Calendar Month
YearMonth P_DaysSalesOutstandingCalMonth YearMonth Year Month
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DisplayCurrency DisplayCurrency Display Currency
ExchangeRateType
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_DaysPyblOutstandingPybls06.
-- 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: PDPOPYBLS06
-- Parameters: P_PyblsRollingAverageMonths : abap.int4, P_PursRollingAverageMonths : abap.int4, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst, P_TodayDate : sydate

CREATE VIEW P_DaysPyblOutstandingPybls06 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(CreditInDisplayCrcy) AS CreditInDisplayCrcy
FROM P_DaysPyblOutstandingPybls05
INNER JOIN P_DaysSalesOutstandingCalMonth AS CM ON /* join condition not captured in parsed metadata */
;