P_FR_FECBusinessPartnerBalCA
Business Partner Balance FR FEC
P_FR_FECBusinessPartnerBalCA is a Consumption CDS View that provides data about "Business Partner Balance FR FEC" in SAP S/4HANA. It reads from 2 data sources (I_CADocumentBPItemPhysical, P_FR_FECPrevFsclYearDet) and exposes 14 fields with key fields CompanyCode, ChartOfAccounts, CountryChartOfAccounts, BusinessPartner, TransactionCurrency. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CADocumentBPItemPhysical | _BPItem | from |
| P_FR_FECPrevFsclYearDet | _CompFisc | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_FiscalYear | fis_gjahr |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompCode | $projection.CompanyCode = _CompCode.CompanyCode |
| [0..1] | I_RetainedEarningsGLAccount | _RetEarnGLAccount | $projection.ChartOfAccounts = _RetEarnGLAccount.ChartOfAccounts and _RetEarnGLAccount.ProfitLossAccountType = 'X' |
| [0..1] | I_GLAccountInCompanyCode | _AlternateGLAcctinCompany | $projection.GLAccount = _AlternateGLAcctinCompany.GLAccount and $projection.CompanyCode = _AlternateGLAcctinCompany.CompanyCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PBPBALANCECARR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Business Partner Balance FR FEC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CADocumentBPItemPhysical | CompanyCode | Receiver Company Code |
| KEY | ChartOfAccounts | _CompCode | ChartOfAccounts | Node Class |
| KEY | CountryChartOfAccounts | _CompCode | CountryChartOfAccounts | Chart of Accts |
| KEY | BusinessPartner | I_CADocumentBPItemPhysical | BusinessPartner | Issuing Authority |
| KEY | TransactionCurrency | I_CADocumentBPItemPhysical | TransactionCurrency | Transaction Currency |
| KEY | CompanyCodeCurrency | I_CADocumentBPItemPhysical | CompanyCodeCurrency | Local Currency |
| KEY | GLAccount | I_CADocumentBPItemPhysical | CAReconciliationAccount | G/L Account |
| AmountInLocalCurrency | ||||
| AmountInTransactionCurrency | ||||
| FiscalYearStartDate | P_FR_FECPrevFsclYearDet | FiscalYearStartDate | ||
| FiscalPeriod | P_FR_FECPrevFsclYearDet | FiscalPeriod | Tax period | |
| _CompCode | _CompCode | |||
| _RetEarnGLAccount | _RetEarnGLAccount | |||
| _AlternateGLAcctinCompany | _AlternateGLAcctinCompany |
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_FR_FECBusinessPartnerBalCA.
-- 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: PBPBALANCECARR
-- Parameters: P_FiscalYear : fis_gjahr
CREATE VIEW P_FR_FECBusinessPartnerBalCA AS
SELECT
_BPItem.CompanyCode AS CompanyCode,
_CompCode.ChartOfAccounts AS ChartOfAccounts,
_CompCode.CountryChartOfAccounts AS CountryChartOfAccounts,
_BPItem.BusinessPartner AS BusinessPartner,
_BPItem.TransactionCurrency AS TransactionCurrency,
_BPItem.CompanyCodeCurrency AS CompanyCodeCurrency,
_BPItem.CAReconciliationAccount AS GLAccount,
sum( _BPItem.CAAmountInLocalCurrency) AS AmountInLocalCurrency,
sum( _BPItem.CAAmountInTransactionCurrency) AS AmountInTransactionCurrency,
_CompFisc.FiscalYearStartDate AS FiscalYearStartDate,
_CompFisc.FiscalPeriod AS FiscalPeriod
FROM I_CADocumentBPItemPhysical AS _BPItem
INNER JOIN P_FR_FECPrevFsclYearDet AS _CompFisc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_RetainedEarningsGLAccount AS _RetEarnGLAccount ON ChartOfAccounts = _RetEarnGLAccount.ChartOfAccounts AND _RetEarnGLAccount.ProfitLossAccountType = 'X' -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _AlternateGLAcctinCompany ON GLAccount = _AlternateGLAcctinCompany.GLAccount AND CompanyCode = _AlternateGLAcctinCompany.CompanyCode -- 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