P_LoanContrDunCntAndAmt

DDL: P_LOANCONTRDUNCNTANDAMT Type: view COMPOSITE Package: FVVD_VDM

Dunning amount and count per Contract

P_LoanContrDunCntAndAmt is a Composite CDS View that provides data about "Dunning amount and count per Contract" in SAP S/4HANA. It reads from 1 data source (P_LoanContrDunning) and exposes 6 fields with key fields CompanyCode, LoanContractID, LoanArchivingCategory. Part of development package FVVD_VDM.

Data Sources (1)

SourceAliasJoin Type
P_LoanContrDunning _LoanContrDunning from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PLCDUNCNTANDAMT 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 (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_LoanContrDunning CompanyCode Receiver Company Code
KEY LoanContractID P_LoanContrDunning LoanContractID
KEY LoanArchivingCategory P_LoanContrDunning LoanArchivingCategory
NumberOfLoanDunningRuns
LoanDunningCurrency P_LoanContrDunning LoanDunningCurrency
LoanDunningAmountPerLoan

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_LoanContrDunCntAndAmt.
-- 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_LoanContrDunCntAndAmt AS
SELECT
  _LoanContrDunning.CompanyCode AS CompanyCode,
  _LoanContrDunning.LoanContractID AS LoanContractID,
  _LoanContrDunning.LoanArchivingCategory AS LoanArchivingCategory,
  count(*) AS NumberOfLoanDunningRuns,
  _LoanContrDunning.LoanDunningCurrency AS LoanDunningCurrency,
  sum(_LoanContrDunning.LoanDunningAmountPerRun) AS LoanDunningAmountPerLoan
FROM P_LoanContrDunning AS _LoanContrDunning
;