I_CashFlow

DDL: I_CASHFLOW SQL: ICSHFLW Type: view BASIC Package: FQM

Cash Flow

I_CashFlow is a Basic CDS View (Fact) that provides data about "Cash Flow" in SAP S/4HANA. It reads from 1 data source (P_CashFlowCombn) and exposes 80 fields with key fields OriginSystem, OriginApplication, OriginDocument, OriginTransaction, OriginTransactionQualifier. It has 10 associations to related views. Part of development package FQM.

Data Sources (1)

SourceAliasJoin Type
P_CashFlowCombn flow from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] I_CompanyCode _SourceCompanyCode $projection.SourceCompanyCode = _SourceCompanyCode.CompanyCode
[0..1] I_BankAccount _BankAccount $projection.BankAccountInternalID = _BankAccount.BankAccountInternalID
[0..1] I_Currency _Currency $projection.TransactionCurrency = _Currency.Currency
[0..1] I_CashPlanningGroup _CashPlanningGroup $projection.CashPlanningGroup = _CashPlanningGroup.CashPlanningGroup
[0..1] I_PlanningLevel _PlanningLevel $projection.PlanningLevel = _PlanningLevel.PlanningLevel
[0..1] I_LiquidityItem _LiquidityItem $projection.LiquidityItem = _LiquidityItem.LiquidityItem
[0..1] I_Glaccountwithaccountcurrency _GLAccount $projection.CompanyCode = _GLAccount.CompanyCode and $projection.GLAccount = _GLAccount.GLAccount
[0..1] I_WBSElementByInternalKey _WBSElement $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID
[0..1] I_AccountingDocument _AccountingDocument $projection.CompanyCode = _AccountingDocument.CompanyCode and $projection.FiscalYear = _AccountingDocument.FiscalYear and $projection.AccountingDocument = _AccountingDocument.AccountingDocument

Annotations (11)

NameValueLevelField
VDM.viewType #BASIC view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled false view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ICSHFLW view
AbapCatalog.preserveKey true view
EndUserText.label Cash Flow view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (80)

