P_DaysPyblOutstandingPybls000

DDL: P_DAYSPYBLOUTSTANDINGPYBLS000 SQL: PDPOPYBLS000 Type: view COMPOSITE Package: FINS_FIS_APAR_APPS

Payables000 for DPO app

P_DaysPyblOutstandingPybls000 is a Composite CDS View that provides data about "Payables000 for DPO app" in SAP S/4HANA. It reads from 1 data source (I_ReceivablesPayablesItem) and exposes 12 fields. Part of development package FINS_FIS_APAR_APPS.

Data Sources (1)

SourceAliasJoin Type
I_ReceivablesPayablesItem RPI from

Parameters (2)

NameTypeDefault
P_PyblsRollingAverageMonths abap.int4
P_TodayDate sydate

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PDPOPYBLS000 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 (12)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
Supplier Creditor Supplier
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
GLAccount GLAccount General Ledger
CompanyCodeCurrency CompanyCodeCurrency Local Currency
Credit
PostingDate PostingDate Posting Date for GR
ClearingDate ClearingDate Clearing Date
LastRollingMonth
FirstPyblsAvgMonth
FirstPayablesClearingDate

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_DaysPyblOutstandingPybls000.
-- 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: PDPOPYBLS000
-- Parameters: P_PyblsRollingAverageMonths : abap.int4, P_TodayDate : sydate

CREATE VIEW P_DaysPyblOutstandingPybls000 AS
SELECT
  CompanyCode,
  Creditor AS Supplier,
  FinancialAccountType,
  SpecialGLCode,
  GLAccount,
  CompanyCodeCurrency,
  sum( AmountInCompanyCodeCurrency ) AS Credit,
  PostingDate,
  ClearingDate,
  substring(:P_TodayDate, 1, 6) AS LastRollingMonth,
  substring(dats_add_months( :P_TodayDate, -(:P_PyblsRollingAverageMonths + 10), 'FAIL'), 1, 6) AS FirstPyblsAvgMonth,
  cast(dats_add_months( :P_TodayDate, -(:P_PyblsRollingAverageMonths + 11), 'FAIL') as farp_augdt) AS FirstPayablesClearingDate
FROM I_ReceivablesPayablesItem AS RPI
;