I_APARInterestItem

DDL: I_APARINTERESTITEM SQL: IAPARINTITEM Type: view BASIC Package: FINS_INTEREST_CALCULATION_CDS

Interest History Item

I_APARInterestItem is a Basic CDS View that provides data about "Interest History Item" in SAP S/4HANA. It reads from 2 data sources (intitfx, intitit) and exposes 62 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, InterestCalcUpperLimitDate. It has 4 associations to related views. Part of development package FINS_INTEREST_CALCULATION_CDS.

Data Sources (2)

SourceAliasJoin Type
intitfx _InterestCalcFixAmount union
intitit intitit from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Customer _Customer $projection.InterestDocumentAccount = _Customer.Customer and $projection.InterestDocFinAccountType = 'D'
[0..1] I_Supplier _Supplier $projection.InterestDocumentAccount = _Supplier.Supplier and $projection.InterestDocFinAccountType = 'K'
[0..1] I_CustomerCompany _CustomerCompany $projection.InterestDocumentAccount = _CustomerCompany.Customer and $projection.CompanyCode = _CustomerCompany.CompanyCode and $projection.InterestDocFinAccountType = 'D'
[0..1] I_SupplierCompany _SupplierCompany $projection.InterestDocumentAccount = _SupplierCompany.Supplier and $projection.CompanyCode = _SupplierCompany.CompanyCode and $projection.InterestDocFinAccountType = 'K'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IAPARINTITEM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Interest History Item view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs Value
KEY AccountingDocument belnr SD Document
KEY FiscalYear gjahr Settlement Year
KEY AccountingDocumentItem buzei Posting View Item
KEY InterestCalcUpperLimitDate int_until Period Upper Limit
KEY CAInterestRate int_rate Interest Rate
InterestCalcEndDate int_end Interest Calc. To
InterestCalcStartDate int_begin Interest Calc. From
NumberOfDays int_days
InterestCalculationCode int_ind Interest Indic.
TransactionCurrency int_curr Currency
InterestAmount int_amount Interest Amount
DebitCreditCode int_shkzg Debit/Credit
TaxAmountInTransCrcy tax_amount VAT Amount Type
AccountingDocumentCreationDate int_cpudt Entered On
TimeEntry int_cputm Entered at
AccountingDocCreatedByUser int_usnam User Name
CustomerSupplierAccount account Std. Account
InterestDocumentAccount account_to Up to Account No.
FinancialAccountType koart Account type
InterestDocFinAccountType koart_to Receiver Acct Type
InterestDocument belnr_to Interest Document
InterestDocumentFiscalYear gjahr_to To FY
InterestDocumentItem buzei_to Interest Doc. LI
InterestCalculationForm form_to Form Number
InterestBaseDaysMethod int_basedays Base Days
InterestBaseAmount int_basamt Int. Base Amount
DocumentReferenceID xblnr Reference
_Customer _Customer
_Supplier _Supplier
_CustomerCompany _CustomerCompany
KEY AccountingDocument belnr SD Document
KEY FiscalYear gjahr Settlement Year
KEY AccountingDocumentItem buzei Posting View Item
KEY InterestCalcUpperLimitDate int_until Period Upper Limit
KEY CAInterestRate 0 Interest Rate
InterestCalcEndDate Interest Calc. To
InterestCalcStartDate Interest Calc. From
NumberOfDays 0000
InterestCalculationCode int_ind Interest Indic.
TransactionCurrency int_curr Currency
InterestAmount int_amount Interest Amount
DebitCreditCode int_shkzg Debit/Credit
TaxAmountInTransCrcy tax_amount VAT Amount Type
AccountingDocumentCreationDate int_cpudt Entered On
TimeEntry int_cputm Entered at
AccountingDocCreatedByUser int_usnam User Name
CustomerSupplierAccount account Std. Account
InterestDocumentAccount account_to Up to Account No.
FinancialAccountType koart Account type
InterestDocFinAccountType koart_to Receiver Acct Type
InterestDocument belnr_to Interest Document
InterestDocumentFiscalYear gjahr_to To FY
InterestDocumentItem buzei_to Interest Doc. LI
InterestCalculationForm form_to Form Number
InterestBaseDaysMethod 0 Base Days
InterestBaseAmount int_basamt Int. Base Amount
DocumentReferenceID xblnr Reference
_Customer _Customer
_Supplier _Supplier
_CustomerCompany _CustomerCompany
_SupplierCompany _SupplierCompany

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_APARInterestItem.
-- 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: IAPARINTITEM

CREATE VIEW I_APARInterestItem AS
SELECT
  bukrs AS CompanyCode,
  belnr AS AccountingDocument,
  gjahr AS FiscalYear,
  buzei AS AccountingDocumentItem,
  int_until AS InterestCalcUpperLimitDate,
  int_rate AS CAInterestRate,
  int_end AS InterestCalcEndDate,
  int_begin AS InterestCalcStartDate,
  int_days AS NumberOfDays,
  int_ind AS InterestCalculationCode,
  int_curr AS TransactionCurrency,
  int_amount AS InterestAmount,
  int_shkzg AS DebitCreditCode,
  tax_amount AS TaxAmountInTransCrcy,
  int_cpudt AS AccountingDocumentCreationDate,
  int_cputm AS TimeEntry,
  int_usnam AS AccountingDocCreatedByUser,
  account AS CustomerSupplierAccount,
  account_to AS InterestDocumentAccount,
  koart AS FinancialAccountType,
  koart_to AS InterestDocFinAccountType,
  belnr_to AS InterestDocument,
  gjahr_to AS InterestDocumentFiscalYear,
  buzei_to AS InterestDocumentItem,
  form_to AS InterestCalculationForm,
  int_basedays AS InterestBaseDaysMethod,
  int_basamt AS InterestBaseAmount,
  xblnr AS DocumentReferenceID
FROM intitit
LEFT OUTER JOIN I_Customer AS _Customer ON InterestDocumentAccount = _Customer.Customer AND InterestDocFinAccountType = 'D'  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON InterestDocumentAccount = _Supplier.Supplier AND InterestDocFinAccountType = 'K'  -- association [0..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustomerCompany ON InterestDocumentAccount = _CustomerCompany.Customer AND CompanyCode = _CustomerCompany.CompanyCode AND InterestDocFinAccountType = 'D'  -- association [0..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON InterestDocumentAccount = _SupplierCompany.Supplier AND CompanyCode = _SupplierCompany.CompanyCode AND InterestDocFinAccountType = 'K'  -- association [0..1]
-- UNION with additional select branch(es): intitfx
;