KeyFieldSource TableSource FieldDescription
KEY OriginSystem P_CashFlowCombn OriginSystem LogSys: Formula
KEY OriginApplication P_CashFlowCombn OriginApplication Origin Application
KEY OriginDocument P_CashFlowCombn OriginDocument
KEY OriginTransaction P_CashFlowCombn OriginTransaction
KEY OriginTransactionQualifier P_CashFlowCombn OriginTransQualifier
KEY CashFlow P_CashFlowCombn CashFlow
KEY ValidFrom
KEY ValidTo
CashFlowID P_CashFlowCombn flow_id Flow ID
IsValid P_CashFlowCombn IsValid Truth Value
CreatedByUser P_CashFlowCombn CreatedByUser User Name
CreationDateTime
LastChangedByUser P_CashFlowCombn LastChangedByUser User Name
LastChangeDateTime
CashTransactionOwner P_CashFlowCombn Owner Vehicle Owner
CompanyCode P_CashFlowCombn CompanyCode Receiver Company Code
TransactionDate P_CashFlowCombn TransactionDate Value Date
CertaintyLevel P_CashFlowCombn CertaintyLevel
TransactionCurrency P_CashFlowCombn TransactionCurrency Transaction Currency
AmountInTransactionCurrency P_CashFlowCombn AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency P_CashFlowCombn CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency P_CashFlowCombn AmountInCompanyCodeCurrency Local Crcy Amt
CashReleaseStatus P_CashFlowCombn rel_status Release Status
AccountingDocument P_CashFlowCombn AccountingDocument Journal Entry
AccountingDocumentItem P_CashFlowCombn AccountingDocumentItem Posting View Item
FiscalYear P_CashFlowCombn FiscalYear G/L Fiscal Year
PostingFiscalPeriod P_CashFlowCombn FiscalPeriod Tax period
AccountingDocumentType P_CashFlowCombn AccountingDocumentType Journal Entry Type
PaymentMethod P_CashFlowCombn PaymentMethod Pymt Meth.
GLAccount P_CashFlowCombn GLAccount General Ledger
FinancialAccountType P_CashFlowCombn FinancialAccountType Fin. Account Type
DocumentItemText P_CashFlowCombn DocumentItemText Text
PostingDate P_CashFlowCombn PostingDate Posting Date for GR
ValueDate P_CashFlowCombn ValueDate Value Date
NetDueDate P_CashFlowCombn fi_due_date Due Date
CashPlanningGroup P_CashFlowCombn CashPlanningGroup Planning Group
PlanningLevel P_CashFlowCombn PlanningLevel Planning Level
HouseBank P_CashFlowCombn HouseBank House Bank
HouseBankAccount P_CashFlowCombn HouseBankAccount House Bank Account
BankAccountInternalID P_CashFlowCombn BankAccountInternalID Technical ID
Customer P_CashFlowCombn Customer Sold-to Party
Supplier P_CashFlowCombn Vendor Vendor
BusinessPartner P_CashFlowCombn BusinessPartner Issuing Authority
Material P_CashFlowCombn Material Vehicle Model
BusinessArea P_CashFlowCombn BusinessArea Business Area
ProfitCenter P_CashFlowCombn ProfitCenter Profit Center
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElement _WBSElement WBSElement WBS Internal ID
PartnerCompany P_CashFlowCombn PartnerCompany Trading Partner
CostCenter P_CashFlowCombn CostCenter Cost Center
Segment P_CashFlowCombn Segment Segment number
LiquidityItem P_CashFlowCombn LiquidityItem Liquidity Item
SourceCompanyCode P_CashFlowCombn SourceCompanyCode
Fund P_CashFlowCombn Fund Sender Fund
GrantID P_CashFlowCombn GrantID Sender Grant
FinancialInstrumentProductType P_CashFlowCombn ProductType Product Type Group
FinancialTransactionType P_CashFlowCombn FinancialTransactionType Transact. Type
SecurityClass P_CashFlowCombn SecurityClass
SecurityAccount P_CashFlowCombn TrmSecurityAccount
AssetContract P_CashFlowCombn ContractNumber ContractNum
Portfolio P_CashFlowCombn Portfolio Portfolio
TreasuryActivityCategory P_CashFlowCombn TreasuryActivityCategory
ExpirationDate P_CashFlowCombn ExpirationDate Expiratn Date
BankStatementShortID
BankStatementItem P_CashFlowCombn BankStatementItem Memo Record No.
MemoRecordExpirationDateTime P_CashFlowCombn MemoRecordExpirationDateTime
CashFlowIsEndOfDayReconciled CashFlowIsEndOfDayReconciled
CshFlwEODayRecnclnBundle CshFlwEODayRecnclnBundle
CashFlowIsIntradayReconciled CashFlowIsIntradayReconciled
CshFlwIntrdayRecnclnBundle CshFlwIntrdayRecnclnBundle
_CompanyCode _CompanyCode
_BankAccount _BankAccount
_Currency _Currency
_CashPlanningGroup _CashPlanningGroup
_PlanningLevel _PlanningLevel
_LiquidityItem _LiquidityItem
_GLAccount _GLAccount
_WBSElement _WBSElement
_SourceCompanyCode _SourceCompanyCode
_AccountingDocument _AccountingDocument

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_CashFlow.
-- 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: ICSHFLW

