P_ActualPlanBalFlow
P_ActualPlanBalFlow is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_ActualBalFlowDateFunc, P_PlanBalFlowDateFunc) and exposes 64 fields with key fields ActualPlanCode, PlanningCategory, Ledger, CompanyCode, DateFunction.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ActualBalFlowDateFunc | P_ActualBalFlowDateFunc | from |
| P_PlanBalFlowDateFunc | P_PlanBalFlowDateFunc | union_all |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIACTPLNBF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ActualPlanCode | ActualPlanCode | ||
| KEY | PlanningCategory | PlanningCategory | Plan Category | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | DateFunction | DateFunction | Relative Date Function | |
| KEY | FiscalYearPeriodendasFiscalYearPeriod | |||
| KEY | GLAccountFlowType | GLAccountFlowType | ||
| FiscalYearVariant | P_ActualBalFlowDateFunc | FiscalYearVariant | FY Variant | |
| LedgerFiscalYear | LedgerFiscalYear | |||
| FiscalQuarter | _FiscalCalendarDate | FiscalQuarter | ||
| FiscalYearQuarter | _FiscalCalendarDate | FiscalYearQuarter | ||
| FiscalPeriodendasFiscalPeriod | ||||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| GLAccount | GLAccount | General Ledger | ||
| IsBalanceSheetAccount | _GLAccountInChartOfAccounts | IsBalanceSheetAccount | Is Balance Sheet Account | |
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| Product | Product | Product Sold | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| SoldProduct | SoldProduct | Product Sold | ||
| SoldProductGroup | SoldProductGroup | Product Sold Group | ||
| Customer | Customer | Sold-to Party | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| Supplier | Supplier | Supplier | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| FixedAmountInGlobalCrcy | FixedAmountInGlobalCrcy | |||
| KslwoBCF | KslwoBCF | |||
| KslonlyBCF | KslonlyBCF | |||
| KEY | PlanningCategory | PlanningCategory | Plan Category | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | DateFunction | DateFunction | Relative Date Function | |
| KEY | GLAccountFlowType | GLAccountFlowType | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| LedgerFiscalYear | LedgerFiscalYear | |||
| FiscalQuarter | _FiscalCalendarDate | FiscalQuarter | ||
| FiscalYearQuarter | _FiscalCalendarDate | FiscalYearQuarter | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| GLAccount | GLAccount | General Ledger | ||
| IsBalanceSheetAccount | _GLAccountInChartOfAccounts | IsBalanceSheetAccount | Is Balance Sheet Account | |
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| Product | Product | Product Sold | ||
| ProductGroup | ProductGroup | Product Sold Group | ||
| SoldProduct | SoldProduct | Product Sold | ||
| SoldProductGroup | SoldProductGroup | Product Sold Group | ||
| Customer | Customer | Sold-to Party | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| Supplier | Supplier | Supplier | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| FixedAmountInGlobalCrcy | FixedAmountInGlobalCrcy | |||
| KslwoBCF | KslwoBCF | |||
| KslonlyBCF | KslonlyBCF | |||
| _GlobalCurrency | _GlobalCurrency |
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_ActualPlanBalFlow.
-- 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: PFIACTPLNBF
CREATE VIEW P_ActualPlanBalFlow AS
SELECT
ActualPlanCode,
PlanningCategory,
Ledger,
CompanyCode,
DateFunction,
case when P_ActualBalFlowDateFunc.FiscalYearPeriod > I_FiscalCalendarDate.FiscalYearPeriod then I_FiscalCalendarDate.FiscalYearPeriod else P_ActualBalFlowDateFunc.FiscalYearPeriod end as FiscalYearPeriod AS FiscalYearPeriodendasFiscalYearPeriod,
GLAccountFlowType,
P_ActualBalFlowDateFunc.FiscalYearVariant AS FiscalYearVariant,
LedgerFiscalYear,
_FiscalCalendarDate.FiscalQuarter AS FiscalQuarter,
_FiscalCalendarDate.FiscalYearQuarter AS FiscalYearQuarter,
case when P_ActualBalFlowDateFunc.FiscalPeriod > I_FiscalCalendarDate.FiscalPeriod then I_FiscalCalendarDate.FiscalPeriod else P_ActualBalFlowDateFunc.FiscalPeriod end as FiscalPeriod AS FiscalPeriodendasFiscalPeriod,
ChartOfAccounts,
GLAccount,
_GLAccountInChartOfAccounts.IsBalanceSheetAccount AS IsBalanceSheetAccount,
ControllingArea,
CostCenter,
ProfitCenter,
FunctionalArea,
BusinessArea,
Segment,
Product,
ProductGroup,
SoldProduct,
SoldProductGroup,
Customer,
CustomerGroup,
Supplier,
GlobalCurrency,
AmountInGlobalCurrency,
FixedAmountInGlobalCrcy,
KslwoBCF,
KslonlyBCF
FROM P_ActualBalFlowDateFunc
-- UNION ALL with additional select branch(es): P_PlanBalFlowDateFunc
;
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