P_APDaysPayOutst1

DDL: P_APDAYSPAYOUTST1 SQL: PFIAP_DPO1 Type: view COMPOSITE

P_APDaysPayOutst1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 8 fields.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Parameters (1)

NameTypeDefault
P_DateTo hrenddate

Annotations (6)

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

Fields (8)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
ClearingDate ClearingDate Clearing Date
PostingDate PostingDate Posting Date for GR
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency
ClearingDays
DateFrom

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_APDaysPayOutst1.
-- 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: PFIAP_DPO1
-- Parameters: P_DateTo : hrenddate

CREATE VIEW P_APDaysPayOutst1 AS
SELECT
  CompanyCode,
  Supplier,
  ClearingDate,
  PostingDate,
  CompanyCodeCurrency,
  abs(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  DATS_DAYS_BETWEEN(PostingDate, ClearingDate) AS ClearingDays,
  DATS_ADD_MONTHS(:P_DateTo, (-1 * 12), 'INITIAL') AS DateFrom
FROM I_OperationalAcctgDocItem
;