CREATE VIEW I_CashFlow AS
SELECT
  flow.OriginSystem AS OriginSystem,
  flow.OriginApplication AS OriginApplication,
  flow.OriginDocument AS OriginDocument,
  flow.OriginTransaction AS OriginTransaction,
  flow.OriginTransQualifier AS OriginTransactionQualifier,
  flow.CashFlow AS CashFlow,
  cast( flow.ValidFrom as timestampl ) AS ValidFrom,
  cast( flow.ValidTo as timestampl ) AS ValidTo,
  flow.flow_id AS CashFlowID,
  flow.IsValid AS IsValid,
  flow.CreatedByUser AS CreatedByUser,
  cast( flow.CreationDateTime as timestampl ) AS CreationDateTime,
  flow.LastChangedByUser AS LastChangedByUser,
  cast( flow.LastChangeDateTime as timestampl ) AS LastChangeDateTime,
  flow.Owner AS CashTransactionOwner,
  flow.CompanyCode AS CompanyCode,
  flow.TransactionDate AS TransactionDate,
  flow.CertaintyLevel AS CertaintyLevel,
  flow.TransactionCurrency AS TransactionCurrency,
  flow.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  flow.CompanyCodeCurrency AS CompanyCodeCurrency,
  flow.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  flow.rel_status AS CashReleaseStatus,
  flow.AccountingDocument AS AccountingDocument,
  flow.AccountingDocumentItem AS AccountingDocumentItem,
  flow.FiscalYear AS FiscalYear,
  flow.FiscalPeriod AS PostingFiscalPeriod,
  flow.AccountingDocumentType AS AccountingDocumentType,
  flow.PaymentMethod AS PaymentMethod,
  flow.GLAccount AS GLAccount,
  flow.FinancialAccountType AS FinancialAccountType,
  flow.DocumentItemText AS DocumentItemText,
  flow.PostingDate AS PostingDate,
  flow.ValueDate AS ValueDate,
  flow.fi_due_date AS NetDueDate,
  flow.CashPlanningGroup AS CashPlanningGroup,
  flow.PlanningLevel AS PlanningLevel,
  flow.HouseBank AS HouseBank,
  flow.HouseBankAccount AS HouseBankAccount,
  flow.BankAccountInternalID AS BankAccountInternalID,
  flow.Customer AS Customer,
  flow.Vendor AS Supplier,
  flow.BusinessPartner AS BusinessPartner,
  flow.Material AS Material,
  flow.BusinessArea AS BusinessArea,
  flow.ProfitCenter AS ProfitCenter,
  WBSElementInternalID,
  _WBSElement.WBSElement AS WBSElement,
  flow.PartnerCompany AS PartnerCompany,
  flow.CostCenter AS CostCenter,
  flow.Segment AS Segment,
  flow.LiquidityItem AS LiquidityItem,
  flow.SourceCompanyCode AS SourceCompanyCode,
  flow.Fund AS Fund,
  flow.GrantID AS GrantID,
  flow.ProductType AS FinancialInstrumentProductType,
  flow.FinancialTransactionType AS FinancialTransactionType,
  flow.SecurityClass AS SecurityClass,
  flow.TrmSecurityAccount AS SecurityAccount,
  flow.ContractNumber AS AssetContract,
  flow.Portfolio AS Portfolio,
  flow.TreasuryActivityCategory AS TreasuryActivityCategory,
  flow.ExpirationDate AS ExpirationDate,
  cast( flow.BankStatementShortKey as kukey_eb ) AS BankStatementShortID,
  flow.BankStatementItem AS BankStatementItem,
  flow.MemoRecordExpirationDateTime AS MemoRecordExpirationDateTime,
  CashFlowIsEndOfDayReconciled,
  CshFlwEODayRecnclnBundle,
  CashFlowIsIntradayReconciled,
  CshFlwIntrdayRecnclnBundle
FROM P_CashFlowCombn AS flow
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _SourceCompanyCode ON SourceCompanyCode = _SourceCompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_BankAccount AS _BankAccount ON BankAccountInternalID = _BankAccount.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CashPlanningGroup AS _CashPlanningGroup ON CashPlanningGroup = _CashPlanningGroup.CashPlanningGroup  -- association [0..1]
LEFT OUTER JOIN I_PlanningLevel AS _PlanningLevel ON PlanningLevel = _PlanningLevel.PlanningLevel  -- association [0..1]
LEFT OUTER JOIN I_LiquidityItem AS _LiquidityItem ON LiquidityItem = _LiquidityItem.LiquidityItem  -- association [0..1]
LEFT OUTER JOIN I_Glaccountwithaccountcurrency AS _GLAccount ON CompanyCode = _GLAccount.CompanyCode AND GLAccount = _GLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON CompanyCode = _AccountingDocument.CompanyCode AND FiscalYear = _AccountingDocument.FiscalYear AND AccountingDocument = _AccountingDocument.AccountingDocument  -- association [0..1]
;