P_Fqmbalance

DDL: P_FQMBALANCE SQL: PFQMBALANCE Type: view BASIC

P_Fqmbalance is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (P_Fqmflow, P_Fqmtransactiondate) and exposes 57 fields with key field TransactionDate. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_Fqmflow P_Fqmflow left_outer
P_Fqmtransactiondate P_Fqmtransactiondate from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_AccountingDocument _AccountingDocument $projection.OriginDocumentRl = _AccountingDocument.OriginalReferenceDocument and $projection.OriginApplication = _AccountingDocument.ReferenceDocumentType
[0..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.ReferenceDocument = _JournalEntry.AccountingDocument and $projection.FiscalYear = _JournalEntry.FiscalYear

Annotations (9)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName PFQMBALANCE view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY TransactionDate P_Fqmtransactiondate TransactionDate Value Date
ValidFrom P_Fqmflow ValidFrom Vers.Valid From
ValidTo P_Fqmflow ValidTo Vers.Valid To
CreatedByUser P_Fqmflow CreatedByUser User Name
LastChangedByUser P_Fqmflow LastChangedByUser User Name
OriginSystem P_Fqmflow OriginSystem LogSys: Formula
OriginApplication P_Fqmflow OriginApplication Origin Application
OriginDocument P_Fqmflow OriginDocument Source Doc. ID
OriginTransaction P_Fqmflow OriginTransaction Source Trans. ID
OriginTransQualifier P_Fqmflow OriginTransQualifier Trans. Qualifier
OriginFlowId P_Fqmflow OriginFlowId Source Flow ID
OriginSystemRl P_Fqmflow OriginSystemRl Logical system
OriginApplicationRl P_Fqmflow OriginApplicationRl Source Application
OriginDocumentRl P_Fqmflow OriginDocumentRl Source Doc. ID
OriginTransactionRl P_Fqmflow OriginTransactionRl Source Trans. ID
OriginTransQualifierRl P_Fqmflow OriginTransQualifierRl Trans. Qualifier
OriginFlowIdRl P_Fqmflow OriginFlowIdRl Source Flow ID
CertaintyLevel P_Fqmflow CertaintyLevel Certainty Level
FlowCategory P_Fqmflow FlowCategory Flow Category
FlowType P_Fqmflow FlowType Update Type
PaymentMethodCode P_Fqmflow PaymentMethodCode Pymt Meth.
GLAccount P_Fqmflow GLAccount General Ledger
Amount
Currency P_Fqmflow Currency Valuation Crcy
ProductType P_Fqmflow ProductType Product Type Group
FinancialTransactionType P_Fqmflow FinancialTransactionType Transact. Type
TrmActivityCategory P_Fqmflow TrmActivityCategory Activity Cat.
SecurityClass P_Fqmflow SecurityClass Security Class
TrmSecurityAccount P_Fqmflow TrmSecurityAccount Securities Acct
Portfolio P_Fqmflow Portfolio Portfolio
HouseBank P_Fqmflow HouseBank House Bank
HouseBankAccount P_Fqmflow HouseBankAccount House Bank Account
BankAccountId P_Fqmflow BankAccountId Technical ID
CompanyCode P_Fqmflow CompanyCode Receiver Company Code
Customer P_Fqmflow Customer Sold-to Party
Vendor P_Fqmflow Vendor Vendor
Partner P_Fqmflow Partner With Partner
Material P_Fqmflow Material Vehicle Model
BusinessArea P_Fqmflow BusinessArea Business Area
ProfitCenter P_Fqmflow ProfitCenter Profit Center
Project P_Fqmflow Project WBS Element
CostCenter P_Fqmflow CostCenter Cost Center
PartnerCompany P_Fqmflow PartnerCompany Trading Partner
LiquidityItem P_Fqmflow LiquidityItem Liquidity Item
Segment P_Fqmflow Segment Segment number
PlanningLevel P_Fqmflow PlanningLevel Planning Level
PlanningGroup P_Fqmflow PlanningGroup Planning group
AssignedCompanyCode P_Fqmflow AssignedCompanyCode Company Code
DocumentReferenceID P_Fqmflow DocumentReferenceID Reference
Characteristics P_Fqmflow Characteristics Characteristics
AssignmentReference P_Fqmflow AssignmentReference Assignment Reference
ReferenceDocument P_Fqmflow ReferenceDocument Reference Document
FiscalYear P_Fqmflow FiscalYear G/L Fiscal Year
KeyFigure P_Fqmflow KeyFigure Key Figure
_CompanyCode _CompanyCode
_AccountingDocument _AccountingDocument
_JournalEntry _JournalEntry

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_Fqmbalance.
-- 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: PFQMBALANCE

CREATE VIEW P_Fqmbalance AS
SELECT
  P_Fqmtransactiondate.TransactionDate AS TransactionDate,
  P_Fqmflow.ValidFrom AS ValidFrom,
  P_Fqmflow.ValidTo AS ValidTo,
  P_Fqmflow.CreatedByUser AS CreatedByUser,
  P_Fqmflow.LastChangedByUser AS LastChangedByUser,
  P_Fqmflow.OriginSystem AS OriginSystem,
  P_Fqmflow.OriginApplication AS OriginApplication,
  P_Fqmflow.OriginDocument AS OriginDocument,
  P_Fqmflow.OriginTransaction AS OriginTransaction,
  P_Fqmflow.OriginTransQualifier AS OriginTransQualifier,
  P_Fqmflow.OriginFlowId AS OriginFlowId,
  P_Fqmflow.OriginSystemRl AS OriginSystemRl,
  P_Fqmflow.OriginApplicationRl AS OriginApplicationRl,
  P_Fqmflow.OriginDocumentRl AS OriginDocumentRl,
  P_Fqmflow.OriginTransactionRl AS OriginTransactionRl,
  P_Fqmflow.OriginTransQualifierRl AS OriginTransQualifierRl,
  P_Fqmflow.OriginFlowIdRl AS OriginFlowIdRl,
  P_Fqmflow.CertaintyLevel AS CertaintyLevel,
  P_Fqmflow.FlowCategory AS FlowCategory,
  P_Fqmflow.FlowType AS FlowType,
  P_Fqmflow.PaymentMethodCode AS PaymentMethodCode,
  P_Fqmflow.GLAccount AS GLAccount,
  sum(P_Fqmflow.Amount) AS Amount,
  P_Fqmflow.Currency AS Currency,
  P_Fqmflow.ProductType AS ProductType,
  P_Fqmflow.FinancialTransactionType AS FinancialTransactionType,
  P_Fqmflow.TrmActivityCategory AS TrmActivityCategory,
  P_Fqmflow.SecurityClass AS SecurityClass,
  P_Fqmflow.TrmSecurityAccount AS TrmSecurityAccount,
  P_Fqmflow.Portfolio AS Portfolio,
  P_Fqmflow.HouseBank AS HouseBank,
  P_Fqmflow.HouseBankAccount AS HouseBankAccount,
  P_Fqmflow.BankAccountId AS BankAccountId,
  P_Fqmflow.CompanyCode AS CompanyCode,
  P_Fqmflow.Customer AS Customer,
  P_Fqmflow.Vendor AS Vendor,
  P_Fqmflow.Partner AS Partner,
  P_Fqmflow.Material AS Material,
  P_Fqmflow.BusinessArea AS BusinessArea,
  P_Fqmflow.ProfitCenter AS ProfitCenter,
  P_Fqmflow.Project AS Project,
  P_Fqmflow.CostCenter AS CostCenter,
  P_Fqmflow.PartnerCompany AS PartnerCompany,
  P_Fqmflow.LiquidityItem AS LiquidityItem,
  P_Fqmflow.Segment AS Segment,
  P_Fqmflow.PlanningLevel AS PlanningLevel,
  P_Fqmflow.PlanningGroup AS PlanningGroup,
  P_Fqmflow.AssignedCompanyCode AS AssignedCompanyCode,
  P_Fqmflow.DocumentReferenceID AS DocumentReferenceID,
  P_Fqmflow.Characteristics AS Characteristics,
  P_Fqmflow.AssignmentReference AS AssignmentReference,
  P_Fqmflow.ReferenceDocument AS ReferenceDocument,
  P_Fqmflow.FiscalYear AS FiscalYear,
  P_Fqmflow.KeyFigure AS KeyFigure
FROM P_Fqmtransactiondate
LEFT OUTER JOIN P_Fqmflow ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_AccountingDocument AS _AccountingDocument ON OriginDocumentRl = _AccountingDocument.OriginalReferenceDocument AND OriginApplication = _AccountingDocument.ReferenceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND ReferenceDocument = _JournalEntry.AccountingDocument AND FiscalYear = _JournalEntry.FiscalYear  -- association [0..1]
;