I_CashFlowByScopeForAccounting

DDL: I_CASHFLOWBYSCOPEFORACCOUNTING SQL: ICSHFLWSCPFI Type: view BASIC Package: FQM

Cash Flow with Scope

I_CashFlowByScopeForAccounting is a Basic CDS View (Fact) that provides data about "Cash Flow with Scope" in SAP S/4HANA. It reads from 1 data source (P_FqmFlowScope) and exposes 82 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_FqmFlowScope 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
AbapCatalog.sqlViewName ICSHFLWSCPFI view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Cash Flow with Scope view
VDM.viewType #BASIC view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled false view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (82)

KeyFieldSource TableSource FieldDescription
KEY OriginSystem P_FqmFlowScope OriginSystem LogSys: Formula
KEY OriginApplication P_FqmFlowScope OriginApplication Origin Application
KEY OriginDocument P_FqmFlowScope OriginDocument Source Doc. ID
KEY OriginTransaction P_FqmFlowScope OriginTransaction Source Trans. ID
KEY OriginTransactionQualifier P_FqmFlowScope OriginTransQualifier Trans. Qualifier
KEY CashFlow P_FqmFlowScope CashFlow Source Flow ID
KEY ValidFrom P_FqmFlowScope ValidFrom Vers.Valid From
KEY ValidTo P_FqmFlowScope ValidTo Vers.Valid To
KEY CashFlowScopeForAccounting CashFlowScopeForAccounting Visibility
KEY CashFlowID P_FqmFlowScope flow_id Flow ID
IsValid P_FqmFlowScope IsValid Truth Value
CreatedByUser P_FqmFlowScope CreatedByUser User Name
CreationDateTime P_FqmFlowScope CreationDateTime Timestamp
LastChangedByUser P_FqmFlowScope LastChangedByUser User Name
LastChangeDateTime P_FqmFlowScope LastChangeDateTime Timestamp
CashTransactionOwner P_FqmFlowScope Owner Vehicle Owner
CompanyCode P_FqmFlowScope CompanyCode Receiver Company Code
TransactionDate P_FqmFlowScope TransactionDate Value Date
CertaintyLevel P_FqmFlowScope CertaintyLevel Certainty Level
TransactionCurrency P_FqmFlowScope Currency Valuation Crcy
AmountInTransactionCurrency P_FqmFlowScope Amount Value Amount
CompanyCodeCurrency
AmountInCompanyCodeCurrency
CashReleaseStatus P_FqmFlowScope rel_status Release Status
AccountingDocument P_FqmFlowScope AccountingDocument Journal Entry
AccountingDocumentItem P_FqmFlowScope AccountingDocumentItem Posting View Item
FiscalYear P_FqmFlowScope FiscalYear G/L Fiscal Year
PostingFiscalPeriod P_FqmFlowScope FiscalPeriod Tax period
AccountingDocumentType P_FqmFlowScope AccountingDocumentType Journal Entry Type
PaymentMethod P_FqmFlowScope PaymentMethodCode Pymt Meth.
GLAccount P_FqmFlowScope GLAccount General Ledger
FinancialAccountType P_FqmFlowScope FinancialAccountType Fin. Account Type
DocumentItemText P_FqmFlowScope DocumentItemText Text
PostingDate P_FqmFlowScope PostingDate Posting Date for GR
DocumentDate P_FqmFlowScope DocumentDate Journal Entry Date
ValueDate P_FqmFlowScope ValueDate Value Date
NetDueDate P_FqmFlowScope fi_due_date Due Date
CashPlanningGroup P_FqmFlowScope PlanningGroup Planning group
PlanningLevel P_FqmFlowScope PlanningLevel Planning Level
MemoRecordExpirationDateTime P_FqmFlowScope MemoRecordExpirationDateTime
HouseBank P_FqmFlowScope HouseBank House Bank
HouseBankAccount P_FqmFlowScope HouseBankAccount House Bank Account
BankAccountInternalID P_FqmFlowScope BankAccountId Technical ID
Customer P_FqmFlowScope Customer Sold-to Party
Supplier P_FqmFlowScope Vendor Vendor
BusinessPartner P_FqmFlowScope Partner With Partner
Material P_FqmFlowScope Material Vehicle Model
BusinessArea P_FqmFlowScope BusinessArea Business Area
ProfitCenter P_FqmFlowScope ProfitCenter Profit Center
WBSElementInternalID
PartnerCompany P_FqmFlowScope PartnerCompany Trading Partner
CostCenter P_FqmFlowScope CostCenter Cost Center
Segment P_FqmFlowScope Segment Segment number
LiquidityItem P_FqmFlowScope LiquidityItem Liquidity Item
SourceCompanyCode P_FqmFlowScope AssignedCompanyCode Company Code
Fund P_FqmFlowScope Fund Sender Fund
GrantID P_FqmFlowScope GrantID Sender Grant
FinancialInstrumentProductType P_FqmFlowScope ProductType Product Type Group
FinancialTransactionType P_FqmFlowScope FinancialTransactionType Transact. Type
SecurityClass P_FqmFlowScope SecurityClass Security Class
SecurityAccount P_FqmFlowScope TrmSecurityAccount Securities Acct
AssetContract P_FqmFlowScope ContractNumber ContractNum
Portfolio P_FqmFlowScope Portfolio Portfolio
RelatedOriginApplication P_FqmFlowScope RelatedOriginApplication Source Application
RelatedOriginTransactionID P_FqmFlowScope RelatedOriginTransactionID Source Trans. ID
datsendasExpirationDate
BankStatementShortID
BankStatementItem P_FqmFlowScope BankStatementItem Memo Record No.
CashFlowIsEndOfDayReconciled P_FqmFlowScope reconciled_eod
CshFlwEODayRecnclnBundle P_FqmFlowScope bundle_eod
CashFlowIsIntradayReconciled P_FqmFlowScope reconciled_intraday
CshFlwIntrdayRecnclnBundle P_FqmFlowScope bundle_intraday
_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_CashFlowByScopeForAccounting.
-- 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: ICSHFLWSCPFI

