P_CABusPrtnBalCarryFwdIntfc
P_CABusPrtnBalCarryFwdIntfc is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_CABusPrtnToDtCarryFwdAmt) and exposes 17 fields with key fields CompanyCode, ChartOfAccounts, FiscalYear, CountryChartOfAccounts, BusinessPartner. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CABusPrtnToDtCarryFwdAmt | P_CABusPrtnToDtCarryFwdAmt | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ToPostingDate | fis_budat_to | |
| P_CompanyCode | fis_bukrs |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_RetainedEarningsGLAccount | _RetEarnGLAccount | $projection.ChartOfAccounts = _RetEarnGLAccount.ChartOfAccounts and _RetEarnGLAccount.ProfitLossAccountType = 'X' |
| [0..1] | I_GLAccountText | _GLAcctInChartOfAccountsText | $projection.ChartOfAccounts = _GLAcctInChartOfAccountsText.ChartOfAccounts and $projection.GLAccount = _GLAcctInChartOfAccountsText.GLAccount and _GLAcctInChartOfAccountsText.Language = $session.system_language |
| [0..1] | I_GLAccountText | _GLAltAcctCOAText | $projection.CountryChartOfAccounts = _GLAltAcctCOAText.ChartOfAccounts and $projection.AlternativeGLAccount = _GLAltAcctCOAText.GLAccount and _GLAltAcctCOAText.Language = $session.system_language |
| [1..1] | I_BusinessPartner | _BusinessPartner | _BusinessPartner.BusinessPartner = $projection.BusinessPartner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | ChartOfAccounts | ChartOfAccounts | Node Class | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | CountryChartOfAccounts | CountryChartOfAccounts | Chart of Accts | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | TransactionCurrency | TransactionCurrency | Transaction Currency | |
| KEY | CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | |
| KEY | GLAccount | GLAccount | General Ledger | |
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| AmountInLocalCurrency | AmountInLocalCurrency | Local Crcy Amt | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| FiscalYearStartDate | FiscalYearStartDate | |||
| _RetEarnGLAccount | _RetEarnGLAccount | |||
| _GLAcctInChartOfAccountsText | _GLAcctInChartOfAccountsText | |||
| _GLAltAcctCOAText | _GLAltAcctCOAText | |||
| _BusinessPartner | _BusinessPartner |
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_CABusPrtnBalCarryFwdIntfc.
-- 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_ToPostingDate : fis_budat_to, P_CompanyCode : fis_bukrs
CREATE VIEW P_CABusPrtnBalCarryFwdIntfc AS
SELECT
CompanyCode,
ChartOfAccounts,
FiscalYear,
CountryChartOfAccounts,
BusinessPartner,
TransactionCurrency,
CompanyCodeCurrency,
GLAccount,
AlternativeGLAccount,
AmountInLocalCurrency,
AmountInTransactionCurrency,
FiscalPeriod,
FiscalYearStartDate
FROM P_CABusPrtnToDtCarryFwdAmt
LEFT OUTER JOIN I_RetainedEarningsGLAccount AS _RetEarnGLAccount ON ChartOfAccounts = _RetEarnGLAccount.ChartOfAccounts AND _RetEarnGLAccount.ProfitLossAccountType = 'X' -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAcctInChartOfAccountsText ON ChartOfAccounts = _GLAcctInChartOfAccountsText.ChartOfAccounts AND GLAccount = _GLAcctInChartOfAccountsText.GLAccount AND _GLAcctInChartOfAccountsText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAltAcctCOAText ON CountryChartOfAccounts = _GLAltAcctCOAText.ChartOfAccounts AND AlternativeGLAccount = _GLAltAcctCOAText.GLAccount AND _GLAltAcctCOAText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON _BusinessPartner.BusinessPartner = BusinessPartner -- 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