I_APVendorOpenItems

DDL: I_APVENDOROPENITEMS SQL: IFIAPVNDROPITMS Type: view COMPOSITE Package: FINS_FIS_AP_APPS

Accounts Payable. Vendor Open Items

I_APVendorOpenItems is a Composite CDS View (Cube) that provides data about "Accounts Payable. Vendor Open Items" in SAP S/4HANA. It reads from 1 data source (P_APVendorOpenItems13) and exposes 14 fields with key fields CompanyCode, Supplier, AccountingDocCreatedByUser, TransactionCurrency. It has 5 associations to related views. Part of development package FINS_FIS_AP_APPS.

Data Sources (1)

SourceAliasJoin Type
P_APVendorOpenItems13 P_APVendorOpenItems13 from

Parameters (3)

NameTypeDefault
P_Currency vdm_v_display_currency
P_ExchangeRateType kurst
P_ExchangeRateDate wwert_d

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Currency _DisplayCurrency $projection.DisplayCurrency = _DisplayCurrency.Currency
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_PMContactCardUser _ContactCard $projection.AccountingDocCreatedByUser = _ContactCard.UserID
[0..1] I_SupplierCompany _SupplierCompany $projection.Supplier = _SupplierCompany.Supplier and $projection.CompanyCode = _SupplierCompany.CompanyCode

Annotations (12)

NameValueLevelField
EndUserText.label Accounts Payable. Vendor Open Items view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IFIAPVNDROPITMS view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Supplier Supplier Supplier
KEY AccountingDocCreatedByUser User which created overhead document
KEY TransactionCurrency Document Currency
_DisplayCurrency _DisplayCurrency
DisplayCurrency
SupplierBasicAuthorizationGrp _Supplier AuthorizationGroup AuthorizGroup
SupplierFinsAuthorizationGrp _SupplierCompany AuthorizationGroup AuthorizGroup
OpenAmountInDisplayCrcy
DownPaymentAmountInDspCrcy
OtherPaymentAmountInDspCrcy
_CompanyCode _CompanyCode
_Supplier _Supplier
_ContactCard _ContactCard

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 I_APVendorOpenItems.
-- 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: IFIAPVNDROPITMS
-- Parameters: P_Currency : vdm_v_display_currency, P_ExchangeRateType : kurst, P_ExchangeRateDate : wwert_d

CREATE VIEW I_APVendorOpenItems AS
SELECT
  CompanyCode,
  Supplier,
  cast(AccountingDocCreatedByUser as fis_usnam) AS AccountingDocCreatedByUser,
  cast(DocumentCurrency as fis_rwcur) AS TransactionCurrency,
  cast(:P_Currency as vdm_v_display_currency) AS DisplayCurrency,
  _Supplier.AuthorizationGroup AS SupplierBasicAuthorizationGrp,
  _SupplierCompany.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  cast( cast(OpenAmountInDisplayCrcy as abap.curr(23,2) ) as farp_openamtdc) AS OpenAmountInDisplayCrcy,
  cast( cast(DownPaymentAmountInDspCrcy as abap.curr(23,2) ) as farp_dwnpmntamtdc) AS DownPaymentAmountInDspCrcy,
  cast( cast(OtherPaymentAmountInDspCrcy as abap.curr(23,2) ) as farp_opmntamtdc) AS OtherPaymentAmountInDspCrcy
FROM P_APVendorOpenItems13
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_PMContactCardUser AS _ContactCard ON AccountingDocCreatedByUser = _ContactCard.UserID  -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON Supplier = _SupplierCompany.Supplier AND CompanyCode = _SupplierCompany.CompanyCode  -- association [0..1]
;