I_APARInterestDocument

DDL: I_APARINTERESTDOCUMENT SQL: IAPARINTDOC Type: view BASIC Package: FINS_INTEREST_CALCULATION_CDS

Interest Run

I_APARInterestDocument is a Basic CDS View that provides data about "Interest Run" in SAP S/4HANA. It reads from 1 data source (intitpf) and exposes 22 fields with key fields CompanyCode, InterestCalculationForm, InterestDocumentFiscalYear. It has 4 associations to related views. Part of development package FINS_INTEREST_CALCULATION_CDS.

Data Sources (1)

SourceAliasJoin Type
intitpf intitpf 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 IAPARINTDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Interest Run view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode bukrs_to Company Code
KEY InterestCalculationForm form_to Form Number
KEY InterestDocumentFiscalYear gjahr_to To FY
InterestDocumentAccount account_to Up to Account No.
InterestDocFinAccountType koart_to Receiver Acct Type
InterestCalcUpperLimitDate int_until Period Upper Limit
TransactionCurrency int_curr Currency
InterestAmount int_amount Interest Amount
TaxAmount tax_amount VAT Amount Type
InterestDocument belnr_to Interest Document
DebitCreditCode int_shkzg Debit/Credit
AccountingDocumentCreationDate int_cpudt Entered On
TimeEntry int_cputm Entered at
AccountingDocCreatedByUser int_usnam User Name
ApplicationLog log_number Log Number
InterestAmountInCCCrcy dmbtr Loc. amount
TaxAmountInCoCodeCrcy mwsts LC tax amount
CompanyCodeCurrency hwaer Local Currency
_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_APARInterestDocument.
-- 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: IAPARINTDOC

CREATE VIEW I_APARInterestDocument AS
SELECT
  bukrs_to AS CompanyCode,
  form_to AS InterestCalculationForm,
  gjahr_to AS InterestDocumentFiscalYear,
  account_to AS InterestDocumentAccount,
  koart_to AS InterestDocFinAccountType,
  int_until AS InterestCalcUpperLimitDate,
  int_curr AS TransactionCurrency,
  int_amount AS InterestAmount,
  tax_amount AS TaxAmount,
  belnr_to AS InterestDocument,
  int_shkzg AS DebitCreditCode,
  int_cpudt AS AccountingDocumentCreationDate,
  int_cputm AS TimeEntry,
  int_usnam AS AccountingDocCreatedByUser,
  log_number AS ApplicationLog,
  dmbtr AS InterestAmountInCCCrcy,
  mwsts AS TaxAmountInCoCodeCrcy,
  hwaer AS CompanyCodeCurrency
FROM intitpf
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]
;