P_APCshDiscUtilizationA3

DDL: P_APCSHDISCUTILIZATIONA3 SQL: PFIAPCSHDISUTIA3 Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
P_APCshDiscUtilizationA2 P_APCshDiscUtilizationA2 from

Parameters (2)

NameTypeDefault
P_KeyDate abap.dats
P_StartDate vdm_v_start_date

Annotations (6)

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

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

CREATE VIEW P_APCshDiscUtilizationA3 AS
SELECT
  CompanyCode,
  Supplier,
  sum(TakenCshDiscInTransacCrcy) AS TakenCshDiscInTransacCrcy,
  sum(OfferedCshDiscInTransacCrcy) AS OfferedCshDiscInTransacCrcy,
  PaymentTerms,
  TransactionCurrency,
  ClearingDate
FROM P_APCshDiscUtilizationA2
;