C_CN_SupplierBalance

DDL: C_CN_SUPPLIERBALANCE SQL: CCNSUPLRBAL Type: view CONSUMPTION Package: GLO_FIN_CN

Supplier Balance

C_CN_SupplierBalance is a Consumption CDS View that provides data about "Supplier Balance" in SAP S/4HANA. It reads from 1 data source (P_CN_FiapSuplrBalance04) and exposes 52 fields. Part of development package GLO_FIN_CN.

Data Sources (1)

SourceAliasJoin Type
P_CN_FiapSuplrBalance04 P_CN_FiapSuplrBalance04 from

Parameters (6)

NameTypeDefault
P_CompanyCode bukrs
P_FiscalYear gjahr
P_Language sylangu
P_KeyDate sydate
P_CurrencyRole fac_crcyrole
P_AlternativeGLAccount fiapcn_display_altvglaccount

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCNSUPLRBAL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Search.searchable true view
EndUserText.label Supplier Balance view
Consumption.semanticObject Supplier view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (52)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
FiscalYear FiscalYear G/L Fiscal Year
FiscalPeriod FiscalPeriod Tax period
FiscalYearPeriod FiscalYearPeriod Period/Year
Customer Customer Sold-to Party
BusinessPartner BusinessPartner Issuing Authority
Supplier
BPSupplierName BPSupplierName Supplier Name
SuplrBalSupplierInfo Supplier Supplier
GLAccount GLAccount General Ledger
SearchannotationAlternativeGLAccount
GLAccountName GLAccountName G/L Account Name
SpecialGLCode SpecialGLCode Special G/L Ind
BusinessArea BusinessArea Business Area
ProfitCenter ProfitCenter Profit Center
ProfitCenterHierarchy
ProfitCenterHierarchyNode
Segment Segment Segment number
AccountingDocumentType AccountingDocumentType Journal Entry Type
DisplayCurrency Display Currency
TransactionCurrency TransactionCurrency Transaction Currency
SupplierAccountGroup SupplierAccountGroup Account group
SupplierVATRegistration SupplierVATRegistration VAT Registration No.
SupplierCountry SupplierCountry
SupplierCityName SupplierCityName Supplier City
SupplierRegion SupplierRegion
SupplierSearchText SupplierSearchText
SupplierName _Supplier SupplierName Supplier Name
BusinessPartnerName BusinessPartnerName Extracted Customer Name
AssignmentReference AssignmentReference Assignment
SuplrBalCarryFwdAmtInDspCrcy
SuplrBalDebitAmtInDspCrcy
SuplrBalCreditAmtInDspCrcy
AmountInCompanyCodeCurrency
SuplrBalYTDDebitAmtInDspCrcy
SuplrBalYTDCrdtAmtInDspCrcy
YTDAmtInLoclCrcy
StartingBalAmtInDspCrcy
EndingBalAmtInDspCrcy
BalCarFwdAmtInTransacCrcy
DebitAmountInTransCrcy Debit Amt in DC
CreditAmountInTransCrcy Credit Amt in DC
AmountInTransactionCurrency
YTDDebitAmtInTransCrcy
YTDCrdtAmtInTransCrcy
YrToDteAmtInTransacCrcy
StartingBalanceAmtInTransCrcy
EndingBalanceAmtInTransCrcy
_FiscalPeriodValueHelp _FiscalPeriodValueHelp
_CurrencyValueHelp _CurrencyValueHelp
DataControllerSet _Supplier DataControllerSet Data Ctrlr. Set
IsBusinessPurposeCompleted _Supplier IsBusinessPurposeCompleted Purpose Completed

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 C_CN_SupplierBalance.
-- 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: CCNSUPLRBAL
-- Parameters: P_CompanyCode : bukrs, P_FiscalYear : gjahr, P_Language : sylangu, P_KeyDate : sydate, P_CurrencyRole : fac_crcyrole, P_AlternativeGLAccount : fiapcn_display_altvglaccount

