P_ActualPlanGLAcctBalance
P_ActualPlanGLAcctBalance is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_SemTagGLAccount, P_ActualPlanGLAcctBalance2) and exposes 119 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 13 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SemTagGLAccount | I_SemTagGLAccount | inner |
| P_ActualPlanGLAcctBalance2 | P_ActualPlanGLAcctBalance2 | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FiscalYearPeriodForCmpnyCode | _FiscalPeriod | $projection.LedgerFiscalYear = _FiscalPeriod.FiscalYear and $projection.FiscalPeriod = _FiscalPeriod.FiscalPeriod and $projection.CompanyCode = _FiscalPeriod.CompanyCode |
| [0..1] | I_FiscalPeriodForVariant | _FiscalPeriodForVariant | $projection.LedgerFiscalYear = _FiscalPeriodForVariant.FiscalYear and $projection.FiscalPeriod = _FiscalPeriodForVariant.FiscalPeriod and $projection.FiscalYearVariant = _FiscalPeriodForVariant.FiscalYearVariant |
| [0..1] | I_FiscalCalYearPeriodForCoCode | _FiscalYearPeriod | $projection.FiscalYearPeriod = _FiscalYearPeriod.FiscalYearPeriod and $projection.CompanyCode = _FiscalYearPeriod.CompanyCode |
| [0..1] | I_FiscalYearPeriodForVariant | _FiscalYearPeriodForVariant | $projection.FiscalYearPeriod = _FiscalYearPeriodForVariant.FiscalYearPeriod and $projection.FiscalYearVariant = _FiscalYearPeriodForVariant.FiscalYearVariant |
| [0..1] | I_AccountingDocumentType | _AccountingDocumentType | $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_FixedAsset | _FixedAsset | $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_SalesDocument | _SalesDocument | $projection.SalesDocument = _SalesDocument.SalesDocument |
| [0..1] | I_SrvcDocByDocumentType | _ServiceDocument | $projection.ServiceDocumentType = _ServiceDocument.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocument.ServiceDocument |
| [0..1] | I_PlanningCategory | _PlanningCategory | $projection.PlanningCategory = _PlanningCategory.PlanningCategory |
| [1..1] | E_JournalEntryItem | _Extension | $projection.SourceLedger = _Extension.SourceLedger and $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.LedgerGLLineItem = _Extension.LedgerGLLineItem |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIACTPLNGLBAL | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (119)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | Ledger | Ledger | Ledger | |
| LedgerFiscalYear | LedgerFiscalYear | |||
| ActualPlanCode | ActualPlanCode | |||
| ChartOfAccounts | P_ActualPlanGLAcctBalance2 | ChartOfAccounts | Node Class | |
| ControllingArea | ControllingArea | Controlling Area | ||
| GLAccount | P_ActualPlanGLAcctBalance2 | GLAccount | General Ledger | |
| 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 | ||
| PlanningCategory | PlanningCategory | Plan Category | ||
| GLAccountFlowType | GLAccountFlowType | |||
| GLAccountTypeFlowType | GLAccountTypeFlowType | |||
| IsBalanceSheetAccount | IsBalanceSheetAccount | Is Balance Sheet Account | ||
| GLAccountType | GLAccountType | G/L Account Type | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| OrderType | OrderType | Order Type | ||
| AssetClass | AssetClass | Asset Class | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| Plant | Plant | Valuation Area | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| SalesDocument | SalesDocument | SD Document | ||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| FixedAsset | FixedAsset | Sub-number | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| Customer | Customer | Sold-to Party | ||
| Supplier | Supplier | Supplier | ||
| OrderID | OrderID | Order ID | ||
| GLAccountHierarchy | GLAccountHierarchy | |||
| HierarchyNode | HierarchyNode | Node | ||
| SemanticTag | SemanticTag | Semantic Tag | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| BalanceTransactionCurrency | BalanceTransactionCurrency | Currency | ||
| AmountInBalanceTransacCrcy | AmountInBalanceTransacCrcy | Amount in Balance Transaction Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| HslwoBCF | ||||
| HslonlyBCF | ||||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| FixedAmountInGlobalCrcy | FixedAmountInGlobalCrcy | |||
| CostSourceUnit | CostSourceUnit | |||
| ValuationQuantity | ValuationQuantity | |||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| CalendarYear | CalendarYear | Year | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarYearQuarter | CalendarYearQuarter | Year Quarter | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarYearMonth | CalendarYearMonth | Year Month | ||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| CalendarYearWeek | CalendarYearWeek | Year and Calendar Week | ||
| CalendarDate | CalendarDate | Calendar Date | ||
| FiscalQuarter | FiscalQuarter | |||
| FiscalWeek | FiscalWeek | |||
| FiscalYearQuarter | FiscalYearQuarter | |||
| FiscalYearWeek | FiscalYearWeek | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _BalanceTransactionCurrency | _BalanceTransactionCurrency | |||
| _BusinessArea | _BusinessArea | |||
| _ChartOfAccounts | P_ActualPlanGLAcctBalance2 | _ChartOfAccounts | ||
| _CompanyCode | _CompanyCode | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _CostSourceUnit | _CostSourceUnit | |||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| _Customer | _Customer | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _FiscalCalendarDate | _FiscalCalendarDate | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _FiscalPeriodForVariant | _FiscalPeriodForVariant | |||
| _FiscalYear | _FiscalYear | |||
| _FiscalYearPeriod | _FiscalYearPeriod | |||
| _FiscalYearPeriodForVariant | _FiscalYearPeriodForVariant | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _FixedAsset | _FixedAsset | |||
| _FunctionalArea | _FunctionalArea | |||
| _GLAccountFlowType | _GLAccountFlowType | |||
| _GLAccountFlowTypeText | _GLAccountFlowTypeText | |||
| _GLAccountInChartOfAccounts | P_ActualPlanGLAcctBalance2 | _GLAccountInChartOfAccounts | ||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode | |||
| _GLAccountType | _GLAccountType | |||
| _GLAccountTypeFlowType | _GLAccountTypeFlowType | |||
| _GLAccountTypeFlowTypeTxt | _GLAccountTypeFlowTypeTxt | |||
| _GlobalCurrency | _GlobalCurrency | |||
| _JournalEntry | _JournalEntry | |||
| _Ledger | _Ledger | |||
| _LedgerFiscalYearForVariant | _LedgerFiscalYearForVariant | |||
| _Order | _Order | |||
| _PlanningCategory | _PlanningCategory | |||
| _ProfitCenter | _ProfitCenter | |||
| _SalesDocument | _SalesDocument | |||
| _ServiceDocument | _ServiceDocument | |||
| _Segment | _Segment | |||
| _SourceLedger | _SourceLedger | |||
| _Supplier | _Supplier | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _SemanticTag | _SemanticTag | |||
| _Hierarchy | _Hierarchy |
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_ActualPlanGLAcctBalance.
-- 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: PFIACTPLNGLBAL
CREATE VIEW P_ActualPlanGLAcctBalance AS
SELECT
SourceLedger,
CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
Ledger,
LedgerFiscalYear,
ActualPlanCode,
P_ActualPlanGLAcctBalance2.ChartOfAccounts AS ChartOfAccounts,
ControllingArea,
P_ActualPlanGLAcctBalance2.GLAccount AS GLAccount,
CostCenter,
ProfitCenter,
FunctionalArea,
BusinessArea,
Segment,
Product,
PlanningCategory,
GLAccountFlowType,
GLAccountTypeFlowType,
IsBalanceSheetAccount,
GLAccountType,
DebitCreditCode,
AccountingDocumentCategory,
OrderType,
AssetClass,
FinancialAccountType,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
ServiceDocumentType,
Plant,
ValuationArea,
ServiceDocument,
SalesDocument,
MasterFixedAsset,
FixedAsset,
AccountingDocumentType,
Customer,
Supplier,
OrderID,
GLAccountHierarchy,
HierarchyNode,
SemanticTag,
ValidityEndDate,
ValidityStartDate,
BalanceTransactionCurrency,
AmountInBalanceTransacCrcy,
TransactionCurrency,
AmountInTransactionCurrency,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
cast (0 as fis_hsl) AS HslwoBCF,
cast (0 as fis_hsl) AS HslonlyBCF,
GlobalCurrency,
AmountInGlobalCurrency,
FixedAmountInGlobalCrcy,
CostSourceUnit,
ValuationQuantity,
FiscalPeriod,
FiscalYearVariant,
FiscalYearPeriod,
PostingDate,
CalendarYear,
CalendarQuarter,
CalendarYearQuarter,
CalendarMonth,
CalendarYearMonth,
CalendarWeek,
CalendarYearWeek,
CalendarDate,
FiscalQuarter,
FiscalWeek,
FiscalYearQuarter,
FiscalYearWeek,
P_ActualPlanGLAcctBalance2._ChartOfAccounts AS _ChartOfAccounts,
P_ActualPlanGLAcctBalance2._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts
FROM P_ActualPlanGLAcctBalance2
INNER JOIN I_SemTagGLAccount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FiscalYearPeriodForCmpnyCode AS _FiscalPeriod ON LedgerFiscalYear = _FiscalPeriod.FiscalYear AND FiscalPeriod = _FiscalPeriod.FiscalPeriod AND CompanyCode = _FiscalPeriod.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_FiscalPeriodForVariant AS _FiscalPeriodForVariant ON LedgerFiscalYear = _FiscalPeriodForVariant.FiscalYear AND FiscalPeriod = _FiscalPeriodForVariant.FiscalPeriod AND FiscalYearVariant = _FiscalPeriodForVariant.FiscalYearVariant -- association [0..1]
LEFT OUTER JOIN I_FiscalCalYearPeriodForCoCode AS _FiscalYearPeriod ON FiscalYearPeriod = _FiscalYearPeriod.FiscalYearPeriod AND CompanyCode = _FiscalYearPeriod.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_FiscalYearPeriodForVariant AS _FiscalYearPeriodForVariant ON FiscalYearPeriod = _FiscalYearPeriodForVariant.FiscalYearPeriod AND FiscalYearVariant = _FiscalYearPeriodForVariant.FiscalYearVariant -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument -- association [0..1]
LEFT OUTER JOIN I_SrvcDocByDocumentType AS _ServiceDocument ON ServiceDocumentType = _ServiceDocument.ServiceDocumentType AND ServiceDocument = _ServiceDocument.ServiceDocument -- association [0..1]
LEFT OUTER JOIN I_PlanningCategory AS _PlanningCategory ON PlanningCategory = _PlanningCategory.PlanningCategory -- association [0..1]
LEFT OUTER JOIN E_JournalEntryItem AS _Extension ON SourceLedger = _Extension.SourceLedger AND CompanyCode = _Extension.CompanyCode AND FiscalYear = _Extension.FiscalYear AND AccountingDocument = _Extension.AccountingDocument AND LedgerGLLineItem = _Extension.LedgerGLLineItem -- association [1..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