I_CN_CADECashFlow

DDL: I_CN_CADECASHFLOW SQL: ICNCADECASHFLOW Type: view COMPOSITE

CADE cash flow details

I_CN_CADECashFlow is a Composite CDS View that provides data about "CADE cash flow details" in SAP S/4HANA. It reads from 3 data sources (I_FiscalYearPeriodForLedger, I_FiscalYearPeriodForLedger, P_CN_CADECashDetail) and exposes 24 fields with key fields OriginSystem, OriginApplication, OriginDocument, OriginTransaction, OriginTransactionQualifier. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_FiscalYearPeriodForLedger FiscalYearPeriod left_outer
I_FiscalYearPeriodForLedger LastFiscalPeriod left_outer
P_CN_CADECashDetail P_CN_CADECashDetail from

Parameters (8)

NameTypeDefault
P_CompanyCode fis_bukrs
P_Ledger fis_rldnr
P_ProductHierarchyName fclm_hier_name
P_Language sylangu
P_FromFiscalYear fis_gjahr
P_FromFiscalPeriod fins_fiscalperiod
P_ToFiscalPeriod fins_fiscalperiod
P_IsSpecialPeriod xfeld

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CN_CADEJournalEntryMapping _DocumentType $projection.AccountingDocumentType = _DocumentType.AccountingDocumentType and CashDetail.CompanyCode = _DocumentType.CompanyCode and _DocumentType.CN_CADENatlStdRelVersion = 'CN24589'
[0..1] I_CN_CADEJournalEntryDocType _DefaultDocumentType CashDetail.CompanyCode = _DefaultDocumentType.CompanyCode and _DefaultDocumentType.CN_CADEDocumentTypeUsage = '1' and _DefaultDocumentType.IsDefaultValue = 'X' and _DefaultDocumentType.CN_CADENatlStdRelVersion = 'CN24589'

Annotations (12)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName ICNCADECASHFLOW view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
VDM.viewType #COMPOSITE view
EndUserText.label CADE cash flow details view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY OriginSystem OriginSystem LogSys: Formula
KEY OriginApplication OriginApplication Origin Application
KEY OriginDocument OriginDocument
KEY OriginTransaction OriginTransaction
KEY OriginTransactionQualifier OriginTransactionQualifier
KEY CashFlow CashFlow
ProductHierarchy LiquidityHierarhcyItem ProductHierarchy Prod.hierarchy
numc7endasFiscalYearPeriod
FiscalYear I_FiscalYearPeriodForLedger FiscalYear G/L Fiscal Year
TransactionCurrency TransactionCurrency Transaction Currency
ActualAmountInTransactionCrcy AmountInTransactionCurrency Pt Crcy Amt
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
CompanyCode CashDetail CompanyCode Receiver Company Code
LiquidityItemNameendasDocumentItemText
LiquidityItem
LiquidityItemName
ProductHierarchyName LiquidityHierarhcyItem ProductHierarchyName
TransactionDate TransactionDate Value Date
AccountingDocumentItem
CashFlowDirection CashFlowDirection
AccountingDocumentType AccountingDocumentType Journal Entry Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
ActualAmountInCompanyCodeCrcy AmountInCompanyCodeCurrency Local Crcy Amt
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt

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_CN_CADECashFlow.
-- 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: ICNCADECASHFLOW
-- Parameters: P_CompanyCode : fis_bukrs, P_Ledger : fis_rldnr, P_ProductHierarchyName : fclm_hier_name, P_Language : sylangu, P_FromFiscalYear : fis_gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalPeriod : fins_fiscalperiod, P_IsSpecialPeriod : xfeld

CREATE VIEW I_CN_CADECashFlow AS
SELECT
  OriginSystem,
  OriginApplication,
  OriginDocument,
  OriginTransaction,
  OriginTransactionQualifier,
  CashFlow,
  LiquidityHierarhcyItem.ProductHierarchy AS ProductHierarchy,
  case when FiscalYearPeriod.IsSpecialPeriod = 'X' then case :P_IsSpecialPeriod when 'X' then cast( LastFiscalPeriod.FiscalYearPeriod as abap.numc(7)) else cast( FiscalYearPeriod.FiscalYearPeriod as abap.numc(7)) end else cast( FiscalYearPeriod.FiscalYearPeriod as abap.numc(7)) end as FiscalYearPeriod AS numc7endasFiscalYearPeriod,
  FiscalYearPeriod.FiscalYear AS FiscalYear,
  TransactionCurrency,
  AmountInTransactionCurrency AS ActualAmountInTransactionCrcy,
  AmountInTransactionCurrency,
  CashDetail.CompanyCode AS CompanyCode,
  case when DocumentItemText <> '' then DocumentItemText else CashDetail._LiquidityItem._Text[1:Language = $parameters.P_Language].LiquidityItemName end as DocumentItemText AS LiquidityItemNameendasDocumentItemText,
  ltrim(CashDetail.LiquidityItem,'0') AS LiquidityItem,
  CashDetail._LiquidityItem._Text[1:Language = $parameters.P_Language].LiquidityItemName AS LiquidityItemName,
  LiquidityHierarhcyItem.ProductHierarchyName AS ProductHierarchyName,
  TransactionDate,
  RIGHT(AccountingDocumentItem,3) AS AccountingDocumentItem,
  CashFlowDirection,
  AccountingDocumentType,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency AS ActualAmountInCompanyCodeCrcy,
  AmountInCompanyCodeCurrency
FROM P_CN_CADECashDetail
LEFT OUTER JOIN I_FiscalYearPeriodForLedger AS FiscalYearPeriod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FiscalYearPeriodForLedger AS LastFiscalPeriod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CN_CADEJournalEntryMapping AS _DocumentType ON AccountingDocumentType = _DocumentType.AccountingDocumentType AND CashDetail.CompanyCode = _DocumentType.CompanyCode AND _DocumentType.CN_CADENatlStdRelVersion = 'CN24589'  -- association [0..1]
LEFT OUTER JOIN I_CN_CADEJournalEntryDocType AS _DefaultDocumentType ON CashDetail.CompanyCode = _DefaultDocumentType.CompanyCode AND _DefaultDocumentType.CN_CADEDocumentTypeUsage = '1' AND _DefaultDocumentType.IsDefaultValue = 'X' AND _DefaultDocumentType.CN_CADENatlStdRelVersion = 'CN24589'  -- association [0..1]
;