P_DaysPyblOutstandingPurs02

DDL: P_DAYSPYBLOUTSTANDINGPURS02 SQL: PDPOPURS02 Type: view COMPOSITE Package: FINS_FIS_APAR_APPS

Purchases02 for DPO app

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

Data Sources (1)

SourceAliasJoin Type
P_DaysPyblOutstandingPurs01 P_DaysPyblOutstandingPurs01 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 PDPOPURS02 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 (9)

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
PostingDate PostingDate Posting Date for GR
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DisplayCurrency
trueasPurchasesInDisplayCrcy

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

CREATE VIEW P_DaysPyblOutstandingPurs02 AS
SELECT
  CompanyCode,
  Supplier,
  FinancialAccountType,
  SpecialGLCode,
  GLAccount,
  PostingDate,
  CompanyCodeCurrency,
  :P_DisplayCurrency AS DisplayCurrency,
  currency_conversion( amount => Purchases, source_currency => CompanyCodeCurrency, target_currency => :P_DisplayCurrency, exchange_rate_date => PostingDate, exchange_rate_type => :P_ExchangeRateType, round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as PurchasesInDisplayCrcy AS trueasPurchasesInDisplayCrcy
FROM P_DaysPyblOutstandingPurs01
;