P_CN_CADEAddlInfoForGLAcct
CADE Accounting Balance With Additional Information
P_CN_CADEAddlInfoForGLAcct is a Composite CDS View that provides data about "CADE Accounting Balance With Additional Information" in SAP S/4HANA. It reads from 3 data sources (P_CN_CADEAcctBalanceStructure, P_CN_CADEAcctgBalWFinStmntVers, P_CN_CADEAcctgBalWthAddlInfo) and exposes 59 fields with key fields CompanyCode, Ledger, GLAccount, FiscalYear, FiscalPeriod. Part of development package GLO_FIN_CADE_CN.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_CN_CADEAcctBalanceStructure | P_CN_CADEAcctBalanceStructure | union_all |
| P_CN_CADEAcctgBalWFinStmntVers | P_CN_CADEAcctgBalWFinStmntVers | from |
| P_CN_CADEAcctgBalWthAddlInfo | P_CN_CADEAcctgBalWthAddlInfo | left_outer |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | fis_bukrs | |
| P_Ledger | fis_rldnr | |
| P_FinancialStatementVariant | versn_011 | |
| P_FiscalYear | fis_gjahr | |
| P_FromFiscalPeriod | fins_fiscalperiod | |
| P_ToFiscalPeriod | fins_fiscalperiod | |
| P_IsSpecialPeriod | xfeld |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | PCADEGLAADDLINFO | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | GLAccount | GLAccount | ||
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| Supplier | ||||
| Customer | ||||
| CostCenter | ||||
| InternalOrder | ||||
| BillToParty | ||||
| BusinessArea | ||||
| BusinessProcess | ||||
| ControllingArea | ||||
| CustomerGroup | ||||
| DistributionChannel | ||||
| FunctionalArea | ||||
| Fund | ||||
| FundsCenter | ||||
| HouseBank | ||||
| HouseBankAccount | ||||
| Material | ||||
| MaterialGroup | ||||
| Plant | ||||
| ProfitCenter | ||||
| Project | ||||
| ProjectNetwork | ||||
| SalesDistrict | ||||
| SalesOrganization | ||||
| Segment | ||||
| ShipToParty | ||||
| SoldMaterial | ||||
| WBSElement | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| Currency | Currency | Valuation Crcy | ||
| ValueIsUsedForSubtotal | ValueIsUsedForSubtotal | |||
| DebitAmountInCoCodeCrcy | DebitAmountInCoCodeCrcy | Debit Amount in Company Code Currency | ||
| CreditAmountInCoCodeCrcy | CreditAmountInCoCodeCrcy | Credit Amount in Company Code Currency | ||
| OpeningBalanceAmtInCoCodeCrcy | OpeningBalanceAmtInCoCodeCrcy | |||
| EndingBalanceAmtInCoCodeCrcy | EndingBalanceAmtInCoCodeCrcy | |||
| P_CompanyCode | ||||
| P_FiscalYear | ||||
| P_Ledger | ||||
| P_FromFiscalPeriod | ||||
| P_ToFiscalPeriod | ||||
| KEY | Ledger | Ledger | ||
| KEY | GLAccount | ReportStructure | GLAccountWOPrefix | |
| KEY | FiscalYear | ReportStructure | FiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | ReportStructure | FiscalPeriod | Tax period |
| CompanyCodeCurrency | ReportStructure | CompanyCodeCurrency | Local Currency | |
| CompanyCodeCurrencyendasCurrency | ||||
| ValueIsUsedForSubtotal | ||||
| DebitAmountInCoCodeCrcy | Debit Amount in Company Code Currency | |||
| DebitAmountInTransCrcy | ||||
| CreditAmountInCoCodeCrcy | Credit Amount in Company Code Currency | |||
| CreditAmountInTransCrcy | ||||
| OpeningBalanceAmtInCoCodeCrcy | ||||
| OpeningBalanceAmtInTransCrcy | ||||
| EndingBalanceAmtInCoCodeCrcy | ||||
| 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_CN_CADEAddlInfoForGLAcct.
-- 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: PCADEGLAADDLINFO
-- Parameters: P_CompanyCode : fis_bukrs, P_Ledger : fis_rldnr, P_FinancialStatementVariant : versn_011, P_FiscalYear : fis_gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalPeriod : fins_fiscalperiod, P_IsSpecialPeriod : xfeld
CREATE VIEW P_CN_CADEAddlInfoForGLAcct AS
SELECT
CompanyCode,
Ledger,
GLAccount,
FiscalYear,
FiscalPeriod,
cast('' as md_supplier ) AS Supplier,
cast('' as kunnr ) AS Customer,
cast('' as fis_kostl ) AS CostCenter,
cast('' as fis_aufnr ) AS InternalOrder,
cast('' as kunre ) AS BillToParty,
cast('' as fis_rbusa ) AS BusinessArea,
cast('' as co_prznr) AS BusinessProcess,
cast('' as fis_kokrs ) AS ControllingArea,
cast('' as kdgrp ) AS CustomerGroup,
cast('' as vtweg ) AS DistributionChannel,
cast('' as fm_farea) AS FunctionalArea,
cast('' as bp_geber ) AS Fund,
cast('' as farp_fistl ) AS FundsCenter,
cast('' as farp_hbkid ) AS HouseBank,
cast('' as fac_hktid ) AS HouseBankAccount,
cast('' as matnr) AS Material,
cast('' as fins_matkl_pa) AS MaterialGroup,
cast('' as werks_d ) AS Plant,
cast('' as fis_prctr ) AS ProfitCenter,
cast('' as ps_pspid ) AS Project,
cast('' as nplnr ) AS ProjectNetwork,
cast('' as bzirk ) AS SalesDistrict,
cast('' as vkorg ) AS SalesOrganization,
cast('' as fb_segment ) AS Segment,
cast('' as kunwe ) AS ShipToParty,
cast('' as fins_matnr_pa ) AS SoldMaterial,
cast('' as ps_posid ) AS WBSElement,
CompanyCodeCurrency,
Currency,
ValueIsUsedForSubtotal,
DebitAmountInCoCodeCrcy,
CreditAmountInCoCodeCrcy,
OpeningBalanceAmtInCoCodeCrcy,
EndingBalanceAmtInCoCodeCrcy,
P_IsSpecialPeriod: :P_IsSpecialPeriod) as ReportStructure left outer join P_CN_CADEAcctgBalWthAddlInfo( P_CompanyCode : $parameters.P_CompanyCode AS P_CompanyCode,
P_FiscalYear : $parameters.P_FiscalYear AS P_FiscalYear,
P_Ledger : $parameters.P_Ledger AS P_Ledger,
P_FromFiscalPeriod : $parameters.P_FromFiscalPeriod AS P_FromFiscalPeriod,
P_ToFiscalPeriod : $parameters.P_ToFiscalPeriod AS P_ToFiscalPeriod,
case when TransactionCurrency is not null then TransactionCurrency else ReportStructure.CompanyCodeCurrency end as Currency AS CompanyCodeCurrencyendasCurrency,
sum(DebitAmountInTransCrcy) AS DebitAmountInTransCrcy,
sum(CreditAmountInTransCrcy) AS CreditAmountInTransCrcy,
sum(OpeningBalanceAmtInTransCrcy) AS OpeningBalanceAmtInTransCrcy,
sum(EndingBalanceAmtInTransCrcy) AS EndingBalanceAmtInTransCrcy
FROM P_CN_CADEAcctgBalWFinStmntVers
LEFT OUTER JOIN P_CN_CADEAcctgBalWthAddlInfo ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_CN_CADEAcctBalanceStructure
;
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