I_CashFlowItemTP
Cash Flow Items
I_CashFlowItemTP is a Transactional CDS View that provides data about "Cash Flow Items" in SAP S/4HANA. It has 21 associations to related views. Part of development package ODATA_PAYMENTDETAILS.
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CashFlowSubItemTP | _SubItem | $projection.OriginSystem = _SubItem.OriginSystem and $projection.OriginTransactionValue = _SubItem.OriginTransactionValue and $projection.OriginApplication = _SubItem.OriginApplication and $projection.OriginDocument = _SubItem.OriginDocument and $projection.OriginFlowID = _SubItem.OriginFlowID and $projection.CashFlowSnapshotValue = _SubItem.CashFlowSnapshotValue and $projection.TransactionDate = _SubItem.TransactionDate and $projection.OriginTransactionQualifier = _SubItem.OriginTransactionQualifier and $projection.CashFlowScopeForAccounting = _SubItem.CashFlowScopeForAccounting |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_FinancialAccountType | _AccTypeText | $projection.FinancialAccountType = _AccTypeText.FinancialAccountType |
| [0..*] | I_CashPlanningGroupText | _CashPlanningGroupText | $projection.CashPlanningGroup = _CashPlanningGroupText.CashPlanningGroup |
| [0..*] | I_PlanningLevelText | _PlanningLevelText | $projection.PlanningLevel = _PlanningLevelText.PlanningLevel |
| [0..*] | I_BankAccountText | _BankAccountText | $projection.BankAccountInternalID = _BankAccountText.BankAccountInternalID |
| [0..*] | I_SourceApplicationText | _SourceApplicationText | $projection.OriginApplication = _SourceApplicationText.SourceApplication |
| [0..*] | I_CertaintyLevelText | _CertaintyLevelText | $projection.CertaintyLevel = _CertaintyLevelText.CertaintyLevel |
| [0..1] | I_User | _CreatedBy | $projection.CreatedByUser = _CreatedBy.UserID |
| [0..1] | I_User | _ChangedBy | $projection.LastChangedByUser = _ChangedBy.UserID |
| [0..1] | I_PaymentBatchItem | _PaymentBatchItem | $projection.AccountingDocument = _PaymentBatchItem.AccountingDocument and $projection.CompanyCode = _PaymentBatchItem.CompanyCode and $projection.FiscalYear = _PaymentBatchItem.FiscalYear |
| [0..1] | I_OperationalAcctgDocItem | _OperationalAcctgDocItem | $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem |
| [0..1] | I_PaymentOrder | _PaymentOrder | $projection.OriginDocument = _PaymentOrder.PaymentOrder and $projection.CertaintyLevel = 'PYORD' |
| [0..1] | I_PaymentOrderItem | _PaymentOrderItem | $projection.OriginDocument = _PaymentOrderItem.PaymentOrder and $projection.CompanyCode = _PaymentOrderItem.CompanyCode and $projection.AccountingDocument = _PaymentOrderItem.AccountingDocument and $projection.FiscalYear = _PaymentOrderItem.FiscalYear and $projection.AccountingDocumentItem = _PaymentOrderItem.AccountingDocumentItem |
| [0..1] | I_CashFlowByScopeForAccounting | _PaymentRequest | $projection.OriginApplication = _PaymentRequest.OriginApplication and $projection.OriginDocument = _PaymentRequest.OriginDocument and $projection.OriginSystem = _PaymentRequest.OriginSystem and $projection.OriginTransaction = _PaymentRequest.OriginTransaction and $projection.ValidFrom = _PaymentRequest.ValidFrom and $projection.ValidTo = _PaymentRequest.ValidTo and $projection.TransactionDate = _PaymentRequest.TransactionDate and $projection.CashFlowScopeForAccounting = _PaymentRequest.CashFlowScopeForAccounting and $projection.OriginTransactionQualifier <> _PaymentRequest.OriginTransactionQualifier and _PaymentRequest.CashFlow = '' and _PaymentRequest.CertaintyLevel = 'PAYRQ' and $projection.CertaintyLevel = 'PAYRQ' |
| [0..1] | I_PromiseToPay | _PromiseToPay | $projection.OriginTransactionValue = _PromiseToPay.DisputeCaseUUID and $projection.CertaintyLevel = 'FIP2P' |
| [0..1] | I_PlanningLevel | _PlanningLevel | $projection.PlanningLevel = _PlanningLevel.PlanningLevel |
| [0..*] | I_FinancialAccountTypeText | _FinancialAccountTypeText | $projection.FinancialAccountType = _FinancialAccountTypeText.FinancialAccountType |
| [0..*] | I_GlAccountTextInCompanycode | _GLAccountText | $projection.CompanyCode = _GLAccountText.CompanyCode and $projection.glaccount = _GLAccountText.GLAccount |
| [0..*] | I_AccountingDocumentTypeText | _AccountingDocumentTypeText | $projection.accountingdocumenttype = _AccountingDocumentTypeText.AccountingDocumentType |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Cash Flow Items | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.writeDraftPersistence | ICCFITPDRAFT | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.sapObjectNodeType.name | CashFlow | view | |
| ObjectModel.entityChangeStateId | LastChangeDateTime | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OriginSystem | flow | OriginSystem | LogSys: Formula |
| KEY | OriginTransactionValue | OriginTransaction | ||
| KEY | OriginApplication | flow | OriginApplication | Origin Application |
| KEY | OriginDocument | |||
| KEY | OriginFlowID | |||
| KEY | CashFlowSnapshotValue | |||
| KEY | TransactionDate | flow | TransactionDate | Value Date |
| KEY | OriginTransactionQualifier | flow | OriginTransactionQualifier | |
| KEY | CashFlowScopeForAccounting | flow | CashFlowScopeForAccounting | |
| SourceApplication | flow | OriginApplication | Origin Application | |
| OriginDocumentValue | ||||
| OriginTransaction | flow | OriginTransaction | ||
| CashFlowID | ||||
| ValidFrom | flow | ValidFrom | Vers.Valid From | |
| ValidTo | flow | ValidTo | Vers.Valid To | |
| CreatedByUser | flow | CreatedByUser | User Name | |
| LastChangedByUser | flow | LastChangedByUser | User Name | |
| LastChangeDateTime | flow | LastChangeDateTime | Timestamp | |
| IsValid | flow | IsValid | Truth Value | |
| CashTransactionOwner | flow | CashTransactionOwner | ||
| CompanyCode | flow | CompanyCode | Receiver Company Code | |
| CertaintyLevel | flow | CertaintyLevel | ||
| TransactionCurrency | flow | TransactionCurrency | Transaction Currency | |
| CompanyCodeCurrency | flow | CompanyCodeCurrency | Local Currency | |
| CashReleaseStatus | flow | CashReleaseStatus | ||
| OpenAmountInTransCrcy | ||||
| FiscalYear | flow | FiscalYear | G/L Fiscal Year | |
| AccountingDocument | flow | AccountingDocument | Journal Entry | |
| AccountingDocumentItem | flow | AccountingDocumentItem | Posting View Item | |
| AccountingDocumentType | ||||
| PaymentMethod | _OperationalAcctgDocItem | PaymentMethod | Pymt Meth. | |
| GLAccount | _OperationalAcctgDocItem | GLAccount | General Ledger | |
| DocumentItemText | _OperationalAcctgDocItem | DocumentItemText | Text | |
| PostingDate | ||||
| CashPlanningGroup | flow | CashPlanningGroup | Planning Group | |
| PlanningLevel | flow | PlanningLevel | Planning Level | |
| BankAccountRevision | ||||
| BankStatementShortID | ||||
| BankStatementItem | ||||
| Supplier | ||||
| Customer | ||||
| BusinessPartner | ||||
| SendingCompanyCode | ||||
| PaymentOrigin | ||||
| OffsettingCompanyCode | ||||
| OffsettingPlanningLevel | ||||
| OffsettingAccount | ||||
| OffsettingValueDate | ||||
| OffsettingCompanyCodeName | ||||
| OffsettingPlanningLevelName | ||||
| PaymentRunDate | _PaymentOrder | PaymentRunDate | ||
| PaymentRunID | _PaymentOrder | PaymentRunID | ||
| DirectDebitPreNotification | _PaymentOrder | DirectDebitPreNotification | ||
| OpenItemAccountNumber | _PaymentOrderItem | OpenItemAccountNumber | ||
| ProductType | ||||
| FinancialTransactionType | ||||
| SecurityClass | ||||
| SecurityAccount | ||||
| AssetContract | ||||
| Portfolio | ||||
| ExpirationDate | ||||
| PartnerCompany | ||||
| HouseBank | ||||
| HouseBankAccount | ||||
| BankAccountInternalID | ||||
| BankAccountCurrency | ||||
| _SubItem | _SubItem | |||
| _PromiseToPay | _PromiseToPay | |||
| _PaymentBatchItem | _PaymentBatchItem | |||
| _PaymentOrder | _PaymentOrder | |||
| _PaymentOrderItem | _PaymentOrderItem | |||
| _PaymentRequest | _PaymentRequest | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _CompanyCode | _CompanyCode | |||
| _Currency | _Currency | |||
| _CashPlanningGroup | _CashPlanningGroup | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _PlanningLevel | _PlanningLevel | |||
| _AccountingDocument | _AccountingDocument | |||
| _CertaintyLevelText | _CertaintyLevelText | |||
| _AccTypeText | _AccTypeText | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _SourceApplicationText | _SourceApplicationText | |||
| _CashPlanningGroupText | _CashPlanningGroupText | |||
| _PlanningLevelText | _PlanningLevelText | |||
| _FinancialAccountTypeText | _FinancialAccountTypeText | |||
| _GLAccountText | _GLAccountText | |||
| _AccountingDocumentTypeText | _AccountingDocumentTypeText |
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_CashFlowItemTP.
-- 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.
CREATE VIEW I_CashFlowItemTP AS
SELECT
flow.OriginSystem AS OriginSystem,
OriginTransaction AS OriginTransactionValue,
flow.OriginApplication AS OriginApplication,
cast(flow.OriginDocument as fclm_cp_doc_id preserving type ) AS OriginDocument,
cast(case when flow.CertaintyLevel = 'PYORD' then flow.CashFlow else flow.AccountingDocumentItem end as fqm_origin_flow_id) AS OriginFlowID,
cast(flow.ValidFrom as abap.char(27)) AS CashFlowSnapshotValue,
flow.TransactionDate AS TransactionDate,
flow.OriginTransactionQualifier AS OriginTransactionQualifier,
flow.CashFlowScopeForAccounting AS CashFlowScopeForAccounting,
flow.OriginApplication AS SourceApplication,
cast(flow.AccountingDocument as fclm_cp_doc_id ) AS OriginDocumentValue,
flow.OriginTransaction AS OriginTransaction,
case when flow.OriginApplication = 'CMMRD' and (flow.CertaintyLevel = 'MEMO' or flow.CertaintyLevel = 'CSHRQ' ) then flow.CashFlowID end AS CashFlowID,
flow.ValidFrom AS ValidFrom,
flow.ValidTo AS ValidTo,
flow.CreatedByUser AS CreatedByUser,
flow.LastChangedByUser AS LastChangedByUser,
flow.LastChangeDateTime AS LastChangeDateTime,
flow.IsValid AS IsValid,
flow.CashTransactionOwner AS CashTransactionOwner,
flow.CompanyCode AS CompanyCode,
flow.CertaintyLevel AS CertaintyLevel,
flow.TransactionCurrency AS TransactionCurrency,
flow.CompanyCodeCurrency AS CompanyCodeCurrency,
flow.CashReleaseStatus AS CashReleaseStatus,
cast(0 as fclm_cp_trans_amount) AS OpenAmountInTransCrcy,
flow.FiscalYear AS FiscalYear,
flow.AccountingDocument AS AccountingDocument,
flow.AccountingDocumentItem AS AccountingDocumentItem,
flow._AccountingDocument.AccountingDocumentType AS AccountingDocumentType,
_OperationalAcctgDocItem.PaymentMethod AS PaymentMethod,
_OperationalAcctgDocItem.GLAccount AS GLAccount,
_OperationalAcctgDocItem.DocumentItemText AS DocumentItemText,
flow._AccountingDocument.PostingDate AS PostingDate,
flow.CashPlanningGroup AS CashPlanningGroup,
flow.PlanningLevel AS PlanningLevel,
cast('0000' as fclm_revision preserving type ) AS BankAccountRevision,
cast('' as abap.char(8)) AS BankStatementShortID,
cast('' as abap.char(5)) AS BankStatementItem,
' ' AS Supplier,
case when flow.CertaintyLevel = 'FIP2P' then flow.Customer end AS Customer,
cast('' as bu_partner) AS BusinessPartner,
cast('' as bukrs) AS SendingCompanyCode,
' ' AS PaymentOrigin,
cast('' as bukrs) AS OffsettingCompanyCode,
cast('' as fdlev) AS OffsettingPlanningLevel,
cast('' as hkont) AS OffsettingAccount,
cast('00000000' as fqm_transaction_date) AS OffsettingValueDate,
cast('' as butxt) AS OffsettingCompanyCodeName,
cast('' as etxtl) AS OffsettingPlanningLevelName,
_PaymentOrder.PaymentRunDate AS PaymentRunDate,
_PaymentOrder.PaymentRunID AS PaymentRunID,
_PaymentOrder.DirectDebitPreNotification AS DirectDebitPreNotification,
_PaymentOrderItem.OpenItemAccountNumber AS OpenItemAccountNumber,
cast('' as vvsart) AS ProductType,
cast('' as tb_sfhaart) AS FinancialTransactionType,
cast('' as vvranlw) AS SecurityClass,
cast('' as rldepo) AS SecurityAccount,
cast('' as vertnr) AS AssetContract,
cast('' as rportb) AS Portfolio,
cast('' as abap.dats) AS ExpirationDate,
cast('' as rassc ) AS PartnerCompany,
cast('' as hbkid) AS HouseBank,
cast('' as hktid ) AS HouseBankAccount,
cast('' as fclm_bam_acc_id) AS BankAccountInternalID,
cast('' as fclm_bank_acct_currency) AS BankAccountCurrency
LEFT OUTER JOIN I_CashFlowSubItemTP AS _SubItem ON OriginSystem = _SubItem.OriginSystem AND OriginTransactionValue = _SubItem.OriginTransactionValue AND OriginApplication = _SubItem.OriginApplication AND OriginDocument = _SubItem.OriginDocument AND OriginFlowID = _SubItem.OriginFlowID AND CashFlowSnapshotValue = _SubItem.CashFlowSnapshotValue AND TransactionDate = _SubItem.TransactionDate AND OriginTransactionQualifier = _SubItem.OriginTransactionQualifier AND CashFlowScopeForAccounting = _SubItem.CashFlowScopeForAccounting -- association [0..*]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_FinancialAccountType AS _AccTypeText ON FinancialAccountType = _AccTypeText.FinancialAccountType -- association [0..1]
LEFT OUTER JOIN I_CashPlanningGroupText AS _CashPlanningGroupText ON CashPlanningGroup = _CashPlanningGroupText.CashPlanningGroup -- association [0..*]
LEFT OUTER JOIN I_PlanningLevelText AS _PlanningLevelText ON PlanningLevel = _PlanningLevelText.PlanningLevel -- association [0..*]
LEFT OUTER JOIN I_BankAccountText AS _BankAccountText ON BankAccountInternalID = _BankAccountText.BankAccountInternalID -- association [0..*]
LEFT OUTER JOIN I_SourceApplicationText AS _SourceApplicationText ON OriginApplication = _SourceApplicationText.SourceApplication -- association [0..*]
LEFT OUTER JOIN I_CertaintyLevelText AS _CertaintyLevelText ON CertaintyLevel = _CertaintyLevelText.CertaintyLevel -- association [0..*]
LEFT OUTER JOIN I_User AS _CreatedBy ON CreatedByUser = _CreatedBy.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedBy ON LastChangedByUser = _ChangedBy.UserID -- association [0..1]
LEFT OUTER JOIN I_PaymentBatchItem AS _PaymentBatchItem ON AccountingDocument = _PaymentBatchItem.AccountingDocument AND CompanyCode = _PaymentBatchItem.CompanyCode AND FiscalYear = _PaymentBatchItem.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON CompanyCode = _OperationalAcctgDocItem.CompanyCode AND AccountingDocument = _OperationalAcctgDocItem.AccountingDocument AND FiscalYear = _OperationalAcctgDocItem.FiscalYear AND AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_PaymentOrder AS _PaymentOrder ON OriginDocument = _PaymentOrder.PaymentOrder AND CertaintyLevel = 'PYORD' -- association [0..1]
LEFT OUTER JOIN I_PaymentOrderItem AS _PaymentOrderItem ON OriginDocument = _PaymentOrderItem.PaymentOrder AND CompanyCode = _PaymentOrderItem.CompanyCode AND AccountingDocument = _PaymentOrderItem.AccountingDocument AND FiscalYear = _PaymentOrderItem.FiscalYear AND AccountingDocumentItem = _PaymentOrderItem.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_CashFlowByScopeForAccounting AS _PaymentRequest ON OriginApplication = _PaymentRequest.OriginApplication AND OriginDocument = _PaymentRequest.OriginDocument AND OriginSystem = _PaymentRequest.OriginSystem AND OriginTransaction = _PaymentRequest.OriginTransaction AND ValidFrom = _PaymentRequest.ValidFrom AND ValidTo = _PaymentRequest.ValidTo AND TransactionDate = _PaymentRequest.TransactionDate AND CashFlowScopeForAccounting = _PaymentRequest.CashFlowScopeForAccounting AND OriginTransactionQualifier <> _PaymentRequest.OriginTransactionQualifier AND _PaymentRequest.CashFlow = '' AND _PaymentRequest.CertaintyLevel = 'PAYRQ' AND CertaintyLevel = 'PAYRQ' -- association [0..1]
LEFT OUTER JOIN I_PromiseToPay AS _PromiseToPay ON OriginTransactionValue = _PromiseToPay.DisputeCaseUUID AND CertaintyLevel = 'FIP2P' -- association [0..1]
LEFT OUTER JOIN I_PlanningLevel AS _PlanningLevel ON PlanningLevel = _PlanningLevel.PlanningLevel -- association [0..1]
LEFT OUTER JOIN I_FinancialAccountTypeText AS _FinancialAccountTypeText ON FinancialAccountType = _FinancialAccountTypeText.FinancialAccountType -- association [0..*]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _GLAccountText ON CompanyCode = _GLAccountText.CompanyCode AND glaccount = _GLAccountText.GLAccount -- association [0..*]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _AccountingDocumentTypeText ON accountingdocumenttype = _AccountingDocumentTypeText.AccountingDocumentType -- association [0..*]
;
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