C_CashFlowItemTP

DDL: C_CASHFLOWITEMTP SQL: CCCFITP Type: view CONSUMPTION

Cash Flow Items

C_CashFlowItemTP is a Consumption CDS View that provides data about "Cash Flow Items" in SAP S/4HANA. It reads from 1 data source (I_CashFlowItemTP) and exposes 98 fields with key fields OriginSystem, OriginTransactionValue, OriginApplication, OriginDocument, OriginFlowID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CashFlowItemTP flow from

Associations (4)

CardinalityTargetAliasCondition
[1..*] C_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..*] 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 (18)

NameValueLevelField
AbapCatalog.sqlViewName CCCFITP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Cash Flow Items view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.compositionRoot true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.draftEnabled true view

Fields (98)

KeyFieldSource TableSource FieldDescription
KEY OriginSystem
KEY OriginTransactionValue
KEY OriginApplication I_CashFlowItemTP OriginApplication Origin Application
KEY OriginDocument I_CashFlowItemTP OriginDocument
KEY OriginFlowID OriginFlowID
KEY CashFlowSnapshotValue I_CashFlowItemTP CashFlowSnapshotValue
KEY TransactionDate I_CashFlowItemTP TransactionDate Value Date
KEY OriginTransactionQualifier I_CashFlowItemTP OriginTransactionQualifier
KEY CashFlowScopeForAccounting I_CashFlowItemTP CashFlowScopeForAccounting
ValidFrom I_CashFlowItemTP ValidFrom Vers.Valid From
CashFlowID I_CashFlowItemTP CashFlowID
ValidTo I_CashFlowItemTP ValidTo Vers.Valid To
SourceApplicationText
OriginDocumentValue I_CashFlowItemTP OriginDocumentValue
RealEstateContract I_CashFlowItemTP OriginDocumentValue
CashMemoRecordID OriginDocument
PaymentRequest I_CashFlowItemTP OriginDocumentValue
OriginTransaction I_CashFlowItemTP OriginTransaction
CashTransactionOwner I_CashFlowItemTP CashTransactionOwner
CompanyCode I_CashFlowItemTP CompanyCode Receiver Company Code
CompanyCodeName
CertaintyLevel I_CashFlowItemTP CertaintyLevel
AccountingDocument I_CashFlowItemTP AccountingDocument Journal Entry
RefAccountingDocument I_CashFlowItemTP AccountingDocument Journal Entry
AccountingDocumentItem I_CashFlowItemTP AccountingDocumentItem Posting View Item
BankAccountRevision I_CashFlowItemTP BankAccountRevision
FiscalYear I_CashFlowItemTP FiscalYear G/L Fiscal Year
DocumentDate
TransactionCode
AccountingDocumentHeaderText
AccountingDocumentType I_CashFlowItemTP AccountingDocumentType Journal Entry Type
FiscalPeriod
GLAccount I_CashFlowItemTP GLAccount General Ledger
CashJournalDocumentItemText I_CashFlowItemTP DocumentItemText Text
PostingDate I_CashFlowItemTP PostingDate Posting Date for GR
CashPlanningGroup I_CashFlowItemTP CashPlanningGroup Planning Group
CashPlanningGroupDescription
PlanningLevel I_CashFlowItemTP PlanningLevel Planning Level
PlanningLevelName
TransactionCurrency TransactionCurrency Transaction Currency
Customer Customer Sold-to Party
PaymentOrigin I_CashFlowItemTP PaymentOrigin
PaymentRunDate PaymentRunDate
PaymentRunID PaymentRunID
DirectDebitPreNotification DirectDebitPreNotification
FinancialAccountType I_CashFlowItemTP FinancialAccountType Fin. Account Type
OpenItemAccountNumber OpenItemAccountNumber
LastPaymentDate _PromiseToPay LastPaymentDate Last Payment
NumberOfInstallments _PromiseToPay NumberOfInstallments Installments
PromiseToPayLevel _PromiseToPay PromiseToPayLevel Level
PromisedAmount _PromiseToPay PromisedAmount Promised Amount
PromiseToPayCurrency _PromiseToPay Currency Valuation Crcy
PromiseToPayStatus _PromiseToPay Status Workflow Status
PaymentBatch _PaymentBatchItem PaymentBatch
PaymentBatchItem _PaymentBatchItem PaymentBatchItem
PaymentBatchStatus _PaymentBatchItem PaymentBatchStatus
PaymentBatchStatusText _PaymentBatchItem PaymentBatchStatusText
PaymentBatchItemStatus _PaymentBatchItem PaymentBatchItemStatus
PaymentBatchItemStatusText _PaymentBatchItem PaymentBatchItemStatusText
PaymentBatchUrgency _PaymentBatchItem PaymentBatchUrgency
CreatedByUser I_CashFlowItemTP CreatedByUser User Name
CreatedByUserDescription
LastChangedByUser I_CashFlowItemTP LastChangedByUser User Name
LastChangedByUserFullName
AmountInTransactionCurrency
OpenAmountInTransCrcy
HouseBank HouseBank House Bank
HouseBankAccount HouseBankAccount House Bank Account
BankAccountInternalID I_CashFlowItemTP BankAccountInternalID Technical ID
BankAccountCurrency BankAccountCurrency Currency
Bank
BankCountry
SWIFTCode
BankName
BankAccountNumber
BankAccountDescription
IBAN
BankAccountType
BankAccountTypeText
SalesOrder
SalesSchedulingAgreement
PurchaseOrder
PurchaseRequisition
SchedulingAgreement
_SubItem _SubItem
_CompanyCode _CompanyCode
_CashPlanningGroup _CashPlanningGroup
_Currency _Currency
_PlanningLevel _PlanningLevel
_AccountingDocument _AccountingDocument
_AccountingDocumentTypeText _AccountingDocumentTypeText
_Customer _Customer
_FinancialAccountTypeText _FinancialAccountTypeText
_SourceApplicationText _SourceApplicationText
_CashPlanningGroupText _CashPlanningGroupText
_PlanningLevelText _PlanningLevelText
_CertaintyLevelText _CertaintyLevelText
_GLAccountText _GLAccountText

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 C_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.
-- SQL view name: CCCFITP

