P_APCshDiscUtilizationA5

DDL: P_APCSHDISCUTILIZATIONA5 SQL: PFIAPCSHDISUTIA5 Type: view COMPOSITE

P_APCshDiscUtilizationA5 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_APCshDiscUtilizationA4) and exposes 7 fields with key field CompanyCode.

Data Sources (1)

SourceAliasJoin Type
P_APCshDiscUtilizationA4 P_APCshDiscUtilizationA4 from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PFIAPCSHDISUTIA5 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
Supplier Supplier Supplier
PaymentTerms PaymentTerms Pyt Terms
TransactionCurrency TransactionCurrency Transaction Currency
ClearingDate ClearingDate Clearing Date
TakenCshDiscInTransacCrcy TakenCshDiscInTransacCrcy
OfferedCshDiscInTransacCrcy

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_APCshDiscUtilizationA5.
-- 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: PFIAPCSHDISUTIA5
-- Parameters: P_KeyDate : abap.dats, P_StartDate : vdm_v_start_date

CREATE VIEW P_APCshDiscUtilizationA5 AS
SELECT
  CompanyCode,
  Supplier,
  PaymentTerms,
  TransactionCurrency,
  ClearingDate,
  TakenCshDiscInTransacCrcy,
  cast(OfferedCshDiscInTransacCrcy as abap.curr( 23, 2 )) AS OfferedCshDiscInTransacCrcy
FROM P_APCshDiscUtilizationA4
;