P_APCashDiscount17

DDL: P_APCASHDISCOUNT17 SQL: PFIAPCSHDISC17 Type: view COMPOSITE Package: FINS_FIS_AP_APPS

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)

SourceAliasJoin Type
P_APCashDiscount16 P_APCashDiscount16 from

Parameters (8)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;