C_CN_SupplierBalance
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)
| Source | Alias | Join Type |
|---|---|---|
| P_CN_FiapSuplrBalance04 | P_CN_FiapSuplrBalance04 | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | bukrs | |
| P_FiscalYear | gjahr | |
| P_Language | sylangu | |
| P_KeyDate | sydate | |
| P_CurrencyRole | fac_crcyrole | |
| P_AlternativeGLAccount | fiapcn_display_altvglaccount |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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