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 220 fields with key fields OriginSystem, OriginDocument, OriginTransaction, OriginTransactionQualifier, CashFlow. It has 38 associations to related views. Part of development package ODATA_PAYMENTDETAILS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CashFlowByScopeForAccounting | flow | from |
| P_UnrealizedCrcyDiffFilter | flow | union_all |
Associations (38)
| 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 | $projection.financialmanagementarea = _Fund.FinancialManagementArea and $projection.Fund = _Fund.Fund |
| [0..*] | I_FundText | _FundText | $projection.financialmanagementarea = _FundText.FinancialManagementArea and $projection.Fund = _FundText.Fund |
| [0..1] | I_Grant | _Grant | $projection.GrantID = _Grant.GrantID |
| [0..*] | I_GrantText | _GrantText | $projection.GrantID = _GrantText.GrantID |
| [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 (8)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Cash Flow Items | 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 (220)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | CashFlowScopeForAccounting | CashFlowScopeForAccounting | ||
| KEY | CashFlowID | P_UnrealizedCrcyDiffFilter | CashFlowID | Flow ID |
| CashFlowSnapshotValue | ||||
| IsValid | P_UnrealizedCrcyDiffFilter | IsValid | Truth Value | |
| CreatedByUser | User Name | |||
| CreationDateTime | P_UnrealizedCrcyDiffFilter | CreationDateTime | Timestamp | |
| LastChangedByUser | User Name | |||
| LastChangeDateTime | P_UnrealizedCrcyDiffFilter | LastChangeDateTime | Timestamp | |
| CashTransactionOwner | P_UnrealizedCrcyDiffFilter | CashTransactionOwner | Vehicle Owner | |
| CompanyCode | P_UnrealizedCrcyDiffFilter | CompanyCode | Receiver Company Code | |
| TransactionDate | Value Date | |||
| CertaintyLevel | P_UnrealizedCrcyDiffFilter | CertaintyLevel | ||
| TransactionCurrency | P_UnrealizedCrcyDiffFilter | TransactionCurrency | Transaction Currency | |
| AmountInTransactionCurrency | Pt Crcy Amt | |||
| CompanyCodeCurrency | Local Currency | |||
| AmountInCompanyCodeCurrency | Local Crcy Amt | |||
| CashReleaseStatus | P_UnrealizedCrcyDiffFilter | CashReleaseStatus | Release Status | |
| AccountingDocument | Journal Entry | |||
| AccountingDocumentItem | Posting View Item | |||
| 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 | |
| PostingDate | P_UnrealizedCrcyDiffFilter | PostingDate | Posting Date for GR | |
| 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 | |
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| 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 | |
| FinancialManagementArea | _CompanyCode | FinancialManagementArea | FM Area | |
| 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 | |
| RelatedOriginApplication | P_UnrealizedCrcyDiffFilter | RelatedOriginApplication | ||
| RelatedOriginTransactionID | P_UnrealizedCrcyDiffFilter | RelatedOriginTransactionID | ||
| TreasuryBusinessTransaction | ||||
| ExpirationDate | ExpirationDate | Expiratn Date | ||
| NetDueDate | P_UnrealizedCrcyDiffFilter | NetDueDate | Net Due Date | |
| MemoRecordExpirationDateTime | P_UnrealizedCrcyDiffFilter | MemoRecordExpirationDateTime | ||
| CashFlow13endasOriginFlowID | ||||
| PromiseToPayCurrency | ||||
| CashFlowIsEndOfDayReconciled | P_UnrealizedCrcyDiffFilter | CashFlowIsEndOfDayReconciled | ||
| _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 | |||
| _FinancialAccountTypeText | _FinancialAccountTypeText | |||
| _GLAccountText | _GLAccountText | |||
| AccountingDocumentTypekeyOriginSystem | ||||
| 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 | ||
| CompanyCode | P_UnrealizedCrcyDiffFilter | CompanyCode | Receiver Company Code | |
| TransactionDate | TransactionDate | Value Date | ||
| CertaintyLevel | CertaintyLevel | |||
| TransactionCurrency | P_UnrealizedCrcyDiffFilter | TransactionCurrency | Transaction Currency | |
| 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 | ||
| FiscalYear | P_UnrealizedCrcyDiffFilter | FiscalYear | G/L Fiscal Year | |
| PostingFiscalPeriod | P_UnrealizedCrcyDiffFilter | PostingFiscalPeriod | Period | |
| AccountingDocumentType | P_UnrealizedCrcyDiffFilter | AccountingDocumentType | Journal Entry Type | |
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| GLAccount | P_UnrealizedCrcyDiffFilter | GLAccount | General Ledger | |
| FinancialAccountType | P_UnrealizedCrcyDiffFilter | FinancialAccountType | Fin. Account Type | |
| DocumentItemText | P_UnrealizedCrcyDiffFilter | DocumentItemText | Text | |
| PostingDate | PostingDate | Posting Date for GR | ||
| 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 | |
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| 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 | SourceCompanyCode | |||
| Fund | P_UnrealizedCrcyDiffFilter | Fund | Sender Fund | |
| FinancialManagementArea | _CompanyCode | FinancialManagementArea | FM Area | |
| GrantID | P_UnrealizedCrcyDiffFilter | GrantID | Sender Grant | |
| FinancialInstrumentProductType | FinancialInstrumentProductType | Product Type Group | ||
| FinancialTransactionType | FinancialTransactionType | Transact. Type | ||
| SecurityClass | SecurityClass | |||
| SecurityAccount | SecurityAccount | |||
| AssetContract | AssetContract | Asset Contract | ||
| Portfolio | Portfolio | Portfolio | ||
| RelatedOriginApplication | ||||
| RelatedOriginTransactionID | ||||
| TreasuryBusinessTransaction | ||||
| ExpirationDate | ExpirationDate | Expiratn Date | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| MemoRecordExpirationDateTime | MemoRecordExpirationDateTime | |||
| OriginFlowID | OriginFlowID | |||
| OriginDocumentValue | OriginDocumentValue | |||
| BankStatementShortID | BankStatementShortID | Statement Short Key | ||
| BankStatementItem | BankStatementItem | Memo Record No. | ||
| PromiseToPayCurrency | ||||
| CashFlowIsEndOfDayReconciled | ||||
| _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 | |||
| _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_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.
CREATE VIEW I_CashFlowItem AS
SELECT
flow.OriginSystem AS OriginSystem,
flow.OriginDocument AS OriginDocument,
flow.OriginTransaction AS OriginTransaction,
flow.OriginTransactionQualifier AS OriginTransactionQualifier,
flow.CashFlow AS CashFlow,
flow.ValidFrom AS ValidFrom,
flow.ValidTo AS ValidTo,
CashFlowScopeForAccounting,
flow.CashFlowID AS CashFlowID,
cast(flow.ValidFrom as abap.char(27)) AS CashFlowSnapshotValue,
flow.IsValid AS IsValid,
cast(flow.CreatedByUser as fclm_bam_created_by) AS CreatedByUser,
flow.CreationDateTime AS CreationDateTime,
cast(flow.LastChangedByUser as fclm_bam_lastchgby) AS LastChangedByUser,
flow.LastChangeDateTime AS LastChangeDateTime,
flow.CashTransactionOwner AS CashTransactionOwner,
flow.CompanyCode AS CompanyCode,
cast(flow.TransactionDate as valut preserving type ) AS TransactionDate,
flow.CertaintyLevel AS CertaintyLevel,
flow.TransactionCurrency AS TransactionCurrency,
cast(flow.AmountInTransactionCurrency as fclm_cp_trans_amount preserving type ) AS AmountInTransactionCurrency,
cast(flow.CompanyCodeCurrency as fis_hwaer preserving type ) AS CompanyCodeCurrency,
cast(flow.AmountInCompanyCodeCurrency as fis_hsl preserving type ) AS AmountInCompanyCodeCurrency,
flow.CashReleaseStatus AS CashReleaseStatus,
cast(flow.AccountingDocument as fis_belnr preserving type ) AS AccountingDocument,
cast(flow.AccountingDocumentItem as fclm_cp_buzei preserving type ) AS AccountingDocumentItem,
flow.FiscalYear AS FiscalYear,
flow.PostingFiscalPeriod 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.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,
WBSElementInternalID,
flow.PartnerCompany AS PartnerCompany,
flow.CostCenter AS CostCenter,
flow.Segment AS Segment,
flow.LiquidityItem AS LiquidityItem,
flow.SourceCompanyCode AS SourceCompanyCode,
flow.Fund AS Fund,
_CompanyCode.FinancialManagementArea AS FinancialManagementArea,
flow.GrantID AS GrantID,
flow.FinancialInstrumentProductType AS FinancialInstrumentProductType,
flow.FinancialTransactionType AS FinancialTransactionType,
flow.SecurityClass AS SecurityClass,
flow.SecurityAccount AS SecurityAccount,
flow.AssetContract AS AssetContract,
flow.Portfolio AS Portfolio,
flow.RelatedOriginApplication AS RelatedOriginApplication,
flow.RelatedOriginTransactionID AS RelatedOriginTransactionID,
cast(hextobin('0b72aaecfafa1eee95ba2e6ba96bca79')as ftr_gen_business_transaction ) AS TreasuryBusinessTransaction,
ExpirationDate,
flow.NetDueDate AS NetDueDate,
flow.MemoRecordExpirationDateTime AS MemoRecordExpirationDateTime,
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,
flow.CashFlowIsEndOfDayReconciled AS CashFlowIsEndOfDayReconciled,
OriginApplication,
BankAccountCurrency,
OriginFlowID,
OriginDocumentValue,
BankStatementShortID,
BankStatementItem
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 financialmanagementarea = _Fund.FinancialManagementArea AND Fund = _Fund.Fund -- association [0..1]
LEFT OUTER JOIN I_FundText AS _FundText ON financialmanagementarea = _FundText.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..*]
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..*]
-- 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