P_ARPromisesToPayOvw

DDL: P_ARPROMISESTOPAYOVW SQL: PARPROM2PAYOVW Type: view COMPOSITE Package: ODATA_AR_OVP

Card Promises To Pay

P_ARPromisesToPayOvw is a Composite CDS View that provides data about "Card Promises To Pay" in SAP S/4HANA. It reads from 2 data sources (P_PromiseToPay0, P_DaysSalesOutstandingCalMonth) and exposes 16 fields with key field case_guid. Part of development package ODATA_AR_OVP.

Data Sources (2)

SourceAliasJoin Type
P_PromiseToPay0 _prom inner
P_DaysSalesOutstandingCalMonth CM from

Parameters (4)

NameTypeDefault
P_StartDate sydate
P_KeyDate sydate
P_DisplayCurrency vdm_v_display_currency
P_ExchangeRateType kurst_curr

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName PARPROM2PAYOVW view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY case_guid case_guid UUID
CompanyCode CompanyCode Receiver Company Code
Customer Customer Sold-to Party
DisplayCurrency
DaysSinceCreation
trueasPromisedAmountInDspCrcy
trueasPaidAmountInDspCrcy
SourceCurrency SourceCurrency Valuation Crcy
Status Status Workflow Status
DueDate DueDate Promised For
CreationDate CreationDate Time Stamp
CalendarYear CalendarYear Year
CalendarMonth CalendarMonth Calendar Month
YearMonth YearMonth Year Month
FirstDayOfMonth FirstDayOfMonth
LastDayOfMonth LastDayOfMonth

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_ARPromisesToPayOvw.
-- 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: PARPROM2PAYOVW
-- Parameters: P_StartDate : sydate, P_KeyDate : sydate, P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst_curr

CREATE VIEW P_ARPromisesToPayOvw AS
SELECT
  case_guid,
  CompanyCode,
  Customer,
  :P_DisplayCurrency AS DisplayCurrency,
  DATS_DAYS_BETWEEN(CreationDate,:P_KeyDate) AS DaysSinceCreation,
  currency_conversion( amount => PromisedAmount, source_currency => SourceCurrency, target_currency => :P_DisplayCurrency, exchange_rate_date => :P_KeyDate, exchange_rate_type => :P_ExchangeRateType, error_handling => #CNV_ERROR_HANDLING.FAIL_ON_ERROR, round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as PromisedAmountInDspCrcy AS trueasPromisedAmountInDspCrcy,
  currency_conversion( amount => PaidAmount, source_currency => SourceCurrency, target_currency => :P_DisplayCurrency, exchange_rate_date => :P_KeyDate, exchange_rate_type => :P_ExchangeRateType, error_handling => #CNV_ERROR_HANDLING.FAIL_ON_ERROR, round => #CDSBoolean.true, decimal_shift => #CDSBoolean.true, decimal_shift_back => #CDSBoolean.true ) as PaidAmountInDspCrcy AS trueasPaidAmountInDspCrcy,
  SourceCurrency,
  Status,
  DueDate,
  CreationDate,
  CalendarYear,
  CalendarMonth,
  YearMonth,
  FirstDayOfMonth,
  LastDayOfMonth
FROM P_DaysSalesOutstandingCalMonth AS CM
INNER JOIN P_PromiseToPay0 AS _prom ON /* join condition not captured in parsed metadata */
;