P_Cashflow_Base

DDL: P_CASHFLOW_BASE SQL: PCASHFLOWBASE Type: view COMPOSITE

P_Cashflow_Base is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CashFlow) and exposes 49 fields. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CashFlow flow from

Parameters (1)

NameTypeDefault
P_Language abap.lang

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CalendarDate _Date $projection.CalendarDay = _Date.CalendarDate
[0..1] I_LiquidityItem _LiquidityItem $projection.LiquidityItem = _LiquidityItem.LiquidityItem
[0..1] I_GLAccount _GLAccount $projection.CompanyCode = _GLAccount.CompanyCode and $projection.GLAccount = _GLAccount.GLAccount

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PCASHFLOWBASE view

Fields (49)

KeyFieldSource TableSource FieldDescription
CompanyCode I_CashFlow CompanyCode Receiver Company Code
ControllingArea _CompanyCode ControllingArea Controlling Area
Country _CompanyCode Country Venue: Ctry/Reg
LiquidityItem I_CashFlow LiquidityItem Liquidity Item
BankAccountInternalID I_CashFlow BankAccountInternalID Technical ID
BankAccountType _BankAccount BankAccountType Account Type
Bank _BankAccount Bank Bank Number
BankAccount _BankAccount BankAccountNumber Bank Account
BankAccountDescription
BankAccountStatus _BankAccount BankAccountStatus Account Status
CalendarDay I_CashFlow TransactionDate Value Date
CalendarYearWeek _Date YearWeek Year and Calendar Week
CalendarYearMonth _Date YearMonth Year Month
CalendarYearQuarter _Date YearQuarter Year Quarter
CalendarYear _Date CalendarYear Year
FiscalYear I_CashFlow FiscalYear G/L Fiscal Year
FiscalYearVariant
AmountInTransactionCurrency I_CashFlow AmountInTransactionCurrency Pt Crcy Amt
PaymentMethod I_CashFlow PaymentMethod Pymt Meth.
OriginApplication I_CashFlow OriginApplication Origin Application
CertaintyLevel I_CashFlow CertaintyLevel
GLAccount I_CashFlow GLAccount General Ledger
DocumentItemText
Customer I_CashFlow Customer Sold-to Party
Supplier I_CashFlow Supplier Supplier
BusinessPartner I_CashFlow BusinessPartner Issuing Authority
Material I_CashFlow Material Vehicle Model
BusinessArea I_CashFlow BusinessArea Business Area
ProfitCenter I_CashFlow ProfitCenter Profit Center
WBSElementInternalID I_CashFlow WBSElementInternalID WBS Internal ID
WBSElement I_CashFlow WBSElement WBS Internal ID
PartnerCompany I_CashFlow PartnerCompany Trading Partner
CostCenter I_CashFlow CostCenter Cost Center
Segment I_CashFlow Segment Segment number
CashPlanningGroup I_CashFlow CashPlanningGroup Planning Group
PlanningLevel I_CashFlow PlanningLevel Planning Level
ExpirationDate I_CashFlow ExpirationDate Expiratn Date
HouseBank I_CashFlow HouseBank House Bank
HouseBankAccount I_CashFlow HouseBankAccount House Bank Account
SourceCompanyCode I_CashFlow SourceCompanyCode
ResponsibleCostCenter
Project
_CompanyCode _CompanyCode
_LiquidityItem _LiquidityItem
_BankAccount _BankAccount
_GLAccount _GLAccount
_WBSElement _WBSElement
_CashPlanningGroup _CashPlanningGroup
_PlanningLevel

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 P_Cashflow_Base.
-- 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: PCASHFLOWBASE
-- Parameters: P_Language : abap.lang

CREATE VIEW P_Cashflow_Base AS
SELECT
  flow.CompanyCode AS CompanyCode,
  _CompanyCode.ControllingArea AS ControllingArea,
  _CompanyCode.Country AS Country,
  flow.LiquidityItem AS LiquidityItem,
  flow.BankAccountInternalID AS BankAccountInternalID,
  _BankAccount.BankAccountType AS BankAccountType,
  _BankAccount.Bank AS Bank,
  _BankAccount.BankAccountNumber AS BankAccount,
  _BankAccount._Text[1: Language = $parameters.P_Language].BankAccountDescription AS BankAccountDescription,
  _BankAccount.BankAccountStatus AS BankAccountStatus,
  flow.TransactionDate AS CalendarDay,
  _Date.YearWeek AS CalendarYearWeek,
  _Date.YearMonth AS CalendarYearMonth,
  _Date.YearQuarter AS CalendarYearQuarter,
  _Date.CalendarYear AS CalendarYear,
  flow.FiscalYear AS FiscalYear,
  flow._CompanyCode.FiscalYearVariant AS FiscalYearVariant,
  flow.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  flow.PaymentMethod AS PaymentMethod,
  flow.OriginApplication AS OriginApplication,
  flow.CertaintyLevel AS CertaintyLevel,
  flow.GLAccount AS GLAccount,
  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.WBSElementInternalID AS WBSElementInternalID,
  flow.WBSElement AS WBSElement,
  flow.PartnerCompany AS PartnerCompany,
  flow.CostCenter AS CostCenter,
  flow.Segment AS Segment,
  flow.CashPlanningGroup AS CashPlanningGroup,
  flow.PlanningLevel AS PlanningLevel,
  flow.ExpirationDate AS ExpirationDate,
  flow.HouseBank AS HouseBank,
  flow.HouseBankAccount AS HouseBankAccount,
  flow.SourceCompanyCode AS SourceCompanyCode,
  flow._WBSElement.ResponsibleCostCenter AS ResponsibleCostCenter,
  flow._WBSElement._Project.Project AS Project
FROM I_CashFlow AS flow
LEFT OUTER JOIN I_CalendarDate AS _Date ON CalendarDay = _Date.CalendarDate  -- association [0..1]
LEFT OUTER JOIN I_LiquidityItem AS _LiquidityItem ON LiquidityItem = _LiquidityItem.LiquidityItem  -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON CompanyCode = _GLAccount.CompanyCode AND GLAccount = _GLAccount.GLAccount  -- association [0..1]
;