P_APVendorOpenItems5

DDL: P_APVENDOROPENITEMS5 SQL: PFIAPVNDROPITM5 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Accounts Payable Vendor Open Items. Payment Open Amount

P_APVendorOpenItems5 is a Composite CDS View that provides data about "Accounts Payable Vendor Open Items. Payment Open Amount" in SAP S/4HANA. It reads from 1 data source (P_APVendorOpenItems4) and exposes 11 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
P_APVendorOpenItems4 PmntOpenAmount from

Annotations (6)

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

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
OpenAmount OpenAmount
ClearedAmount ClearedAmount
DocumentCurrency DocumentCurrency Document Currency
Supplier Supplier Supplier
SpecialGLTransactionType SpecialGLTransactionType Transact.Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
ClearedAmountendasTotalOpenAmount

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_APVendorOpenItems5.
-- 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: PFIAPVNDROPITM5

CREATE VIEW P_APVendorOpenItems5 AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  OpenAmount,
  ClearedAmount,
  DocumentCurrency,
  Supplier,
  SpecialGLTransactionType,
  CompanyCodeCurrency,
  case when ( PmntOpenAmount.ABS_OpenAmount <= PmntOpenAmount.ABS_ClearedAmount ) then 0 else PmntOpenAmount.OpenAmount + PmntOpenAmount.ClearedAmount end as TotalOpenAmount AS ClearedAmountendasTotalOpenAmount
FROM P_APVendorOpenItems4 AS PmntOpenAmount
;