P_CABusPrtnBalCarryFwdIntfc

DDL: P_CABUSPRTNBALCARRYFWDINTFC Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
P_CABusPrtnToDtCarryFwdAmt P_CABusPrtnToDtCarryFwdAmt from

Parameters (2)

NameTypeDefault
P_ToPostingDate fis_budat_to
P_CompanyCode fis_bukrs

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;