P_Fa_Flowitem
P_Fa_Flowitem is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (I_OperationalAcctgDocItem, fqm_flow, P_FqmFlwCatKFigCsh) and exposes 22 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | fi_doc | left_outer |
| fqm_flow | flow | from |
| P_FqmFlwCatKFigCsh | flowcat | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_htstp | timestampl |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFALITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | fqm_flow | company_code | Company Code | |
| FiDocumentType | ||||
| TransactionDate | fqm_flow | transaction_date | Value Date | |
| HouseBank | fqm_flow | house_bank | House Bank | |
| HouseBankAccount | fqm_flow | house_bank_account | Account ID | |
| bank_account_idendasBankAccountID | ||||
| CertaintyLevel | fqm_flow | certainty_level | Certainty Level | |
| Currency | fqm_flow | currency | Valuation Crcy | |
| PlanningLevel | fqm_flow | planning_level | Planning Level | |
| CashPlanningGroup | fqm_flow | planning_group | Planning group | |
| LiquidityItem | fqm_flow | liquidity_item | Liquidity Item | |
| GLAccount | fqm_flow | fi_account | G/L Acct | |
| ProfitCenter | fqm_flow | profit_center | Profit Center | |
| Segment | fqm_flow | segment | Segment number | |
| BusinessArea | fqm_flow | business_area | Business Area | |
| TradingPartner | fqm_flow | trading_partner | Trading Partner | |
| AMOUNT | ||||
| BaseAmount | ||||
| BaseCurrency | fqm_flow | base_currency | Currency | |
| valid_from | fqm_flow | valid_from | Validity Start Time | |
| valid_to | fqm_flow | valid_to | Validity End Time | |
| rel_status | fqm_flow | rel_status | Release Status |
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_Fa_Flowitem.
-- 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: PFALITEM
-- Parameters: P_htstp : timestampl
CREATE VIEW P_Fa_Flowitem AS
SELECT
flow.company_code AS CompanyCode,
coalesce(fi_doc.AccountingDocumentType, cast('' as blart)) AS FiDocumentType,
flow.transaction_date AS TransactionDate,
flow.house_bank AS HouseBank,
flow.house_bank_account AS HouseBankAccount,
case when flow.bank_account_id = '' then '0000000000' else flow.bank_account_id end as BankAccountID AS bank_account_idendasBankAccountID,
flow.certainty_level AS CertaintyLevel,
flow.currency AS Currency,
flow.planning_level AS PlanningLevel,
flow.planning_group AS CashPlanningGroup,
flow.liquidity_item AS LiquidityItem,
flow.fi_account AS GLAccount,
flow.profit_center AS ProfitCenter,
flow.segment AS Segment,
flow.business_area AS BusinessArea,
flow.trading_partner AS TradingPartner,
sum(flow.amount) AS AMOUNT,
sum(flow.base_amount) AS BaseAmount,
flow.base_currency AS BaseCurrency,
flow.valid_from AS valid_from,
flow.valid_to AS valid_to,
flow.rel_status AS rel_status
FROM fqm_flow AS flow
INNER JOIN P_FqmFlwCatKFigCsh AS flowcat ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OperationalAcctgDocItem AS fi_doc ON /* join condition not captured in parsed metadata */
;
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