P_Fiarcn_Cust_Balance09
P_Fiarcn_Cust_Balance09 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_Fiarcn_Cust_Balance08) and exposes 48 fields with key fields CompanyCode, FiscalYear, FiscalPeriod, FiscalYearPeriod, GLAccount.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_Fiarcn_Cust_Balance08 | P_Fiarcn_Cust_Balance08 | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | bukrs | |
| P_FiscalYear | gjahr | |
| P_Language | sylangu | |
| P_CurrencyRole | fac_crcyrole |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PVFIARCNCUSTBAL9 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | FiscalYearPeriod | |||
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | AlternativeGLAccount | AlternativeGLAccount | Group Account | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | Customer | Customer | Sold-to Party | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | SpecialGLCode | SpecialGLCode | Special G/L Ind | |
| KEY | BusinessArea | BusinessArea | Business Area | |
| KEY | ProfitCenter | ProfitCenter | Profit Center | |
| KEY | Segment | Segment | Segment number | |
| KEY | AccountingDocumentType | AccountingDocumentType | Journal Entry Type | |
| KEY | DisplayCurrency | Display Currency | ||
| KEY | TransactionCurrency | TransactionCurrency | Transaction Currency | |
| CustomerAccountGroup | CustomerAccountGroup | Account group | ||
| CustomerVATRegistration | CustomerVATRegistration | VAT Registration No. | ||
| CustomerCountry | CustomerCountry | |||
| CustomerCityName | CustomerCityName | |||
| CustomerRegion | CustomerRegion | |||
| CustomerSearchText | CustomerSearchText | |||
| CustomerName | CustomerName | Name of Customer | ||
| BPCustomerName | BPCustomerName | Name of Customer | ||
| OrganizationBPName1 | OrganizationBPName1 | Name 1 | ||
| OrganizationBPName2 | OrganizationBPName2 | Name 2 | ||
| GLAccountName | GLAccountName | Short Text | ||
| AlternativeGLAccountName | AlternativeGLAccountName | |||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| CustBalGLAccountInfo | GLAccount | General Ledger | ||
| CustBalAltvGLAccountInfo | AlternativeGLAccount | Group Account | ||
| CustBalCustomerInfo | Customer | Sold-to Party | ||
| char90endasCustBalSupplierInfo | ||||
| CustBalCarryFwdAmtInDspCrcy | ||||
| CustBalDebitAmtInDspCrcy | ||||
| CustBalCreditAmtInDspCrcy | ||||
| CustBalYTDDebitAmtInDspCrcy | ||||
| CustBalYTDCrdtAmtInDspCrcy | ||||
| CustBalStartingBalAmtInDspCrcy | ||||
| CustBalEndingBalAmtInDspCrcy | ||||
| BalCarFwdAmtInTransacCrcy | ||||
| DebitAmountInTransCrcy | Debit Amt in DC | |||
| CreditAmountInTransCrcy | Credit Amt in DC | |||
| YTDDebitAmtInTransCrcy | ||||
| YTDCrdtAmtInTransCrcy | ||||
| StartingBalanceAmtInTransCrcy | ||||
| EndingBalanceAmtInTransCrcy |
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_Fiarcn_Cust_Balance09.
-- 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: PVFIARCNCUSTBAL9
-- Parameters: P_CompanyCode : bukrs, P_FiscalYear : gjahr, P_Language : sylangu, P_CurrencyRole : fac_crcyrole
CREATE VIEW P_Fiarcn_Cust_Balance09 AS
SELECT
CompanyCode,
FiscalYear,
FiscalPeriod,
concat(FiscalYear,concat( '.', substring(FiscalPeriod,2,2))) AS FiscalYearPeriod,
GLAccount,
AlternativeGLAccount,
BusinessPartner,
Customer,
Supplier,
SpecialGLCode,
BusinessArea,
ProfitCenter,
Segment,
AccountingDocumentType,
cast( DisplayCurrency as fiarcn_crcy_dsp ) AS DisplayCurrency,
TransactionCurrency,
CustomerAccountGroup,
CustomerVATRegistration,
CustomerCountry,
CustomerCityName,
CustomerRegion,
CustomerSearchText,
CustomerName,
BPCustomerName,
OrganizationBPName1,
OrganizationBPName2,
GLAccountName,
AlternativeGLAccountName,
BusinessPartnerName,
AssignmentReference,
GLAccount AS CustBalGLAccountInfo,
AlternativeGLAccount AS CustBalAltvGLAccountInfo,
Customer AS CustBalCustomerInfo,
case when Supplier <> '' then concat( concat(Supplier,' ('), concat(BusinessPartnerName,')') ) else cast ('' as abap.char(90)) end as CustBalSupplierInfo AS char90endasCustBalSupplierInfo,
cast( BalCarFwdAmtInDspCrcy as fiarcn_cfd_dsp ) AS CustBalCarryFwdAmtInDspCrcy,
cast( DebitAmountInDspCrcy as fiarcn_dr_dsp ) AS CustBalDebitAmtInDspCrcy,
cast( CreditAmountInDspCrcy as fiarcn_cr_dsp ) AS CustBalCreditAmtInDspCrcy,
cast( YTDDebitAmtInDspCrcy as fiarcn_ytd_dr_dsp ) AS CustBalYTDDebitAmtInDspCrcy,
cast( YTDCrdtAmtInDspCrcy as fiarcn_ytd_cr_dsp ) AS CustBalYTDCrdtAmtInDspCrcy,
cast( StartingBalAmtInDspCrcy as fiarcn_start_bal_dsp) AS CustBalStartingBalAmtInDspCrcy,
cast( EndingBalAmtInDspCrcy as fiarcn_end_bal_dsp) AS CustBalEndingBalAmtInDspCrcy,
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( YTDDebitAmtInTransCrcy as fiarcn_ytd_dr_wsl ) AS YTDDebitAmtInTransCrcy,
cast( YTDCrdtAmtInTransCrcy as fiarcn_ytd_cr_wsl ) AS YTDCrdtAmtInTransCrcy,
cast( StartingBalanceAmtInTransCrcy as fiarcn_start_bal_wsl) AS StartingBalanceAmtInTransCrcy,
cast( EndingBalanceAmtInTransCrcy as fiarcn_end_bal_wsl) AS EndingBalanceAmtInTransCrcy
FROM P_Fiarcn_Cust_Balance08
;
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