CREATE VIEW C_CashFlowItemTP AS
SELECT
  cast(flow.OriginSystem as fclm_cp_origin_system preserving type ) AS OriginSystem,
  cast(flow.OriginTransactionValue as fclm_cp_trans_id preserving type ) AS OriginTransactionValue,
  flow.OriginApplication AS OriginApplication,
  flow.OriginDocument AS OriginDocument,
  OriginFlowID,
  flow.CashFlowSnapshotValue AS CashFlowSnapshotValue,
  flow.TransactionDate AS TransactionDate,
  flow.OriginTransactionQualifier AS OriginTransactionQualifier,
  flow.CashFlowScopeForAccounting AS CashFlowScopeForAccounting,
  flow.ValidFrom AS ValidFrom,
  flow.CashFlowID AS CashFlowID,
  flow.ValidTo AS ValidTo,
  flow._SourceApplicationText[1:Language = $session.system_language].SourceApplicationText AS SourceApplicationText,
  flow.OriginDocumentValue AS OriginDocumentValue,
  flow.OriginDocumentValue AS RealEstateContract,
  OriginDocument AS CashMemoRecordID,
  flow.OriginDocumentValue AS PaymentRequest,
  flow.OriginTransaction AS OriginTransaction,
  flow.CashTransactionOwner AS CashTransactionOwner,
  flow.CompanyCode AS CompanyCode,
  flow._CompanyCode.CompanyCodeName AS CompanyCodeName,
  flow.CertaintyLevel AS CertaintyLevel,
  flow.AccountingDocument AS AccountingDocument,
  flow.AccountingDocument AS RefAccountingDocument,
  flow.AccountingDocumentItem AS AccountingDocumentItem,
  flow.BankAccountRevision AS BankAccountRevision,
  flow.FiscalYear AS FiscalYear,
  flow._AccountingDocument.DocumentDate AS DocumentDate,
  flow._AccountingDocument.TransactionCode AS TransactionCode,
  flow._AccountingDocument.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  flow.AccountingDocumentType AS AccountingDocumentType,
  cast(cast(cast(flow._AccountingDocument.FiscalPeriod as abap.int1) as abap.char( 3 )) as fclm_cp_monat preserving type) AS FiscalPeriod,
  flow.GLAccount AS GLAccount,
  flow.DocumentItemText AS CashJournalDocumentItemText,
  flow.PostingDate AS PostingDate,
  flow.CashPlanningGroup AS CashPlanningGroup,
  flow._CashPlanningGroupText[1:Language = $session.system_language].CashPlanningGroupDescription AS CashPlanningGroupDescription,
  flow.PlanningLevel AS PlanningLevel,
  flow._PlanningLevel._Text[1:Language = $session.system_language].PlanningLevelName AS PlanningLevelName,
  TransactionCurrency,
  Customer,
  flow.PaymentOrigin AS PaymentOrigin,
  PaymentRunDate,
  PaymentRunID,
  DirectDebitPreNotification,
  flow.FinancialAccountType AS FinancialAccountType,
  OpenItemAccountNumber,
  _PromiseToPay.LastPaymentDate AS LastPaymentDate,
  _PromiseToPay.NumberOfInstallments AS NumberOfInstallments,
  _PromiseToPay.PromiseToPayLevel AS PromiseToPayLevel,
  _PromiseToPay.PromisedAmount AS PromisedAmount,
  _PromiseToPay.Currency AS PromiseToPayCurrency,
  _PromiseToPay.Status AS PromiseToPayStatus,
  _PaymentBatchItem.PaymentBatch AS PaymentBatch,
  _PaymentBatchItem.PaymentBatchItem AS PaymentBatchItem,
  _PaymentBatchItem.PaymentBatchStatus AS PaymentBatchStatus,
  _PaymentBatchItem.PaymentBatchStatusText AS PaymentBatchStatusText,
  _PaymentBatchItem.PaymentBatchItemStatus AS PaymentBatchItemStatus,
  _PaymentBatchItem.PaymentBatchItemStatusText AS PaymentBatchItemStatusText,
  _PaymentBatchItem.PaymentBatchUrgency AS PaymentBatchUrgency,
  flow.CreatedByUser AS CreatedByUser,
  flow._CreatedBy.UserDescription AS CreatedByUserDescription,
  flow.LastChangedByUser AS LastChangedByUser,
  flow._ChangedBy.UserDescription AS LastChangedByUserFullName,
  cast(cast(0 as abap.curr(23,2)) as fclm_cp_trans_amount preserving type ) AS AmountInTransactionCurrency,
  cast(cast(0 as abap.curr(23,2)) as fclm_cp_trans_amount preserving type ) AS OpenAmountInTransCrcy,
  HouseBank,
  HouseBankAccount,
  flow.BankAccountInternalID AS BankAccountInternalID,
  BankAccountCurrency,
  cast('' as bankk) AS Bank,
  cast('' as banks) AS BankCountry,
  cast('' as swift) AS SWIFTCode,
  cast('' as banka) AS BankName,
  cast('' as fclm_bam_acc_num) AS BankAccountNumber,
  cast('' as fclm_bam_description) AS BankAccountDescription,
  cast('' as iban) AS IBAN,
  cast('' as fclm_bam_bk_acc_type_id) AS BankAccountType,
  cast('' as fclm_bam_bk_acc_type_desc) AS BankAccountTypeText,
  cast('' as fclm_cp_doc_id) AS SalesOrder,
  cast('' as fclm_cp_doc_id) AS SalesSchedulingAgreement,
  cast('' as fclm_cp_doc_id) AS PurchaseOrder,
  cast('' as fclm_cp_doc_id) AS PurchaseRequisition,
  cast('' as fclm_cp_doc_id) AS SchedulingAgreement
FROM I_CashFlowItemTP AS flow
LEFT OUTER JOIN C_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 [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..*]
;