P_Cashflow_Base
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CashFlow | flow | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_Language | abap.lang |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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