I_CashFlowItem
Cash Flow Items
I_CashFlowItem is a Composite CDS View that provides data about "Cash Flow Items" in SAP S/4HANA. It reads from 2 data sources (I_CashFlowByScopeForAccounting, P_UnrealizedCrcyDiffFilter) and exposes 205 fields with key fields CashFlowScopeForAccounting, OriginApplication, OriginDocument, OriginTransaction, OriginTransactionQualifier. It has 35 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CashFlowByScopeForAccounting | flow | from |
| P_UnrealizedCrcyDiffFilter | flow | union_all |
Associations (35)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CashReconciliationsFlow | _ReconciliationStatus | $projection.CashFlowID = _ReconciliationStatus.CashFlowID and $projection.ValidFrom = _ReconciliationStatus.ValidFrom |
| [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.OriginTransaction = _PromiseToPay.DisputeCaseUUID and $projection.CertaintyLevel = 'FIP2P' |
| [0..1] | I_PaymentBatchItem | _PaymentBatchItem | $projection.AccountingDocument = _PaymentBatchItem.AccountingDocument and $projection.CompanyCode = _PaymentBatchItem.CompanyCode and $projection.FiscalYear = _PaymentBatchItem.FiscalYear |
| [0..1] | I_Arbankstatement | _BankStatement | $projection.BankStatementShortID = _BankStatement.BankStatementShortID |
| [0..1] | I_Arbankstatementitem | _BankStatementItem | $projection.BankStatementShortID = _BankStatementItem.BankStatementShortID and $projection.BankStatementItem = _BankStatementItem.BankStatementItem |
| [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_OperationalAcctgDocItem | _OperationalAcctgDocItem | $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocumentItem = _OperationalAcctgDocItem.AccountingDocumentItem |
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_FinancialAccountType | _AccTypeText | $projection.FinancialAccountType = _AccTypeText.FinancialAccountType |
| [0..1] | I_User | _CreatedBy | $projection.CreatedByUser = _CreatedBy.UserID |
| [0..1] | I_User | _ChangedBy | $projection.LastChangedByUser = _ChangedBy.UserID |
| [0..1] | I_CashReleaseStatusText | _CashReleaseStatus | $projection.CashReleaseStatus = _CashReleaseStatus.CashReleaseStatus |
| [0..*] | I_LiquidityItemText | _LiquidityItemText | $projection.LiquidityItem = _LiquidityItemText.LiquidityItem |
| [0..*] | I_CertaintyLevelText | _CertaintyLevelText | $projection.CertaintyLevel = _CertaintyLevelText.CertaintyLevel |
| [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 |
| [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 |
| [0..1] | I_Fund | _Fund | _Fund.FinancialManagementArea = _CompanyCode.FinancialManagementArea and $projection.Fund = _Fund.Fund |
| [0..*] | I_FundText | _FundText | _FundText.FinancialManagementArea = _CompanyCode.FinancialManagementArea and $projection.Fund = _FundText.Fund |
| [0..1] | I_Grant | _Grant | $projection.GrantID = _Grant.GrantID |
| [0..*] | I_GrantText | _GrantText | $projection.GrantID = _GrantText.GrantID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICCFI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Cash Flow Items | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (205)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CashFlowScopeForAccounting | CashFlowScopeForAccounting | ||
| CashFlowSnapshotValue | ||||
| CreatedByUser | User Name | |||
| LastChangedByUser | User Name | |||
| TransactionDate | Value Date | |||
| AmountInTransactionCurrency | Pt Crcy Amt | |||
| CompanyCodeCurrency | Local Currency | |||
| AmountInCompanyCodeCurrency | Local Crcy Amt | |||
| AccountingDocument | Journal Entry | |||
| AccountingDocumentItem | Posting View Item | |||
| PostingDate | Posting Date for GR | |||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ExpirationDate | ExpirationDate | Expiratn Date | ||
| CashFlow13endasOriginFlowID | ||||
| PromiseToPayCurrency | ||||
| _CompanyCode | _CompanyCode | |||
| _BankAccount | _BankAccount | |||
| _Currency | _Currency | |||
| _CashPlanningGroup | _CashPlanningGroup | |||
| _PlanningLevel | _PlanningLevel | |||
| _LiquidityItem | _LiquidityItem | |||
| _GLAccount | _GLAccount | |||
| _WBSElement | _WBSElement | |||
| _SourceCompanyCode | _SourceCompanyCode | |||
| _AccountingDocument | _AccountingDocument | |||
| _PaymentRequest | _PaymentRequest | |||
| _PaymentOrder | _PaymentOrder | |||
| _PaymentOrderItem | _PaymentOrderItem | |||
| _PromiseToPay | _PromiseToPay | |||
| _BankStatement | _BankStatement | |||
| _BankStatementItem | _BankStatementItem | |||
| _PaymentBatchItem | _PaymentBatchItem | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _ReconciliationStatus | _ReconciliationStatus | |||
| _CashReleaseStatus | _CashReleaseStatus | |||
| _AccTypeText | _AccTypeText | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _LiquidityItemText | _LiquidityItemText | |||
| _CertaintyLevelText | _CertaintyLevelText | |||
| _PlanningLevelText | _PlanningLevelText | |||
| _CashPlanningGroupText | _CashPlanningGroupText | |||
| _BankAccountText | _BankAccountText | |||
| _SourceApplicationText | _SourceApplicationText | |||
| _Fund | _Fund | |||
| _FundText | _FundText | |||
| _Grant | _Grant | |||
| GrantIDkeyOriginSystem | ||||
| KEY | OriginApplication | OriginApplication | Origin Application | |
| KEY | OriginDocument | OriginDocument | ||
| KEY | OriginTransaction | OriginTransaction | ||
| KEY | OriginTransactionQualifier | OriginTransactionQualifier | ||
| KEY | CashFlow | CashFlow | ||
| KEY | ValidFrom | ValidFrom | Vers.Valid From | |
| KEY | ValidTo | ValidTo | Vers.Valid To | |
| KEY | CashFlowScopeForAccounting | CashFlowScopeForAccounting | ||
| KEY | CashFlowID | CashFlowID | Flow ID | |
| CashFlowSnapshotValue | CashFlowSnapshotValue | |||
| IsValid | IsValid | Truth Value | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| CashTransactionOwner | CashTransactionOwner | Vehicle Owner | ||
| TransactionDate | TransactionDate | Value Date | ||
| CertaintyLevel | CertaintyLevel | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| BankAccountCurrency | BankAccountCurrency | Currency | ||
| CashReleaseStatus | CashReleaseStatus | Release Status | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| SourceCompanyCode | SourceCompanyCode | |||
| FinancialInstrumentProductType | FinancialInstrumentProductType | Product Type Group | ||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| SecurityClass | SecurityClass | |||
| SecurityAccount | SecurityAccount | |||
| AssetContract | AssetContract | Asset Contract | ||
| Portfolio | Portfolio | Portfolio | ||
| ExpirationDate | ExpirationDate | Expiratn Date | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| OriginTransactionValue | OriginTransactionValue | |||
| OriginFlowID | OriginFlowID | |||
| OriginDocumentValue | OriginDocumentValue | |||
| BankStatementShortID | BankStatementShortID | Statement Short Key | ||
| BankStatementItem | BankStatementItem | Memo Record No. | ||
| PromiseToPayCurrency | ||||
| _CompanyCode | _CompanyCode | |||
| _BankAccount | _BankAccount | |||
| _Currency | _Currency | |||
| _CashPlanningGroup | _CashPlanningGroup | |||
| _PlanningLevel | _PlanningLevel | |||
| _LiquidityItem | _LiquidityItem | |||
| _GLAccount | _GLAccount | |||
| _WBSElement | _WBSElement | |||
| _SourceCompanyCode | _SourceCompanyCode | |||
| _AccountingDocument | _AccountingDocument | |||
| _PaymentRequest | _PaymentRequest | |||
| _PaymentOrder | _PaymentOrder | |||
| _PaymentOrderItem | _PaymentOrderItem | |||
| _PromiseToPay | _PromiseToPay | |||
| _BankStatement | _BankStatement | |||
| _BankStatementItem | _BankStatementItem | |||
| _PaymentBatchItem | _PaymentBatchItem | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _ReconciliationStatus | _ReconciliationStatus | |||
| _CashReleaseStatus | _CashReleaseStatus | |||
| _AccTypeText | _AccTypeText | |||
| _CreatedBy | _CreatedBy | |||
| _ChangedBy | _ChangedBy | |||
| _LiquidityItemText | _LiquidityItemText | |||
| _CertaintyLevelText | _CertaintyLevelText | |||
| _PlanningLevelText | _PlanningLevelText | |||
| _CashPlanningGroupText | _CashPlanningGroupText | |||
| _BankAccountText | _BankAccountText | |||
| _SourceApplicationText | _SourceApplicationText | |||
| _Fund | _Fund | |||
| _FundText | _FundText | |||
| _Grant | _Grant | |||
| _GrantText | _GrantText | |||
| KEY | OriginSystem | P_UnrealizedCrcyDiffFilter | OriginSystem | LogSys: Formula |
| KEY | OriginDocument | P_UnrealizedCrcyDiffFilter | OriginDocument | |
| KEY | OriginTransaction | P_UnrealizedCrcyDiffFilter | OriginTransaction | |
| KEY | OriginTransactionQualifier | P_UnrealizedCrcyDiffFilter | OriginTransactionQualifier | |
| KEY | CashFlow | P_UnrealizedCrcyDiffFilter | CashFlow | |
| KEY | ValidFrom | P_UnrealizedCrcyDiffFilter | ValidFrom | Vers.Valid From |
| KEY | ValidTo | P_UnrealizedCrcyDiffFilter | ValidTo | Vers.Valid To |
| KEY | CashFlowID | P_UnrealizedCrcyDiffFilter | CashFlowID | Flow ID |
| IsValid | P_UnrealizedCrcyDiffFilter | IsValid | Truth Value | |
| CreationDateTime | P_UnrealizedCrcyDiffFilter | CreationDateTime | Timestamp | |
| LastChangeDateTime | P_UnrealizedCrcyDiffFilter | LastChangeDateTime | Timestamp | |
| CashTransactionOwner | P_UnrealizedCrcyDiffFilter | CashTransactionOwner | Vehicle Owner | |
| CompanyCode | P_UnrealizedCrcyDiffFilter | CompanyCode | Receiver Company Code | |
| CertaintyLevel | P_UnrealizedCrcyDiffFilter | CertaintyLevel | ||
| TransactionCurrency | P_UnrealizedCrcyDiffFilter | TransactionCurrency | Transaction Currency | |
| CashReleaseStatus | P_UnrealizedCrcyDiffFilter | CashReleaseStatus | Release Status | |
| FiscalYear | P_UnrealizedCrcyDiffFilter | FiscalYear | G/L Fiscal Year | |
| PostingFiscalPeriod | P_UnrealizedCrcyDiffFilter | PostingFiscalPeriod | Period | |
| AccountingDocumentType | P_UnrealizedCrcyDiffFilter | AccountingDocumentType | Journal Entry Type | |
| PaymentMethod | P_UnrealizedCrcyDiffFilter | PaymentMethod | Pymt Meth. | |
| GLAccount | P_UnrealizedCrcyDiffFilter | GLAccount | General Ledger | |
| FinancialAccountType | P_UnrealizedCrcyDiffFilter | FinancialAccountType | Fin. Account Type | |
| DocumentItemText | P_UnrealizedCrcyDiffFilter | DocumentItemText | Text | |
| CashPlanningGroup | P_UnrealizedCrcyDiffFilter | CashPlanningGroup | Planning Group | |
| PlanningLevel | P_UnrealizedCrcyDiffFilter | PlanningLevel | Planning Level | |
| DocumentDate | P_UnrealizedCrcyDiffFilter | DocumentDate | Value Date | |
| HouseBank | P_UnrealizedCrcyDiffFilter | HouseBank | House Bank | |
| HouseBankAccount | P_UnrealizedCrcyDiffFilter | HouseBankAccount | House Bank Account | |
| BankAccountInternalID | P_UnrealizedCrcyDiffFilter | BankAccountInternalID | Technical ID | |
| Customer | P_UnrealizedCrcyDiffFilter | Customer | Sold-to Party | |
| Supplier | P_UnrealizedCrcyDiffFilter | Supplier | Supplier | |
| BusinessPartner | P_UnrealizedCrcyDiffFilter | BusinessPartner | Issuing Authority | |
| Material | P_UnrealizedCrcyDiffFilter | Material | Vehicle Model | |
| BusinessArea | P_UnrealizedCrcyDiffFilter | BusinessArea | Business Area | |
| ProfitCenter | P_UnrealizedCrcyDiffFilter | ProfitCenter | Profit Center | |
| PartnerCompany | P_UnrealizedCrcyDiffFilter | PartnerCompany | Trading Partner | |
| CostCenter | P_UnrealizedCrcyDiffFilter | CostCenter | Cost Center | |
| Segment | P_UnrealizedCrcyDiffFilter | Segment | Segment number | |
| LiquidityItem | P_UnrealizedCrcyDiffFilter | LiquidityItem | Liquidity Item | |
| SourceCompanyCode | P_UnrealizedCrcyDiffFilter | SourceCompanyCode | ||
| Fund | P_UnrealizedCrcyDiffFilter | Fund | Sender Fund | |
| GrantID | P_UnrealizedCrcyDiffFilter | GrantID | Sender Grant | |
| FinancialInstrumentProductType | P_UnrealizedCrcyDiffFilter | FinancialInstrumentProductType | Product Type Group | |
| FinancialTransactionType | P_UnrealizedCrcyDiffFilter | FinancialTransactionType | Transact. Type | |
| SecurityClass | P_UnrealizedCrcyDiffFilter | SecurityClass | ||
| SecurityAccount | P_UnrealizedCrcyDiffFilter | SecurityAccount | ||
| AssetContract | P_UnrealizedCrcyDiffFilter | AssetContract | Asset Contract | |
| Portfolio | P_UnrealizedCrcyDiffFilter | Portfolio | Portfolio | |
| NetDueDate | P_UnrealizedCrcyDiffFilter | NetDueDate | Net Due Date | |
| CompanyCode | P_UnrealizedCrcyDiffFilter | CompanyCode | Receiver Company Code | |
| TransactionCurrency | P_UnrealizedCrcyDiffFilter | TransactionCurrency | Transaction Currency | |
| FiscalYear | P_UnrealizedCrcyDiffFilter | FiscalYear | G/L Fiscal Year | |
| PostingFiscalPeriod | P_UnrealizedCrcyDiffFilter | PostingFiscalPeriod | Period | |
| AccountingDocumentType | P_UnrealizedCrcyDiffFilter | AccountingDocumentType | Journal Entry Type | |
| GLAccount | P_UnrealizedCrcyDiffFilter | GLAccount | General Ledger | |
| FinancialAccountType | P_UnrealizedCrcyDiffFilter | FinancialAccountType | Fin. Account Type | |
| DocumentItemText | P_UnrealizedCrcyDiffFilter | DocumentItemText | Text | |
| CashPlanningGroup | P_UnrealizedCrcyDiffFilter | CashPlanningGroup | Planning Group | |
| PlanningLevel | P_UnrealizedCrcyDiffFilter | PlanningLevel | Planning Level | |
| DocumentDate | P_UnrealizedCrcyDiffFilter | TransactionDate | Value Date | |
| HouseBank | P_UnrealizedCrcyDiffFilter | HouseBank | House Bank | |
| HouseBankAccount | P_UnrealizedCrcyDiffFilter | HouseBankAccount | House Bank Account | |
| BankAccountInternalID | P_UnrealizedCrcyDiffFilter | BankAccountInternalID | Technical ID | |
| Customer | P_UnrealizedCrcyDiffFilter | Customer | Sold-to Party | |
| Supplier | P_UnrealizedCrcyDiffFilter | Supplier | Supplier | |
| BusinessPartner | P_UnrealizedCrcyDiffFilter | BusinessPartner | Issuing Authority | |
| Material | P_UnrealizedCrcyDiffFilter | Material | Vehicle Model | |
| BusinessArea | P_UnrealizedCrcyDiffFilter | BusinessArea | Business Area | |
| ProfitCenter | P_UnrealizedCrcyDiffFilter | ProfitCenter | Profit Center | |
| PartnerCompany | P_UnrealizedCrcyDiffFilter | PartnerCompany | Trading Partner | |
| CostCenter | P_UnrealizedCrcyDiffFilter | CostCenter | Cost Center | |
| Segment | P_UnrealizedCrcyDiffFilter | Segment | Segment number | |
| LiquidityItem | P_UnrealizedCrcyDiffFilter | LiquidityItem | Liquidity Item | |
| Fund | P_UnrealizedCrcyDiffFilter | Fund | Sender Fund | |
| GrantID | P_UnrealizedCrcyDiffFilter | GrantID | Sender Grant | |
| FinancialManagementArea | _CompanyCode | FinancialManagementArea | FM Area | |
| FinancialManagementArea | _CompanyCode | FinancialManagementArea | FM Area |
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_CashFlowItem.
-- 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: ICCFI
CREATE VIEW I_CashFlowItem AS
SELECT
CashFlowScopeForAccounting,
cast(flow.ValidFrom as abap.char(27)) AS CashFlowSnapshotValue,
cast(flow.CreatedByUser as fclm_bam_created_by) AS CreatedByUser,
cast(flow.LastChangedByUser as fclm_bam_lastchgby) AS LastChangedByUser,
cast(flow.TransactionDate as valut preserving type ) AS TransactionDate,
cast(flow.AmountInTransactionCurrency as fclm_cp_trans_amount preserving type ) AS AmountInTransactionCurrency,
cast(flow.CompanyCodeCurrency as fclm_cp_local_waers preserving type ) AS CompanyCodeCurrency,
cast(flow.AmountInCompanyCodeCurrency as fclm_cp_local_amount preserving type ) AS AmountInCompanyCodeCurrency,
cast(flow.AccountingDocument as fis_belnr preserving type ) AS AccountingDocument,
cast(flow.AccountingDocumentItem as fclm_cp_buzei preserving type ) AS AccountingDocumentItem,
cast(case when flow.PostingDate = '' then '00000000' else flow.PostingDate end as budat ) AS PostingDate,
WBSElementInternalID,
ExpirationDate,
case when flow.CertaintyLevel = 'PAYRQ' then flow.OriginTransactionQualifier when flow.CertaintyLevel = 'PYORD' then flow.CashFlow when flow.CashTransactionOwner = 'AGG' then flow.CashFlow else substring(flow.CashFlow, 1, 3) end as OriginFlowID AS CashFlow13endasOriginFlowID,
cast(coalesce(_PromiseToPay.Currency,'') as bdm_promise_curr) AS PromiseToPayCurrency,
OriginApplication,
OriginDocument,
OriginTransaction,
OriginTransactionQualifier,
CashFlow,
ValidFrom,
ValidTo,
CashFlowID,
IsValid,
CreationDateTime,
LastChangeDateTime,
CashTransactionOwner,
CertaintyLevel,
BankAccountCurrency,
CashReleaseStatus,
PaymentMethod,
SourceCompanyCode,
FinancialInstrumentProductType,
FinancialTransactionType,
SecurityClass,
SecurityAccount,
AssetContract,
Portfolio,
NetDueDate,
OriginTransactionValue,
OriginFlowID,
OriginDocumentValue,
BankStatementShortID,
BankStatementItem,
flow.OriginSystem AS OriginSystem,
flow.CompanyCode AS CompanyCode,
flow.TransactionCurrency AS TransactionCurrency,
flow.FiscalYear AS FiscalYear,
flow.PostingFiscalPeriod AS PostingFiscalPeriod,
flow.AccountingDocumentType AS AccountingDocumentType,
flow.GLAccount AS GLAccount,
flow.FinancialAccountType AS FinancialAccountType,
flow.DocumentItemText AS DocumentItemText,
flow.CashPlanningGroup AS CashPlanningGroup,
flow.PlanningLevel AS PlanningLevel,
flow.DocumentDate AS DocumentDate,
flow.HouseBank AS HouseBank,
flow.HouseBankAccount AS HouseBankAccount,
flow.BankAccountInternalID AS BankAccountInternalID,
flow.Customer AS Customer,
flow.Supplier AS Supplier,
flow.BusinessPartner AS BusinessPartner,
flow.Material AS Material,
flow.BusinessArea AS BusinessArea,
flow.ProfitCenter AS ProfitCenter,
flow.PartnerCompany AS PartnerCompany,
flow.CostCenter AS CostCenter,
flow.Segment AS Segment,
flow.LiquidityItem AS LiquidityItem,
flow.Fund AS Fund,
flow.GrantID AS GrantID,
_CompanyCode.FinancialManagementArea AS FinancialManagementArea
FROM I_CashFlowByScopeForAccounting AS flow
LEFT OUTER JOIN I_CashReconciliationsFlow AS _ReconciliationStatus ON CashFlowID = _ReconciliationStatus.CashFlowID AND ValidFrom = _ReconciliationStatus.ValidFrom -- association [0..*]
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 OriginTransaction = _PromiseToPay.DisputeCaseUUID AND CertaintyLevel = 'FIP2P' -- 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_Arbankstatement AS _BankStatement ON BankStatementShortID = _BankStatement.BankStatementShortID -- association [0..1]
LEFT OUTER JOIN I_Arbankstatementitem AS _BankStatementItem ON BankStatementShortID = _BankStatementItem.BankStatementShortID AND BankStatementItem = _BankStatementItem.BankStatementItem -- 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_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_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN I_FinancialAccountType AS _AccTypeText ON FinancialAccountType = _AccTypeText.FinancialAccountType -- association [0..1]
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_CashReleaseStatusText AS _CashReleaseStatus ON CashReleaseStatus = _CashReleaseStatus.CashReleaseStatus -- association [0..1]
LEFT OUTER JOIN I_LiquidityItemText AS _LiquidityItemText ON LiquidityItem = _LiquidityItemText.LiquidityItem -- association [0..*]
LEFT OUTER JOIN I_CertaintyLevelText AS _CertaintyLevelText ON CertaintyLevel = _CertaintyLevelText.CertaintyLevel -- association [0..*]
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_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]
LEFT OUTER JOIN I_Fund AS _Fund ON _Fund.FinancialManagementArea = _CompanyCode.FinancialManagementArea AND Fund = _Fund.Fund -- association [0..1]
LEFT OUTER JOIN I_FundText AS _FundText ON _FundText.FinancialManagementArea = _CompanyCode.FinancialManagementArea AND Fund = _FundText.Fund -- association [0..*]
LEFT OUTER JOIN I_Grant AS _Grant ON GrantID = _Grant.GrantID -- association [0..1]
LEFT OUTER JOIN I_GrantText AS _GrantText ON GrantID = _GrantText.GrantID -- association [0..*]
-- UNION ALL with additional select branch(es): P_UnrealizedCrcyDiffFilter
;
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