I_CAInterestRunHistItemEnhcd

DDL: I_CAINTERESTRUNHISTITEMENHCD SQL: ICAINTRUNHISITMS Type: view COMPOSITE

Enhanced Interest Run History Item

I_CAInterestRunHistItemEnhcd is a Composite CDS View that provides data about "Enhanced Interest Run History Item" in SAP S/4HANA. It reads from 1 data source (P_CAInterestHistoryItem) and exposes 40 fields with key fields CAMassRunInternalID, BusinessPartner, ContractAccount, CAInterestDocument, CAInterestItemNumber. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_CAInterestHistoryItem CAInterestHistoryItem from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_ContractAccountHeader _CAHeader $projection.ContractAccount = _CAHeader.ContractAccount
[0..1] I_CASubstituteDocCategory _CASubstituteDocCategory $projection.CASubstituteDocumentCategory = _CASubstituteDocCategory.CASubstituteDocumentCategory
[0..1] I_CAInterestCategory _CAInterestCategory $projection.CAInterestCategory = _CAInterestCategory.CAInterestCategory
[0..1] I_CAInterestCode _CAInterestCode $projection.CAInterestCode = _CAInterestCode.CAInterestCode
[1..1] I_ContractAccountPartner _CAPartner $projection.BusinessPartner = _CAPartner.BusinessPartner and $projection.ContractAccount = _CAPartner.ContractAccount
[1..1] I_Currency _Currency $projection.TransactionCurrency = _Currency.Currency
[0..1] I_CADocumentBPItemPhysical _CAIntrstDocItem $projection.CAInterestDocument = _CAIntrstDocItem.CADocumentNumber and $projection.CAInterestItemNumber = _CAIntrstDocItem.CABPItemNumber

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICAINTRUNHISITMS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Enhanced Interest Run History Item view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY CAMassRunInternalID CAMassRunInternalID
KEY BusinessPartner BusinessPartner Issuing Authority
KEY ContractAccount ContractAccount Contract Acct
KEY CAInterestDocument CAInterestDocument
KEY CAInterestItemNumber CAInterestItemNumber
KEY CADocumentNumber Document Number
KEY CARepetitionItemNumber CARepetitionItemNumber Repetition Item
KEY CABPItemNumber Item
KEY CASubItemNumber CASubItemNumber Subitem
KEY CAInterestSequenceNumber
KEY CAIsSimulationRun CAIsSimulationRun
ContractAccountName _CAHeader ContractAccountName Cont. acct name
CAContract CAContract Contract
InterestCalcStartDate
InterestCalcEndDate InterestCalcEndDate
TransactionCurrency TransactionCurrency Transaction Currency
CAAmountInTransactionCurrency Amount
CAInterestRate
CAPercentageUnit CAPercentageUnit
CAInterestAmountInTransCrcy CAInterestAmountInTransCrcy
CASubstituteDocumentNumber Sub. Doc.
CASubstituteDocumentCategory CASubstituteDocumentCategory Doc.Cat.
CASubstituteDocCategoryName
CAInterestCategory CAInterestCategory
CAInterestCategoryText
CAInterestCode CAInterestCode Interest key
CAInterestCodeName
CAInterestIsCreatedByRounding CAInterestIsCreatedByRounding
CASecurityDeposit CASecurityDeposit
CAInterestCalcMonthlyCalDay CAInterestCalcMonthlyCalDay
CAInterestIsCalculatedAlready CAInterestIsCalculatedAlready
CAInterestIsCreatedByTaxPostg CAInterestIsCreatedByTaxPostg
_Currency _Currency
IsBusinessPurposeCompleted
AuthorizationGroup
CAAuthorizationGroup _CAPartner CAAuthorizationGroup AuthorizGroup
CompanyCode _CAIntrstDocItem CompanyCode Receiver Company Code
BusinessArea _CAIntrstDocItem BusinessArea Business Area
Segment _CAIntrstDocItem Segment Segment number
_CAInterestRunHistory _CAInterestRunHistory

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 I_CAInterestRunHistItemEnhcd.
-- 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: ICAINTRUNHISITMS

CREATE VIEW I_CAInterestRunHistItemEnhcd AS
SELECT
  CAMassRunInternalID,
  BusinessPartner,
  ContractAccount,
  CAInterestDocument,
  CAInterestItemNumber,
  cast( CADocumentNumber as src_opbel_kk) AS CADocumentNumber,
  CARepetitionItemNumber,
  cast( CABPItemNumber as srcdocitem_kk) AS CABPItemNumber,
  CASubItemNumber,
  cast( CAInterestSequenceNumber as /aif/seqn3) AS CAInterestSequenceNumber,
  CAIsSimulationRun,
  _CAHeader.ContractAccountName AS ContractAccountName,
  CAContract,
  cast( InterestCalcStartDate as vonld_kk) AS InterestCalcStartDate,
  InterestCalcEndDate,
  TransactionCurrency,
  cast( CAAmountInTransactionCurrency as secdep_doc_amt_kk) AS CAAmountInTransactionCurrency,
  cast( CAInterestRate as int_rate_ratio_kk) AS CAInterestRate,
  CAPercentageUnit,
  CAInterestAmountInTransCrcy,
  cast( CASubstituteDocumentNumber as abwbl_gfn_kk) AS CASubstituteDocumentNumber,
  CASubstituteDocumentCategory,
  _CASubstituteDocCategory._Text[1: Language=$session.system_language].CASubstituteDocCategoryName AS CASubstituteDocCategoryName,
  CAInterestCategory,
  _CAInterestCategory._Text[1: Language=$session.system_language].CAInterestCategoryText AS CAInterestCategoryText,
  CAInterestCode,
  _CAInterestCode._Text[1: Language=$session.system_language].CAInterestCodeName AS CAInterestCodeName,
  CAInterestIsCreatedByRounding,
  CASecurityDeposit,
  CAInterestCalcMonthlyCalDay,
  CAInterestIsCalculatedAlready,
  CAInterestIsCreatedByTaxPostg,
  _CAPartner._BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _CAPartner._BusinessPartner.AuthorizationGroup AS AuthorizationGroup,
  _CAPartner.CAAuthorizationGroup AS CAAuthorizationGroup,
  _CAIntrstDocItem.CompanyCode AS CompanyCode,
  _CAIntrstDocItem.BusinessArea AS BusinessArea,
  _CAIntrstDocItem.Segment AS Segment
FROM P_CAInterestHistoryItem AS CAInterestHistoryItem
LEFT OUTER JOIN I_ContractAccountHeader AS _CAHeader ON ContractAccount = _CAHeader.ContractAccount  -- association [1..1]
LEFT OUTER JOIN I_CASubstituteDocCategory AS _CASubstituteDocCategory ON CASubstituteDocumentCategory = _CASubstituteDocCategory.CASubstituteDocumentCategory  -- association [0..1]
LEFT OUTER JOIN I_CAInterestCategory AS _CAInterestCategory ON CAInterestCategory = _CAInterestCategory.CAInterestCategory  -- association [0..1]
LEFT OUTER JOIN I_CAInterestCode AS _CAInterestCode ON CAInterestCode = _CAInterestCode.CAInterestCode  -- association [0..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _CAPartner ON BusinessPartner = _CAPartner.BusinessPartner AND ContractAccount = _CAPartner.ContractAccount  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_CADocumentBPItemPhysical AS _CAIntrstDocItem ON CAInterestDocument = _CAIntrstDocItem.CADocumentNumber AND CAInterestItemNumber = _CAIntrstDocItem.CABPItemNumber  -- association [0..1]
;