P_ARPromisesToPayOvw
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)
| Source | Alias | Join Type |
|---|---|---|
| P_PromiseToPay0 | _prom | inner |
| P_DaysSalesOutstandingCalMonth | CM | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StartDate | sydate | |
| P_KeyDate | sydate | |
| P_DisplayCurrency | vdm_v_display_currency | |
| P_ExchangeRateType | kurst_curr |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PARPROM2PAYOVW | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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