P_LoanContrDunningData

DDL: P_LOANCONTRDUNNINGDATA Type: view COMPOSITE

P_LoanContrDunningData is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_LoanContrDunDet) and exposes 7 fields with key fields CompanyCode, LoanArchivingCategory, LoanContractID, LoanDunningRunDate, LoanDunningRunID.

Data Sources (1)

SourceAliasJoin Type
I_LoanContrDunDet _LoanContrDunDet from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PLCDUNNDAAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_LoanContrDunDet CompanyCode Receiver Company Code
KEY LoanArchivingCategory I_LoanContrDunDet LoanArchivingCategory Archiving Cat.
KEY LoanContractID I_LoanContrDunDet LoanContractID Treasury ID No.
KEY LoanDunningRunDate I_LoanContrDunDet LoanDunningRunDate Run On
KEY LoanDunningRunID I_LoanContrDunDet LoanDunningRunID Settlement ID
DunningCurrency _DunningEntry DunningCurrency
LoanDunningAmountPerRun

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_LoanContrDunningData.
-- 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.

CREATE VIEW P_LoanContrDunningData AS
SELECT
  _LoanContrDunDet.CompanyCode AS CompanyCode,
  _LoanContrDunDet.LoanArchivingCategory AS LoanArchivingCategory,
  _LoanContrDunDet.LoanContractID AS LoanContractID,
  _LoanContrDunDet.LoanDunningRunDate AS LoanDunningRunDate,
  _LoanContrDunDet.LoanDunningRunID AS LoanDunningRunID,
  _DunningEntry.DunningCurrency AS DunningCurrency,
  sum(_DunningEntry.DueLineItemsTotalInDunCrcy) AS LoanDunningAmountPerRun
FROM I_LoanContrDunDet AS _LoanContrDunDet
;