CREATE VIEW I_CashFlowByScopeForAccounting 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,
  flow.ValidFrom AS ValidFrom,
  flow.ValidTo AS ValidTo,
  CashFlowScopeForAccounting,
  flow.flow_id AS CashFlowID,
  flow.IsValid AS IsValid,
  flow.CreatedByUser AS CreatedByUser,
  flow.CreationDateTime AS CreationDateTime,
  flow.LastChangedByUser AS LastChangedByUser,
  flow.LastChangeDateTime AS LastChangeDateTime,
  flow.Owner AS CashTransactionOwner,
  flow.CompanyCode AS CompanyCode,
  flow.TransactionDate AS TransactionDate,
  flow.CertaintyLevel AS CertaintyLevel,
  flow.Currency AS TransactionCurrency,
  flow.Amount AS AmountInTransactionCurrency,
  case when CertaintyLevel = 'CSHRQ' then cast('' as fqm_currency) else flow.BaseCurrency end AS CompanyCodeCurrency,
  case when CertaintyLevel = 'CSHRQ' then cast(0 as fqm_amount) else flow.BaseAmount end 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.PaymentMethodCode AS PaymentMethod,
  flow.GLAccount AS GLAccount,
  flow.FinancialAccountType AS FinancialAccountType,
  flow.DocumentItemText AS DocumentItemText,
  flow.PostingDate AS PostingDate,
  flow.DocumentDate AS DocumentDate,
  flow.ValueDate AS ValueDate,
  flow.fi_due_date AS NetDueDate,
  flow.PlanningGroup AS CashPlanningGroup,
  flow.PlanningLevel AS PlanningLevel,
  flow.MemoRecordExpirationDateTime AS MemoRecordExpirationDateTime,
  flow.HouseBank AS HouseBank,
  flow.HouseBankAccount AS HouseBankAccount,
  flow.BankAccountId AS BankAccountInternalID,
  flow.Customer AS Customer,
  flow.Vendor AS Supplier,
  flow.Partner AS BusinessPartner,
  flow.Material AS Material,
  flow.BusinessArea AS BusinessArea,
  flow.ProfitCenter AS ProfitCenter,
  cast(flow.Project as ps_s4_pspnr) AS WBSElementInternalID,
  flow.PartnerCompany AS PartnerCompany,
  flow.CostCenter AS CostCenter,
  flow.Segment AS Segment,
  flow.LiquidityItem AS LiquidityItem,
  flow.AssignedCompanyCode 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.RelatedOriginApplication AS RelatedOriginApplication,
  flow.RelatedOriginTransactionID AS RelatedOriginTransactionID,
  case when ( flow.CertaintyLevel = 'MEMO' or flow.CertaintyLevel = 'INTRAM' ) and flow.fi_due_date > '00000000' then flow.fi_due_date else cast('99991231' as abap.dats) end as ExpirationDate AS datsendasExpirationDate,
  cast( flow.BankStatementShortKey as kukey_eb ) AS BankStatementShortID,
  flow.BankStatementItem AS BankStatementItem,
  flow.reconciled_eod AS CashFlowIsEndOfDayReconciled,
  flow.bundle_eod AS CshFlwEODayRecnclnBundle,
  flow.reconciled_intraday AS CashFlowIsIntradayReconciled,
  flow.bundle_intraday AS CshFlwIntrdayRecnclnBundle
FROM P_FqmFlowScope 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]
;