CREATE VIEW C_CN_SupplierBalance AS
SELECT
  CompanyCode,
  FiscalYear,
  FiscalPeriod,
  FiscalYearPeriod,
  Customer,
  BusinessPartner,
  BPSupplierName,
  Supplier AS SuplrBalSupplierInfo,
  GLAccount,
  GLAccountName,
  SpecialGLCode,
  BusinessArea,
  ProfitCenter,
  cast('' as fis_prctr_hryid_42) AS ProfitCenterHierarchy,
  cast('' as fis_prctr_hrynid_50) AS ProfitCenterHierarchyNode,
  Segment,
  AccountingDocumentType,
  cast ( DisplayCurrency as vdm_v_display_currency ) AS DisplayCurrency,
  TransactionCurrency,
  SupplierAccountGroup,
  SupplierVATRegistration,
  SupplierCountry,
  SupplierCityName,
  SupplierRegion,
  SupplierSearchText,
  _Supplier.SupplierName AS SupplierName,
  BusinessPartnerName,
  AssignmentReference,
  cast( BalCarFwdAmtInDspCrcy as fiarcn_cfd_dsp ) AS SuplrBalCarryFwdAmtInDspCrcy,
  cast( DebitAmountInDspCrcy as fiarcn_dr_dsp) AS SuplrBalDebitAmtInDspCrcy,
  cast( CreditAmountInDspCrcy as fiarcn_cr_dsp ) AS SuplrBalCreditAmtInDspCrcy,
  cast( DebitAmountInDspCrcy - CreditAmountInDspCrcy as fiarcn_cur_bal_dsp ) AS AmountInCompanyCodeCurrency,
  cast( YTDDebitAmtInDspCrcy as fiarcn_ytd_dr_dsp ) AS SuplrBalYTDDebitAmtInDspCrcy,
  cast( YTDCrdtAmtInDspCrcy as fiarcn_ytd_cr_dsp ) AS SuplrBalYTDCrdtAmtInDspCrcy,
  cast( YTDDebitAmtInDspCrcy - YTDCrdtAmtInDspCrcy as fiarcn_cur_year_bal_dsp ) AS YTDAmtInLoclCrcy,
  cast( StartingBalAmtInDspCrcy as fiarcn_start_bal_dsp) AS StartingBalAmtInDspCrcy,
  cast( EndingBalAmtInDspCrcy as fiarcn_end_bal_dsp) AS EndingBalAmtInDspCrcy,
  cast( BalCarFwdAmtInTransacCrcy as fiarcn_begin_bal_wsl ) AS BalCarFwdAmtInTransacCrcy,
  cast( DebitAmountInTransCrcy as fiarcn_dr_wsl ) AS DebitAmountInTransCrcy,
  cast( CreditAmountInTransCrcy as fiarcn_cr_wsl ) AS CreditAmountInTransCrcy,
  cast( DebitAmountInTransCrcy - CreditAmountInTransCrcy as fiarcn_cur_bal_wsl ) AS AmountInTransactionCurrency,
  cast( YTDDebitAmtInTransCrcy as fiarcn_ytd_dr_wsl ) AS YTDDebitAmtInTransCrcy,
  cast( YTDCrdtAmtInTransCrcy as fiarcn_ytd_cr_wsl ) AS YTDCrdtAmtInTransCrcy,
  cast( YTDDebitAmtInTransCrcy - YTDCrdtAmtInTransCrcy as fiarcn_cur_year_bal_wsl ) AS YrToDteAmtInTransacCrcy,
  cast( StartingBalanceAmtInTransCrcy as fiarcn_start_bal_wsl) AS StartingBalanceAmtInTransCrcy,
  cast( EndingBalanceAmtInTransCrcy as fiarcn_end_bal_wsl) AS EndingBalanceAmtInTransCrcy,
  _Supplier.DataControllerSet AS DataControllerSet,
  _Supplier.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM P_CN_FiapSuplrBalance04
;