P_Fa_Flowitem

DDL: P_FA_FLOWITEM SQL: PFALITEM Type: view BASIC

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)

SourceAliasJoin Type
I_OperationalAcctgDocItem fi_doc left_outer
fqm_flow flow from
P_FqmFlwCatKFigCsh flowcat inner

Parameters (1)

NameTypeDefault
P_htstp timestampl

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;