I_CashPositionFlow
Cash Position Flow
I_CashPositionFlow is a Basic CDS View (Fact) that provides data about "Cash Position Flow" in SAP S/4HANA. It reads from 1 data source (P_FQMFLOWCASHPOS) and exposes 78 fields with key fields OriginSystem, OriginApplication, OriginDocument, OriginTransaction, OriginTransactionQualifier. It has 10 associations to related views. Part of development package FQM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_FQMFLOWCASHPOS | flow | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | false | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ICSHPOSFLW | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Cash Position Flow | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (78)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OriginSystem | P_FQMFLOWCASHPOS | OriginSystem | LogSys: Formula |
| KEY | OriginApplication | P_FQMFLOWCASHPOS | OriginApplication | Origin Application |
| KEY | OriginDocument | P_FQMFLOWCASHPOS | OriginDocument | Source Doc. ID |
| KEY | OriginTransaction | P_FQMFLOWCASHPOS | OriginTransaction | Source Trans. ID |
| KEY | OriginTransactionQualifier | P_FQMFLOWCASHPOS | OriginTransQualifier | Trans. Qualifier |
| KEY | CashFlow | P_FQMFLOWCASHPOS | CashFlow | Source Flow ID |
| KEY | ValidFrom | |||
| KEY | ValidTo | |||
| KEY | CashFlowID | P_FQMFLOWCASHPOS | flow_id | Flow ID |
| IsValid | P_FQMFLOWCASHPOS | IsValid | Truth Value | |
| CreatedByUser | P_FQMFLOWCASHPOS | CreatedByUser | User Name | |
| CreationDateTime | ||||
| LastChangedByUser | P_FQMFLOWCASHPOS | LastChangedByUser | User Name | |
| LastChangeDateTime | ||||
| CashTransactionOwner | P_FQMFLOWCASHPOS | Owner | Vehicle Owner | |
| CompanyCode | P_FQMFLOWCASHPOS | CompanyCode | Receiver Company Code | |
| TransactionDate | P_FQMFLOWCASHPOS | TransactionDate | Value Date | |
| CertaintyLevel | P_FQMFLOWCASHPOS | CertaintyLevel | Certainty Level | |
| TransactionCurrency | P_FQMFLOWCASHPOS | Currency | Valuation Crcy | |
| AmountInTransactionCurrency | P_FQMFLOWCASHPOS | Amount | Value Amount | |
| CompanyCodeCurrency | ||||
| AmountInCompanyCodeCurrency | ||||
| CashReleaseStatus | P_FQMFLOWCASHPOS | rel_status | Release Status | |
| AccountingDocument | P_FQMFLOWCASHPOS | AccountingDocument | Journal Entry | |
| AccountingDocumentItem | P_FQMFLOWCASHPOS | AccountingDocumentItem | Posting View Item | |
| FiscalYear | P_FQMFLOWCASHPOS | FiscalYear | G/L Fiscal Year | |
| PostingFiscalPeriod | P_FQMFLOWCASHPOS | FiscalPeriod | Tax period | |
| AccountingDocumentType | P_FQMFLOWCASHPOS | AccountingDocumentType | Journal Entry Type | |
| PaymentMethod | P_FQMFLOWCASHPOS | PaymentMethodCode | Pymt Meth. | |
| GLAccount | P_FQMFLOWCASHPOS | GLAccount | General Ledger | |
| FinancialAccountType | P_FQMFLOWCASHPOS | FinancialAccountType | Fin. Account Type | |
| DocumentItemText | P_FQMFLOWCASHPOS | DocumentItemText | Text | |
| PostingDate | P_FQMFLOWCASHPOS | PostingDate | Posting Date for GR | |
| NetDueDate | P_FQMFLOWCASHPOS | fi_due_date | Due Date | |
| CashPlanningGroup | P_FQMFLOWCASHPOS | PlanningGroup | Planning group | |
| PlanningLevel | P_FQMFLOWCASHPOS | PlanningLevel | Planning Level | |
| HouseBank | P_FQMFLOWCASHPOS | HouseBank | House Bank | |
| HouseBankAccount | P_FQMFLOWCASHPOS | HouseBankAccount | House Bank Account | |
| BankAccountInternalID | P_FQMFLOWCASHPOS | BankAccountId | Technical ID | |
| Customer | P_FQMFLOWCASHPOS | Customer | Sold-to Party | |
| Supplier | P_FQMFLOWCASHPOS | Vendor | Vendor | |
| BusinessPartner | P_FQMFLOWCASHPOS | Partner | With Partner | |
| Material | P_FQMFLOWCASHPOS | Material | Vehicle Model | |
| BusinessArea | P_FQMFLOWCASHPOS | BusinessArea | Business Area | |
| ProfitCenter | P_FQMFLOWCASHPOS | ProfitCenter | Profit Center | |
| WBSElementInternalID | ||||
| PartnerCompany | P_FQMFLOWCASHPOS | PartnerCompany | Trading Partner | |
| CostCenter | P_FQMFLOWCASHPOS | CostCenter | Cost Center | |
| Segment | P_FQMFLOWCASHPOS | Segment | Segment number | |
| LiquidityItem | P_FQMFLOWCASHPOS | LiquidityItem | Liquidity Item | |
| SourceCompanyCode | P_FQMFLOWCASHPOS | AssignedCompanyCode | Company Code | |
| Fund | P_FQMFLOWCASHPOS | Fund | Sender Fund | |
| GrantID | P_FQMFLOWCASHPOS | GrantID | Sender Grant | |
| FinancialInstrumentProductType | P_FQMFLOWCASHPOS | ProductType | Product Type Group | |
| FinancialTransactionType | P_FQMFLOWCASHPOS | FinancialTransactionType | Transact. Type | |
| SecurityClass | P_FQMFLOWCASHPOS | SecurityClass | Security Class | |
| SecurityAccount | P_FQMFLOWCASHPOS | TrmSecurityAccount | Securities Acct | |
| AssetContract | P_FQMFLOWCASHPOS | ContractNumber | ContractNum | |
| Portfolio | P_FQMFLOWCASHPOS | Portfolio | Portfolio | |
| TreasuryActivityCategory | P_FQMFLOWCASHPOS | TreasuryActivityCategory | Activity Cat. | |
| datsendasExpirationDate | ||||
| BankStatementShortID | ||||
| BankStatementItem | P_FQMFLOWCASHPOS | BankStatementItem | Memo Record No. | |
| MemoRecordExpirationDateTime | P_FQMFLOWCASHPOS | 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_CashPositionFlow.
-- 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: ICSHPOSFLW
CREATE VIEW I_CashPositionFlow 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.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.fi_due_date AS NetDueDate,
flow.PlanningGroup AS CashPlanningGroup,
flow.PlanningLevel AS PlanningLevel,
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.TreasuryActivityCategory AS TreasuryActivityCategory,
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.MemoRecordExpirationDateTime AS MemoRecordExpirationDateTime,
CashFlowIsEndOfDayReconciled,
CshFlwEODayRecnclnBundle,
CashFlowIsIntradayReconciled,
CshFlwIntrdayRecnclnBundle
FROM P_FQMFLOWCASHPOS 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA