I_CashFlowSubItemTP

DDL: I_CASHFLOWSUBITEMTP SQL: ICCFIITEMTP Type: view TRANSACTIONAL Package: ODATA_PAYMENTDETAILS

Cash Flow Sub Items

I_CashFlowSubItemTP is a Transactional CDS View that provides data about "Cash Flow Sub Items" in SAP S/4HANA. It reads from 1 data source (I_CashFlowByScopeForAccounting) and exposes 51 fields with key fields OriginSystem, OriginTransactionValue, OriginApplication, OriginDocument, OriginFlowID. It has 6 associations to related views. Part of development package ODATA_PAYMENTDETAILS.

Data Sources (1)

SourceAliasJoin Type
I_CashFlowByScopeForAccounting flow from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_CashFlowItemTP _CashFlow $projection.OriginSystem = _CashFlow.OriginSystem and $projection.OriginTransactionValue = _CashFlow.OriginTransactionValue and $projection.OriginApplication = _CashFlow.OriginApplication and $projection.OriginDocument = _CashFlow.OriginDocument and $projection.OriginFlowID = _CashFlow.OriginFlowID and $projection.CashFlowSnapshotValue = _CashFlow.CashFlowSnapshotValue and $projection.TransactionDate = _CashFlow.TransactionDate and $projection.OriginTransactionQualifier = _CashFlow.OriginTransactionQualifier and $projection.CashFlowScopeForAccounting = _CashFlow.CashFlowScopeForAccounting
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..*] I_LiquidityItemText _LiquidityItemText $projection.LiquidityItem = _LiquidityItemText.LiquidityItem
[0..*] I_FundText _FundText $projection.financialmanagementarea = _FundText.FinancialManagementArea and $projection.Fund = _FundText.Fund
[0..*] I_GrantText _GrantText $projection.GrantID = _GrantText.GrantID

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName ICCFIITEMTP view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Cash Flow Sub Items view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #TRANSACTIONAL view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled true view
ObjectModel.writeDraftPersistence ICCFISUBDRAFT view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY OriginSystem I_CashFlowByScopeForAccounting OriginSystem LogSys: Formula
KEY OriginTransactionValue I_CashFlowByScopeForAccounting OriginTransaction
KEY OriginApplication I_CashFlowByScopeForAccounting OriginApplication Origin Application
KEY OriginDocument
KEY OriginFlowID
KEY CashFlowSnapshotValue
KEY TransactionDate I_CashFlowByScopeForAccounting TransactionDate Value Date
KEY CashFlowID I_CashFlowByScopeForAccounting CashFlowID Flow ID
KEY OriginTransactionQualifier I_CashFlowByScopeForAccounting OriginTransactionQualifier
KEY CashFlowScopeForAccounting I_CashFlowByScopeForAccounting CashFlowScopeForAccounting
ValidFrom I_CashFlowByScopeForAccounting ValidFrom Vers.Valid From
ValidTo I_CashFlowByScopeForAccounting ValidTo Vers.Valid To
CashFlow I_CashFlowByScopeForAccounting CashFlow
Supplier I_CashFlowByScopeForAccounting Supplier Supplier
Customer I_CashFlowByScopeForAccounting Customer Sold-to Party
CompanyCode I_CashFlowByScopeForAccounting CompanyCode Receiver Company Code
LiquidityItem I_CashFlowByScopeForAccounting LiquidityItem Liquidity Item
Material I_CashFlowByScopeForAccounting Material Vehicle Model
BusinessArea I_CashFlowByScopeForAccounting BusinessArea Business Area
CostCenter I_CashFlowByScopeForAccounting CostCenter Cost Center
SourceCompanyCode I_CashFlowByScopeForAccounting SourceCompanyCode
PartnerCompany I_CashFlowByScopeForAccounting PartnerCompany Trading Partner
ProfitCenter I_CashFlowByScopeForAccounting ProfitCenter Profit Center
Segment I_CashFlowByScopeForAccounting Segment Segment number
BusinessPartner I_CashFlowByScopeForAccounting BusinessPartner Issuing Authority
WBSElementInternalID I_CashFlowByScopeForAccounting WBSElementInternalID WBS Internal ID
HouseBank I_CashFlowByScopeForAccounting HouseBank House Bank
HouseBankAccount I_CashFlowByScopeForAccounting HouseBankAccount House Bank Account
BankAccountInternalID I_CashFlowByScopeForAccounting BankAccountInternalID Technical ID
Fund I_CashFlowByScopeForAccounting Fund Sender Fund
FinancialManagementArea _CompanyCode FinancialManagementArea FM Area
GrantID I_CashFlowByScopeForAccounting GrantID Sender Grant
AssetContract I_CashFlowByScopeForAccounting AssetContract Asset Contract
RelatedOriginApplication I_CashFlowByScopeForAccounting RelatedOriginApplication
RelatedOriginTransactionID I_CashFlowByScopeForAccounting RelatedOriginTransactionID
TreasuryBusinessTransaction
TransactionCurrency I_CashFlowByScopeForAccounting TransactionCurrency Transaction Currency
AmountInTransactionCurrency I_CashFlowByScopeForAccounting AmountInTransactionCurrency Pt Crcy Amt
CompanyCodeCurrency I_CashFlowByScopeForAccounting CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency I_CashFlowByScopeForAccounting AmountInCompanyCodeCurrency Local Crcy Amt
_CashFlow _CashFlow
_LiquidityItem _LiquidityItem
_CompanyCode _CompanyCode
_SourceCompanyCode _SourceCompanyCode
_WBSElement _WBSElement
_Supplier _Supplier
_Customer _Customer
_BankAccount _BankAccount
_LiquidityItemText _LiquidityItemText
_FundText _FundText
_GrantText _GrantText

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_CashFlowSubItemTP.
-- 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: ICCFIITEMTP

CREATE VIEW I_CashFlowSubItemTP AS
SELECT
  flow.OriginSystem AS OriginSystem,
  flow.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.CashFlowID AS CashFlowID,
  flow.OriginTransactionQualifier AS OriginTransactionQualifier,
  flow.CashFlowScopeForAccounting AS CashFlowScopeForAccounting,
  flow.ValidFrom AS ValidFrom,
  flow.ValidTo AS ValidTo,
  flow.CashFlow AS CashFlow,
  flow.Supplier AS Supplier,
  flow.Customer AS Customer,
  flow.CompanyCode AS CompanyCode,
  flow.LiquidityItem AS LiquidityItem,
  flow.Material AS Material,
  flow.BusinessArea AS BusinessArea,
  flow.CostCenter AS CostCenter,
  flow.SourceCompanyCode AS SourceCompanyCode,
  flow.PartnerCompany AS PartnerCompany,
  flow.ProfitCenter AS ProfitCenter,
  flow.Segment AS Segment,
  flow.BusinessPartner AS BusinessPartner,
  flow.WBSElementInternalID AS WBSElementInternalID,
  flow.HouseBank AS HouseBank,
  flow.HouseBankAccount AS HouseBankAccount,
  flow.BankAccountInternalID AS BankAccountInternalID,
  flow.Fund AS Fund,
  _CompanyCode.FinancialManagementArea AS FinancialManagementArea,
  flow.GrantID AS GrantID,
  flow.AssetContract AS AssetContract,
  flow.RelatedOriginApplication AS RelatedOriginApplication,
  flow.RelatedOriginTransactionID AS RelatedOriginTransactionID,
  cast(hextobin('0b72aaecfafa1eee95ba2e6ba96bca79')as ftr_gen_business_transaction ) AS TreasuryBusinessTransaction,
  flow.TransactionCurrency AS TransactionCurrency,
  flow.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  flow.CompanyCodeCurrency AS CompanyCodeCurrency,
  flow.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency
FROM I_CashFlowByScopeForAccounting AS flow
LEFT OUTER JOIN I_CashFlowItemTP AS _CashFlow ON OriginSystem = _CashFlow.OriginSystem AND OriginTransactionValue = _CashFlow.OriginTransactionValue AND OriginApplication = _CashFlow.OriginApplication AND OriginDocument = _CashFlow.OriginDocument AND OriginFlowID = _CashFlow.OriginFlowID AND CashFlowSnapshotValue = _CashFlow.CashFlowSnapshotValue AND TransactionDate = _CashFlow.TransactionDate AND OriginTransactionQualifier = _CashFlow.OriginTransactionQualifier AND CashFlowScopeForAccounting = _CashFlow.CashFlowScopeForAccounting  -- association [1..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_LiquidityItemText AS _LiquidityItemText ON LiquidityItem = _LiquidityItemText.LiquidityItem  -- association [0..*]
LEFT OUTER JOIN I_FundText AS _FundText ON financialmanagementarea = _FundText.FinancialManagementArea AND Fund = _FundText.Fund  -- association [0..*]
LEFT OUTER JOIN I_GrantText AS _GrantText ON GrantID = _GrantText.GrantID  -- association [0..*]
;