C_CN_CADEJournalEntry
CADE Journal Entry
C_CN_CADEJournalEntry is a Consumption CDS View that provides data about "CADE Journal Entry" in SAP S/4HANA. It reads from 1 data source (I_CN_CADEJournalEntry) and exposes 64 fields with key fields CompanyCode, OriginAccountingDocument, AccountingDocumentItem, FiscalYear, Ledger. It has 3 associations to related views. Part of development package GLO_FIN_CADE_CN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CN_CADEJournalEntry | I_CN_CADEJournalEntry | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | fis_bukrs | |
| P_Ledger | fis_rldnr | |
| P_FiscalYear | fis_gjahr | |
| P_FromFiscalPeriod | fins_fiscalperiod | |
| P_ToFiscalPeriod | fins_fiscalperiod | |
| P_Language | sylangu | |
| P_AlternativeGLAccount | cade_xfeld |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CN_CADEJournalEntryMapping | _DocumentType | $projection.AccountingDocumentType = _DocumentType.AccountingDocumentType and $projection.CompanyCode = _DocumentType.CompanyCode and $projection.CN_CADENatlStdRelVersion = _DocumentType.CN_CADENatlStdRelVersion |
| [0..1] | I_CN_CADEJournalEntryDocType | CADEJournalEntryDocType | $projection.CompanyCode = CADEJournalEntryDocType.CompanyCode and CADEJournalEntryDocType.CN_CADEDocumentTypeUsage = '1' and CADEJournalEntryDocType.IsDefaultValue = 'X' and CADEJournalEntryDocType.CN_CADENatlStdRelVersion = $projection.CN_CADENatlStdRelVersion |
| [0..1] | I_Currency | _Currency | $projection.Currency = _Currency.Currency |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CCADEJOURNLENT | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| Search.searchable | true | view | |
| EndUserText.label | CADE Journal Entry | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | JournalEntryItem | CompanyCode | Receiver Company Code |
| KEY | OriginAccountingDocument | JournalEntryItem | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | JournalEntryItem | LedgerGLLineItem | Journal Entry Item |
| KEY | FiscalYear | JournalEntryItem | FiscalYear | G/L Fiscal Year |
| KEY | Ledger | JournalEntryItem | Ledger | Ledger |
| KEY | CN_CADENatlStdRelVersion | CN_CADENatlStdRelVersion | ||
| FiscalPeriod | ||||
| PostingDate | JournalEntryItem | PostingDate | Posting Date for GR | |
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| Currency | Currency | Valuation Crcy | ||
| CurrencyISOCode | _Currency | CurrencyISOCode | Document Currency | |
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| Quantity | Value | |||
| DebitAmountInTransCrcy | ||||
| DebitAmountInCoCodeCrcy | ||||
| ExchangeRateType | ||||
| PaymentMethod | _OperationalAcctgDocItem | PaymentMethod | Pymt Meth. | |
| ExchangeRate | ExchangeRate | Exchange rate | ||
| CreditAmountInTransCrcy | ||||
| CreditAmountInCoCodeCrcy | ||||
| char1endasCN_JournalEntryIsCADEPosted | ||||
| char1endasIsCancelled | ||||
| AlternativeReferenceDocument | AlternativeReferenceDocument | Alternative Reference Document | ||
| GLAccount0endasGLAccount | ||||
| CN_CADEOriginalPaymentDocType | CN_CADEOriginalPaymentDocType | |||
| CN_CADEOriginalPaymentDocument | CN_CADEOriginalPaymentDocument | |||
| PaymentDocumentPostingDate | PaymentDocumentPostingDate | |||
| CN_CADEJournalEntryBookKeeper | ||||
| CN_CADEJournalEntryReviewer | ||||
| CN_NmbrOfCADEJournalEntrAttchs | ||||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| CostCenter | CostCenter | Cost Center | ||
| InternalOrder | InternalOrder | Order | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| BusinessArea | BusinessArea | Business Area | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CustomerGroup | CustomerGroup | Customer Group | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| Fund | Fund | Sender Fund | ||
| FundsCenter | FundsCenter | Funds Center | ||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| Project | Project | WBS Element | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| Segment | Segment | Segment number | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| SoldMaterial | SoldMaterial | Product Sold | ||
| WBSElement | WBSElement | WBS Internal ID | ||
| FreightSupplier | FreightSupplier | Supplier | ||
| SiteCustomer | SiteCustomer | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer |
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_CADEJournalEntry.
-- 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: CCADEJOURNLENT
-- Parameters: P_CompanyCode : fis_bukrs, P_Ledger : fis_rldnr, P_FiscalYear : fis_gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalPeriod : fins_fiscalperiod, P_Language : sylangu, P_AlternativeGLAccount : cade_xfeld
CREATE VIEW C_CN_CADEJournalEntry AS
SELECT
JournalEntryItem.CompanyCode AS CompanyCode,
JournalEntryItem.AccountingDocument AS OriginAccountingDocument,
JournalEntryItem.LedgerGLLineItem AS AccountingDocumentItem,
JournalEntryItem.FiscalYear AS FiscalYear,
JournalEntryItem.Ledger AS Ledger,
CN_CADENatlStdRelVersion,
ltrim(JournalEntryItem.FiscalPeriod,'0') AS FiscalPeriod,
JournalEntryItem.PostingDate AS PostingDate,
AccountingDocumentType,
AccountingDocumentHeaderText,
Currency,
_Currency.CurrencyISOCode AS CurrencyISOCode,
CompanyCodeCurrency,
BaseUnit,
DebitCreditCode,
cast(Quantity as abap.quan( 20, 6 )) AS Quantity,
cast(JournalEntryItem.DebitAmountInTransCrcy as abap.char( 30 )) AS DebitAmountInTransCrcy,
cast(JournalEntryItem.DebitAmountInCoCodeCrcy as abap.char( 30 )) AS DebitAmountInCoCodeCrcy,
_OperationalAcctgDocItem._JournalEntry.ExchangeRateType AS ExchangeRateType,
_OperationalAcctgDocItem.PaymentMethod AS PaymentMethod,
ExchangeRate,
cast(((-1)*JournalEntryItem.CreditAmountInTransCrcy) as abap.char( 30 )) AS CreditAmountInTransCrcy,
cast(((-1)*JournalEntryItem.CreditAmountInCoCodeCrcy) as abap.char( 30 )) AS CreditAmountInCoCodeCrcy,
case when AccountingDocumentCategory = '' then cast ('1' as abap.char( 1 )) when AccountingDocumentCategory != '' then cast ('0' as abap.char( 1 )) end as CN_JournalEntryIsCADEPosted AS char1endasCN_JournalEntryIsCADEPosted,
case when IsReversed = '' then cast ('0' as abap.char( 1 )) when IsReversed != '' then cast ('1' as abap.char( 1 )) end as IsCancelled AS char1endasIsCancelled,
AlternativeReferenceDocument,
case :P_AlternativeGLAccount when 'X' then case when AlternativeGLAccount != '' then ltrim(AlternativeGLAccount,'0') when AlternativeGLAccount = '' and AlternativeGLAccountExternal !='' then LTRIM( AlternativeGLAccountExternal,'0') when AlternativeGLAccount = '' and AlternativeGLAccountExternal ='' then ltrim(JournalEntryItem.GLAccount,'0') end when ' ' then ltrim(JournalEntryItem.GLAccount,'0') end as GLAccount AS GLAccount0endasGLAccount,
CN_CADEOriginalPaymentDocType,
CN_CADEOriginalPaymentDocument,
PaymentDocumentPostingDate,
substring(CN_CADEJournalEntryBookKeeper ,1,30) AS CN_CADEJournalEntryBookKeeper,
substring(CN_CADEJournalEntryReviewer, 1,30) AS CN_CADEJournalEntryReviewer,
LTRIM(NmbrOfPages,'0') AS CN_NmbrOfCADEJournalEntrAttchs,
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,
FreightSupplier,
SiteCustomer
FROM I_CN_CADEJournalEntry
LEFT OUTER JOIN I_CN_CADEJournalEntryMapping AS _DocumentType ON AccountingDocumentType = _DocumentType.AccountingDocumentType AND CompanyCode = _DocumentType.CompanyCode AND CN_CADENatlStdRelVersion = _DocumentType.CN_CADENatlStdRelVersion -- association [0..1]
LEFT OUTER JOIN I_CN_CADEJournalEntryDocType AS CADEJournalEntryDocType ON CompanyCode = CADEJournalEntryDocType.CompanyCode AND CADEJournalEntryDocType.CN_CADEDocumentTypeUsage = '1' AND CADEJournalEntryDocType.IsDefaultValue = 'X' AND CADEJournalEntryDocType.CN_CADENatlStdRelVersion = CN_CADENatlStdRelVersion -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency -- association [0..1]
;
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