P_APCashDiscount17
Cash Discount Forecast
P_APCashDiscount17 is a Composite CDS View that provides data about "Cash Discount Forecast" in SAP S/4HANA. It reads from 1 data source (P_APCashDiscount16) and exposes 7 fields with key fields CompanyCode, Supplier. Part of development package FINS_FIS_AP_APPS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_APCashDiscount16 | P_APCashDiscount16 | from |
Parameters (8)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | vdm_v_display_currency | |
| P_KeyDate | sydate | |
| P_CashDiscountForecastDays | farp_forecast_days | |
| P_PaymentCycle | farp_payment_cycle | |
| P_PaymentDay1 | farp_payment_day1 | |
| P_PaymentDay2 | farp_payment_day2 | |
| P_PaymentDay3 | farp_payment_day3 | |
| P_Language | sylangu |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIAPCSHDISC17 | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | Supplier | Supplier | ||
| PaymentDate | PaymentDate | Payment Date | ||
| PaymentBlockingReason | PaymentBlockingReason | Pmnt block | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| Currency | Currency | Valuation Crcy | ||
| DisplayCurrency |
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_APCashDiscount17.
-- 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: PFIAPCSHDISC17
-- Parameters: P_DisplayCurrency : vdm_v_display_currency, P_KeyDate : sydate, P_CashDiscountForecastDays : farp_forecast_days, P_PaymentCycle : farp_payment_cycle, P_PaymentDay1 : farp_payment_day1, P_PaymentDay2 : farp_payment_day2, P_PaymentDay3 : farp_payment_day3, P_Language : sylangu
CREATE VIEW P_APCashDiscount17 AS
SELECT
CompanyCode,
cast ( cast(Supplier as abap.char(10) ) as md_supplier) AS Supplier,
PaymentDate,
PaymentBlockingReason,
PaymentTerms,
Currency,
cast(:P_DisplayCurrency as vdm_v_display_currency) AS DisplayCurrency
FROM P_APCashDiscount16
;
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