P_CAScrtyDepReqCalIntAmount

DDL: P_CASCRTYDEPREQCALINTAMOUNT SQL: PCALREQINTAMT2 Type: view COMPOSITE Package: ODATA_O2C_FICA_SCRTY_DEP_MNG

Calculate Request Interest Amount

P_CAScrtyDepReqCalIntAmount is a Composite CDS View that provides data about "Calculate Request Interest Amount" in SAP S/4HANA. It reads from 2 data sources (P_CASecInterestDocument, I_CACashSecurityDepositRequest) and exposes 4 fields with key fields CASecurityDeposit, CASecurityDepositDocument. Part of development package ODATA_O2C_FICA_SCRTY_DEP_MNG.

Data Sources (2)

SourceAliasJoin Type
P_CASecInterestDocument InterestDoc inner
I_CACashSecurityDepositRequest SecReq from

Annotations (7)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CASecurityDeposit I_CACashSecurityDepositRequest CASecurityDeposit XSRF
KEY CASecurityDepositDocument I_CACashSecurityDepositRequest CADocumentNumber Document Number
CAInterestAmtInPaymentCurrency
PaymentCurrency P_CASecInterestDocument Currency Valuation Crcy

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_CAScrtyDepReqCalIntAmount.
-- 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: PCALREQINTAMT2

CREATE VIEW P_CAScrtyDepReqCalIntAmount AS
SELECT
  SecReq.CASecurityDeposit AS CASecurityDeposit,
  SecReq.CADocumentNumber AS CASecurityDepositDocument,
  sum(InterestDoc.CAInterestAmountInTransCrcy) AS CAInterestAmtInPaymentCurrency,
  InterestDoc.Currency AS PaymentCurrency
FROM I_CACashSecurityDepositRequest AS SecReq
INNER JOIN P_CASecInterestDocument AS InterestDoc ON /* join condition not captured in parsed metadata */
;