P_ML_Balance_Bcf
P_ML_Balance_Bcf is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemRawData, P_ML_CoCode_Ledger_BCF) and exposes 100 fields with key fields CompanyCode, Ledger, GLAccount, FiscalYear, AccountingDocument. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | it | inner |
| P_ML_CoCode_Ledger_BCF | P_ML_CoCode_Ledger_BCF | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_CalendarDate | calendardate |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialValuation | _MaterialValuation | _MaterialValuation.CostEstimate = it.CostEstimate and _MaterialValuation.Material = it.Product and _MaterialValuation.ValuationArea = it.ValuationArea |
| [0..1] | I_BusinessTransactionType | _BusinessTransactionType | _BusinessTransactionType.BusinessTransactionType = it.BusinessTransactionType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMLBALBCF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (100)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GLAccountLineItemRawData | CompanyCode | Receiver Company Code |
| KEY | Ledger | I_GLAccountLineItemRawData | SourceLedger | Source Ledger |
| KEY | GLAccount | I_GLAccountLineItemRawData | GLAccount | General Ledger |
| KEY | FiscalYear | I_GLAccountLineItemRawData | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | I_GLAccountLineItemRawData | LedgerGLLineItem | Journal Entry Item |
| KEY | Product | I_GLAccountLineItemRawData | Product | Product Sold |
| Material | I_GLAccountLineItemRawData | Product | Product Sold | |
| CostEstimate | I_GLAccountLineItemRawData | CostEstimate | Cost EstimateNo | |
| ChartOfAccounts | I_GLAccountLineItemRawData | ChartOfAccounts | Node Class | |
| AccountingDocumentType | I_GLAccountLineItemRawData | AccountingDocumentType | Journal Entry Type | |
| ValuationArea | I_GLAccountLineItemRawData | ValuationArea | Valuation Area | |
| InventoryValuationType | I_GLAccountLineItemRawData | InventoryValuationType | Valuation Type | |
| FiscalPeriod | I_GLAccountLineItemRawData | FiscalPeriod | Tax period | |
| FiscalYearVariant | I_GLAccountLineItemRawData | FiscalYearVariant | FY Variant | |
| LedgerFiscalYear | I_GLAccountLineItemRawData | LedgerFiscalYear | Ref. Year1 | |
| PostingDate | I_GLAccountLineItemRawData | PostingDate | Posting Date for GR | |
| MatlDocLatestPostgDate | I_GLAccountLineItemRawData | PostingDate | Posting Date for GR | |
| ReferenceDocument | I_GLAccountLineItemRawData | ReferenceDocument | Reference Document | |
| ReferenceDocumentType | I_GLAccountLineItemRawData | ReferenceDocumentType | Reference Document Type | |
| BusinessTransactionType | I_GLAccountLineItemRawData | BusinessTransactionType | Bus.transaction | |
| DocumentDate | I_GLAccountLineItemRawData | DocumentDate | Journal Entry Date | |
| ProfitCenter | I_GLAccountLineItemRawData | ProfitCenter | Profit Center | |
| CostCenter | I_GLAccountLineItemRawData | CostCenter | Cost Center | |
| Segment | I_GLAccountLineItemRawData | Segment | Segment number | |
| AccountingDocCreatedByUser | I_GLAccountLineItemRawData | AccountingDocCreatedByUser | User which created overhead document | |
| LastChangeDateTime | I_GLAccountLineItemRawData | LastChangeDateTime | Timestamp | |
| FiscalYearPeriod | I_GLAccountLineItemRawData | FiscalYearPeriod | Period/Year | |
| PurchasingDocument | I_GLAccountLineItemRawData | PurchasingDocument | Purchasing Document | |
| ProductionOrder | I_GLAccountLineItemRawData | OrderID | Order ID | |
| TransactionTypeDetermination | I_GLAccountLineItemRawData | TransactionTypeDetermination | Transaction Key | |
| MaterialGroup | I_GLAccountLineItemRawData | ProductGroup | Product Sold Group | |
| ProductGroup | I_GLAccountLineItemRawData | ProductGroup | Product Sold Group | |
| MaterialValuationClass | _MaterialValuation | MaterialValuationClass | Valuation Class | |
| InventoryValuationCategory | _MaterialValuation | InventoryValuationCategory | ||
| ControllingArea | I_GLAccountLineItemRawData | ControllingArea | Controlling Area | |
| Plant | I_GLAccountLineItemRawData | Plant | Valuation Area | |
| MaterialLedgerProcessType | I_GLAccountLineItemRawData | MaterialLedgerProcessType | ||
| MaterialLedgerCategory | I_GLAccountLineItemRawData | MaterialLedgerCategory | ||
| IsSupplierStockValuation | I_GLAccountLineItemRawData | IsSupplierStockValuation | ||
| InventorySpecialStockValnType | I_GLAccountLineItemRawData | InventorySpecialStockValnType | Valuation | |
| InventorySpclStkSalesDocument | I_GLAccountLineItemRawData | InventorySpclStkSalesDocument | ||
| InventorySpclStkSalesDocItm | I_GLAccountLineItemRawData | InventorySpclStkSalesDocItm | ||
| InvtrySpclStockWBSElmntIntID | I_GLAccountLineItemRawData | InvtrySpclStockWBSElmntIntID | ||
| InventorySpecialStockSupplier | I_GLAccountLineItemRawData | InventorySpecialStockSupplier | Vendor of Inv. | |
| FromFiscalYear | ml | FromFiscalYear | From Year | |
| CompanyCodeCurrencyRole | ml | CompanyCodeCurrencyRole | Curr./Val. Type | |
| GlobalCurrencyRole | ml | GlobalCurrencyRole | Curr./Val. Type | |
| FreeDefinedCurrency1Role | ml | FreeDefinedCurrency1Role | Curr./Val. Type | |
| FreeDefinedCurrency2Role | ml | FreeDefinedCurrency2Role | Curr./Val. Type | |
| FreeDefinedCurrency3Role | ml | FreeDefinedCurrency3Role | Curr./Val. Type | |
| FreeDefinedCurrency4Role | ml | FreeDefinedCurrency4Role | Curr./Val. Type | |
| FreeDefinedCurrency5Role | ml | FreeDefinedCurrency5Role | Curr./Val. Type | |
| FreeDefinedCurrency6Role | ml | FreeDefinedCurrency6Role | Curr./Val. Type | |
| FreeDefinedCurrency7Role | ml | FreeDefinedCurrency7Role | Curr./Val. Type | |
| FreeDefinedCurrency8Role | ml | FreeDefinedCurrency8Role | Curr./Val. Type | |
| CompanyCodeCurrency | I_GLAccountLineItemRawData | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | I_GLAccountLineItemRawData | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| SlsPriceAmountInCoCodeCrcy | I_GLAccountLineItemRawData | SlsPriceAmountInCoCodeCrcy | Sales Price Book Value | |
| GroupCurrency | I_GLAccountLineItemRawData | GlobalCurrency | GM Billing Element: Global Currency | |
| AmountInGroupCurrency | I_GLAccountLineItemRawData | AmountInGlobalCurrency | Amount in Global Currency | |
| FreeDefinedCurrency1 | I_GLAccountLineItemRawData | FreeDefinedCurrency1 | Freely Defined Currency 1 | |
| AmountInFreeDefinedCurrency1 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | |
| FreeDefinedCurrency2 | I_GLAccountLineItemRawData | FreeDefinedCurrency2 | Freely Defined Currency 2 | |
| AmountInFreeDefinedCurrency2 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency2 | Amount in Freely Defined Currency 2 | |
| FreeDefinedCurrency3 | I_GLAccountLineItemRawData | FreeDefinedCurrency3 | Freely Defined Currency 3 | |
| AmountInFreeDefinedCurrency3 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency3 | Amount in Freely Defined Currency 3 | |
| FreeDefinedCurrency4 | I_GLAccountLineItemRawData | FreeDefinedCurrency4 | Freely Defined Currency 4 | |
| AmountInFreeDefinedCurrency4 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency4 | Amount in Freely Defined Currency 4 | |
| FreeDefinedCurrency5 | I_GLAccountLineItemRawData | FreeDefinedCurrency5 | Freely Defined Currency 5 | |
| AmountInFreeDefinedCurrency5 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency5 | Amount in Freely Defined Currency 5 | |
| FreeDefinedCurrency6 | I_GLAccountLineItemRawData | FreeDefinedCurrency6 | Freely Defined Currency 6 | |
| AmountInFreeDefinedCurrency6 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency6 | Amount in Freely Defined Currency 6 | |
| FreeDefinedCurrency7 | I_GLAccountLineItemRawData | FreeDefinedCurrency7 | Freely Defined Currency 7 | |
| AmountInFreeDefinedCurrency7 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency7 | Amount in Freely Defined Currency 7 | |
| FreeDefinedCurrency8 | I_GLAccountLineItemRawData | FreeDefinedCurrency8 | Freely Defined Currency 8 | |
| AmountInFreeDefinedCurrency8 | I_GLAccountLineItemRawData | AmountInFreeDefinedCurrency8 | Amount in Freely Defined Currency 8 | |
| CostSourceUnit | I_GLAccountLineItemRawData | CostSourceUnit | Valuation UoM | |
| InventoryQty | I_GLAccountLineItemRawData | ValuationQuantity | ||
| _GLAccountInChartOfAccounts | I_GLAccountLineItemRawData | _GLAccountInChartOfAccounts | ||
| _ChartOfAccounts | I_GLAccountLineItemRawData | _ChartOfAccounts | ||
| _Segment | I_GLAccountLineItemRawData | _Segment | ||
| _CompanyCode | I_GLAccountLineItemRawData | _CompanyCode | ||
| _Ledger | I_GLAccountLineItemRawData | _Ledger | ||
| _ProfitCenter | I_GLAccountLineItemRawData | _ProfitCenter | ||
| _CostCenter | I_GLAccountLineItemRawData | _CostCenter | ||
| _CompanyCodeCurrency | I_GLAccountLineItemRawData | _CompanyCodeCurrency | ||
| _GlobalCurrency | I_GLAccountLineItemRawData | _GlobalCurrency | ||
| _FreeDefinedCurrency1 | I_GLAccountLineItemRawData | _FreeDefinedCurrency1 | ||
| _FreeDefinedCurrency2 | I_GLAccountLineItemRawData | _FreeDefinedCurrency2 | ||
| _FreeDefinedCurrency3 | I_GLAccountLineItemRawData | _FreeDefinedCurrency3 | ||
| _FreeDefinedCurrency4 | I_GLAccountLineItemRawData | _FreeDefinedCurrency4 | ||
| _FreeDefinedCurrency5 | I_GLAccountLineItemRawData | _FreeDefinedCurrency5 | ||
| _FreeDefinedCurrency6 | I_GLAccountLineItemRawData | _FreeDefinedCurrency6 | ||
| _FreeDefinedCurrency7 | I_GLAccountLineItemRawData | _FreeDefinedCurrency7 | ||
| _FreeDefinedCurrency8 | I_GLAccountLineItemRawData | _FreeDefinedCurrency8 | ||
| _CostSourceUnit | I_GLAccountLineItemRawData | _CostSourceUnit | ||
| _ControllingArea | I_GLAccountLineItemRawData | _ControllingArea | ||
| _Product | I_GLAccountLineItemRawData | _Product | ||
| _BusinessTransactionType | _BusinessTransactionType |
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_ML_Balance_Bcf.
-- 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.
-- Parameters: P_CalendarDate : calendardate
CREATE VIEW P_ML_Balance_Bcf AS
SELECT
it.CompanyCode AS CompanyCode,
it.SourceLedger AS Ledger,
it.GLAccount AS GLAccount,
it.FiscalYear AS FiscalYear,
it.AccountingDocument AS AccountingDocument,
it.LedgerGLLineItem AS LedgerGLLineItem,
it.Product AS Product,
it.Product AS Material,
it.CostEstimate AS CostEstimate,
it.ChartOfAccounts AS ChartOfAccounts,
it.AccountingDocumentType AS AccountingDocumentType,
it.ValuationArea AS ValuationArea,
it.InventoryValuationType AS InventoryValuationType,
it.FiscalPeriod AS FiscalPeriod,
it.FiscalYearVariant AS FiscalYearVariant,
it.LedgerFiscalYear AS LedgerFiscalYear,
it.PostingDate AS PostingDate,
it.PostingDate AS MatlDocLatestPostgDate,
it.ReferenceDocument AS ReferenceDocument,
it.ReferenceDocumentType AS ReferenceDocumentType,
it.BusinessTransactionType AS BusinessTransactionType,
it.DocumentDate AS DocumentDate,
it.ProfitCenter AS ProfitCenter,
it.CostCenter AS CostCenter,
it.Segment AS Segment,
it.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
it.LastChangeDateTime AS LastChangeDateTime,
it.FiscalYearPeriod AS FiscalYearPeriod,
it.PurchasingDocument AS PurchasingDocument,
it.OrderID AS ProductionOrder,
it.TransactionTypeDetermination AS TransactionTypeDetermination,
it.ProductGroup AS MaterialGroup,
it.ProductGroup AS ProductGroup,
_MaterialValuation.MaterialValuationClass AS MaterialValuationClass,
_MaterialValuation.InventoryValuationCategory AS InventoryValuationCategory,
it.ControllingArea AS ControllingArea,
it.Plant AS Plant,
it.MaterialLedgerProcessType AS MaterialLedgerProcessType,
it.MaterialLedgerCategory AS MaterialLedgerCategory,
it.IsSupplierStockValuation AS IsSupplierStockValuation,
it.InventorySpecialStockValnType AS InventorySpecialStockValnType,
it.InventorySpclStkSalesDocument AS InventorySpclStkSalesDocument,
it.InventorySpclStkSalesDocItm AS InventorySpclStkSalesDocItm,
it.InvtrySpclStockWBSElmntIntID AS InvtrySpclStockWBSElmntIntID,
it.InventorySpecialStockSupplier AS InventorySpecialStockSupplier,
ml.FromFiscalYear AS FromFiscalYear,
ml.CompanyCodeCurrencyRole AS CompanyCodeCurrencyRole,
ml.GlobalCurrencyRole AS GlobalCurrencyRole,
ml.FreeDefinedCurrency1Role AS FreeDefinedCurrency1Role,
ml.FreeDefinedCurrency2Role AS FreeDefinedCurrency2Role,
ml.FreeDefinedCurrency3Role AS FreeDefinedCurrency3Role,
ml.FreeDefinedCurrency4Role AS FreeDefinedCurrency4Role,
ml.FreeDefinedCurrency5Role AS FreeDefinedCurrency5Role,
ml.FreeDefinedCurrency6Role AS FreeDefinedCurrency6Role,
ml.FreeDefinedCurrency7Role AS FreeDefinedCurrency7Role,
ml.FreeDefinedCurrency8Role AS FreeDefinedCurrency8Role,
it.CompanyCodeCurrency AS CompanyCodeCurrency,
it.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
it.SlsPriceAmountInCoCodeCrcy AS SlsPriceAmountInCoCodeCrcy,
it.GlobalCurrency AS GroupCurrency,
it.AmountInGlobalCurrency AS AmountInGroupCurrency,
it.FreeDefinedCurrency1 AS FreeDefinedCurrency1,
it.AmountInFreeDefinedCurrency1 AS AmountInFreeDefinedCurrency1,
it.FreeDefinedCurrency2 AS FreeDefinedCurrency2,
it.AmountInFreeDefinedCurrency2 AS AmountInFreeDefinedCurrency2,
it.FreeDefinedCurrency3 AS FreeDefinedCurrency3,
it.AmountInFreeDefinedCurrency3 AS AmountInFreeDefinedCurrency3,
it.FreeDefinedCurrency4 AS FreeDefinedCurrency4,
it.AmountInFreeDefinedCurrency4 AS AmountInFreeDefinedCurrency4,
it.FreeDefinedCurrency5 AS FreeDefinedCurrency5,
it.AmountInFreeDefinedCurrency5 AS AmountInFreeDefinedCurrency5,
it.FreeDefinedCurrency6 AS FreeDefinedCurrency6,
it.AmountInFreeDefinedCurrency6 AS AmountInFreeDefinedCurrency6,
it.FreeDefinedCurrency7 AS FreeDefinedCurrency7,
it.AmountInFreeDefinedCurrency7 AS AmountInFreeDefinedCurrency7,
it.FreeDefinedCurrency8 AS FreeDefinedCurrency8,
it.AmountInFreeDefinedCurrency8 AS AmountInFreeDefinedCurrency8,
it.CostSourceUnit AS CostSourceUnit,
it.ValuationQuantity AS InventoryQty,
it._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
it._ChartOfAccounts AS _ChartOfAccounts,
it._Segment AS _Segment,
it._CompanyCode AS _CompanyCode,
it._Ledger AS _Ledger,
it._ProfitCenter AS _ProfitCenter,
it._CostCenter AS _CostCenter,
it._CompanyCodeCurrency AS _CompanyCodeCurrency,
it._GlobalCurrency AS _GlobalCurrency,
it._FreeDefinedCurrency1 AS _FreeDefinedCurrency1,
it._FreeDefinedCurrency2 AS _FreeDefinedCurrency2,
it._FreeDefinedCurrency3 AS _FreeDefinedCurrency3,
it._FreeDefinedCurrency4 AS _FreeDefinedCurrency4,
it._FreeDefinedCurrency5 AS _FreeDefinedCurrency5,
it._FreeDefinedCurrency6 AS _FreeDefinedCurrency6,
it._FreeDefinedCurrency7 AS _FreeDefinedCurrency7,
it._FreeDefinedCurrency8 AS _FreeDefinedCurrency8,
it._CostSourceUnit AS _CostSourceUnit,
it._ControllingArea AS _ControllingArea,
it._Product AS _Product
FROM P_ML_CoCode_Ledger_BCF
INNER JOIN I_GLAccountLineItemRawData AS it ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialValuation AS _MaterialValuation ON _MaterialValuation.CostEstimate = it.CostEstimate AND _MaterialValuation.Material = it.Product AND _MaterialValuation.ValuationArea = it.ValuationArea -- association [0..1]
LEFT OUTER JOIN I_BusinessTransactionType AS _BusinessTransactionType ON _BusinessTransactionType.BusinessTransactionType = it.BusinessTransactionType -- association [0..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