I_DaysPayablesOutstanding
DPO app
I_DaysPayablesOutstanding is a Composite CDS View (Cube) that provides data about "DPO app" in SAP S/4HANA. It reads from 1 data source (P_DaysPyblOutstanding04) and exposes 39 fields with key fields CompanyCode, Supplier, CalendarYear, CalendarMonth, GLAccount. It has 17 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_DaysPyblOutstanding04 | P_DaysPyblOutstanding04 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_PyblsRollingAverageMonths | fis_pybls_rolling_avg_months | |
| P_PurRollingAverageMonths | fis_pur_rolling_avg_months | |
| P_TodayDate | sydate | |
| P_DisplayCurrency | vdm_v_display_currency | |
| P_ExchangeRateType | kurst |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | _UnitOfMeasure.UnitOfMeasure = $projection.DurationUnit |
| [0..1] | I_CompanyCode | _Company | _Company.CompanyCode = $projection.CompanyCode |
| [0..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.Supplier |
| [0..1] | I_FinancialAccountType | _FinancialAccountType | _FinancialAccountType.FinancialAccountType = $projection.FinancialAccountType |
| [0..1] | I_SupplierCompany | _SupplierCompany | _SupplierCompany.CompanyCode = $projection.CompanyCode and _SupplierCompany.Supplier = $projection.Supplier |
| [0..1] | I_AccountingClerk | _AccountingClerk | _AccountingClerk.CompanyCode = $projection.CompanyCode and _AccountingClerk.AccountingClerk = $projection.AccountingClerk |
| [0..1] | I_Country | _SupplierCountry | _SupplierCountry.Country = $projection.SupplierCountry |
| [0..1] | I_Region | _SupplierRegion | _SupplierRegion.Region = $projection.SupplierRegion and _SupplierRegion.Country = $projection.SupplierCountry |
| [0..1] | I_CalendarYear | _CalendarYear | _CalendarYear.CalendarYear = $projection.CalendarYear |
| [0..1] | I_CalendarMonth | _CalendarMonth | _CalendarMonth.CalendarMonth = $projection.CalendarMonth |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | _ChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccounts |
| [0..1] | I_GLAccountInChartOfAccounts | _ReconciliationAccount | _ReconciliationAccount.ChartOfAccounts = $projection.ChartOfAccounts and _ReconciliationAccount.GLAccount = $projection.ReconciliationAccount |
| [0..1] | I_SpecialGLCode | _SpecialGLCode | _SpecialGLCode.SpecialGLCode = $projection.SpecialGLCode and _SpecialGLCode.FinancialAccountType = $projection.FinancialAccountType and _SpecialGLCode.FinancialAccountType = 'K' |
| [0..1] | I_GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccounts and _GLAccountInChartOfAccounts.GLAccount = $projection.GLAccount |
| [0..1] | I_Currency | _DisplayCurrency | _DisplayCurrency.Currency = $projection.DisplayCurrency |
| [0..1] | I_Currency | _CompanyCodeCurrency | _CompanyCodeCurrency.Currency = $projection.CompanyCodeCurrency |
| [0..1] | I_SupplierAccountGroup | _SupplierAccountGroup | _SupplierAccountGroup.SupplierAccountGroup = $projection.SupplierAccountGroup |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIDPO | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| Search.searchable | false | view | |
| Metadata.ignorePropogatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| DataAging.noAgingRestriction | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | DPO app | view | |
| Metadata.allowExtensions | true | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | CalendarYear | CalendarYear | Year | |
| KEY | CalendarMonth | CalendarMonth | Calendar Month | |
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | SpecialGLCode | SpecialGLCode | Special G/L Ind | |
| KEY | FinancialAccountType | FinancialAccountType | Fin. Account Type | |
| YearMonth | Year Month | |||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| ExchangeRateType | ||||
| SupplierCountry | ||||
| SupplierRegion | ||||
| AccountingClerk | ||||
| DurationUnit | ||||
| ChartOfAccounts | ||||
| ReconciliationAccount | ||||
| SupplierFinsAuthorizationGrp | _SupplierCompany | AuthorizationGroup | AuthorizGroup | |
| SupplierAccountGroup | _Supplier | SupplierAccountGroup | Account group | |
| AuthorizationGroup | _Supplier | AuthorizationGroup | AuthorizGroup | |
| DisplayCurrency | Display Currency | |||
| CreditAmtInDisplayCrcy | ||||
| PurchaseAmtInDisplayCrcy | ||||
| _Company | _Company | |||
| _Supplier | _Supplier | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _SupplierCompany | _SupplierCompany | |||
| _AccountingClerk | _AccountingClerk | |||
| _SupplierCountry | _SupplierCountry | |||
| _SupplierRegion | _SupplierRegion | |||
| _CalendarYear | _CalendarYear | |||
| _CalendarMonth | _CalendarMonth | |||
| _ReconciliationAccount | _ReconciliationAccount | |||
| _SpecialGLCode | _SpecialGLCode | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _DisplayCurrency | _DisplayCurrency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _SupplierAccountGroup | _SupplierAccountGroup |
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_DaysPayablesOutstanding.
-- 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: IFIDPO
-- Parameters: P_PyblsRollingAverageMonths : fis_pybls_rolling_avg_months, P_PurRollingAverageMonths : fis_pur_rolling_avg_months, P_TodayDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst
CREATE VIEW I_DaysPayablesOutstanding AS
SELECT
CompanyCode,
Supplier,
CalendarYear,
CalendarMonth,
GLAccount,
SpecialGLCode,
FinancialAccountType,
cast( YearMonth as vdm_yearmonth ) AS YearMonth,
CompanyCodeCurrency,
cast(:P_ExchangeRateType as kurst) AS ExchangeRateType,
cast( _Supplier._StandardAddress._Country.Country as farp_land1 ) AS SupplierCountry,
_Supplier._StandardAddress._Region.Region AS SupplierRegion,
cast( _SupplierCompany.AccountingClerk as farp_busab ) AS AccountingClerk,
cast( cast( 'TAG' as abap.unit(3) ) as msehi ) AS DurationUnit,
cast( _Company.ChartOfAccounts as fis_ktopl ) AS ChartOfAccounts,
cast( _SupplierCompany.ReconciliationAccount as farp_akont ) AS ReconciliationAccount,
_SupplierCompany.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
_Supplier.SupplierAccountGroup AS SupplierAccountGroup,
_Supplier.AuthorizationGroup AS AuthorizationGroup,
cast( DisplayCurrency as vdm_v_display_currency ) AS DisplayCurrency,
cast( ( (DIVISION(CreditInDisplayCrcy, :P_PyblsRollingAverageMonths, 6) ) * (-1) ) as abap.curr( 27, 6 )) AS CreditAmtInDisplayCrcy,
cast( ( (DIVISION(PurchasesInDisplayCrcy, :P_PurRollingAverageMonths, 6) ) * (-1) ) as abap.curr( 27, 6 )) AS PurchaseAmtInDisplayCrcy
FROM P_DaysPyblOutstanding04
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = DurationUnit -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _Company ON _Company.CompanyCode = CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN I_FinancialAccountType AS _FinancialAccountType ON _FinancialAccountType.FinancialAccountType = FinancialAccountType -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON _SupplierCompany.CompanyCode = CompanyCode AND _SupplierCompany.Supplier = Supplier -- association [0..1]
LEFT OUTER JOIN I_AccountingClerk AS _AccountingClerk ON _AccountingClerk.CompanyCode = CompanyCode AND _AccountingClerk.AccountingClerk = AccountingClerk -- association [0..1]
LEFT OUTER JOIN I_Country AS _SupplierCountry ON _SupplierCountry.Country = SupplierCountry -- association [0..1]
LEFT OUTER JOIN I_Region AS _SupplierRegion ON _SupplierRegion.Region = SupplierRegion AND _SupplierRegion.Country = SupplierCountry -- association [0..1]
LEFT OUTER JOIN I_CalendarYear AS _CalendarYear ON _CalendarYear.CalendarYear = CalendarYear -- association [0..1]
LEFT OUTER JOIN I_CalendarMonth AS _CalendarMonth ON _CalendarMonth.CalendarMonth = CalendarMonth -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON _ChartOfAccounts.ChartOfAccounts = ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _ReconciliationAccount ON _ReconciliationAccount.ChartOfAccounts = ChartOfAccounts AND _ReconciliationAccount.GLAccount = ReconciliationAccount -- association [0..1]
LEFT OUTER JOIN I_SpecialGLCode AS _SpecialGLCode ON _SpecialGLCode.SpecialGLCode = SpecialGLCode AND _SpecialGLCode.FinancialAccountType = FinancialAccountType AND _SpecialGLCode.FinancialAccountType = 'K' -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON _GLAccountInChartOfAccounts.ChartOfAccounts = ChartOfAccounts AND _GLAccountInChartOfAccounts.GLAccount = GLAccount -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON _DisplayCurrency.Currency = DisplayCurrency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON _CompanyCodeCurrency.Currency = CompanyCodeCurrency -- association [0..1]
LEFT OUTER JOIN I_SupplierAccountGroup AS _SupplierAccountGroup ON _SupplierAccountGroup.SupplierAccountGroup = SupplierAccountGroup -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA