I_CN_CADEJournalEntry

DDL: I_CN_CADEJOURNALENTRY SQL: ICADEJOURNLENTRY Type: view COMPOSITE

CADE Journal Entry

I_CN_CADEJournalEntry is a Composite CDS View that provides data about "CADE Journal Entry" in SAP S/4HANA. It reads from 1 data source (I_CN_CADEJrnlEntryWthAddlInfo) and exposes 68 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear, Ledger. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CN_CADEJrnlEntryWthAddlInfo GLAccountLineItem from

Parameters (6)

NameTypeDefault
P_CompanyCode fis_bukrs
P_Ledger fis_rldnr
P_FiscalYear fis_gjahr
P_FromFiscalPeriod fins_fiscalperiod
P_ToFiscalPeriod fins_fiscalperiod
P_Language sylangu

Associations (6)

CardinalityTargetAliasCondition
[0..1] P_CN_CADEBillofExchangeInfo BillofExchange GLAccountLineItem.FiscalYear = BillofExchange.gjahr and GLAccountLineItem.AccountingDocument = BillofExchange.belnr and GLAccountLineItem.CompanyCode = BillofExchange.bukrs and GLAccountLineItem.LedgerGLLineItem = BillofExchange.buzei
[0..1] I_CN_CADEStatutoryReportTypeT _checkDomain _checkDomain.SAPDataDictionaryDomain = 'IDPOS' and _checkDomain.Language = :P_Language and _checkDomain.DomainValue = '2'
[0..1] I_CN_CADEStatutoryReportTypeT _BOEDomain _BOEDomain.SAPDataDictionaryDomain = 'IDPOS' and _BOEDomain.Language = :P_Language and _BOEDomain.DomainValue = '1'
[0..1] I_OperationalAcctgDocItem _OperationalAcctgDocItem $projection.CompanyCode = _OperationalAcctgDocItem.CompanyCode and $projection.FiscalYear = _OperationalAcctgDocItem.FiscalYear and $projection.AccountingDocument = _OperationalAcctgDocItem.AccountingDocument and $projection.LedgerGLLineItem = _OperationalAcctgDocItem.AccountingDocumentItem
[0..1] P_CN_CADEINCOMINGCHECK _IncgChk $projection.AccountingDocument = _IncgChk.BankLedgerDocument and $projection.FiscalYear = _IncgChk.FiscalYear and $projection.CompanyCode = _IncgChk.CompanyCode
[0..1] I_OutgoingCheck _OutgoingCheck $projection.CompanyCode = _OutgoingCheck.PaymentCompanyCode and $projection.FiscalYear = _OutgoingCheck.FiscalYear and $projection.AccountingDocument = _OutgoingCheck.PaymentDocument and _OutgoingCheck.ChequeIsCashed = 'X'

Annotations (12)

NameValueLevelField
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AbapCatalog.preserveKey true view
EndUserText.label CADE Journal Entry view
AbapCatalog.sqlViewName ICADEJOURNLENTRY view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE 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
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (68)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CN_CADEJrnlEntryWthAddlInfo CompanyCode Receiver Company Code
KEY AccountingDocument I_CN_CADEJrnlEntryWthAddlInfo AccountingDocument Journal Entry
KEY AccountingDocumentItem I_CN_CADEJrnlEntryWthAddlInfo LedgerGLLineItem Journal Entry Item
KEY FiscalYear I_CN_CADEJrnlEntryWthAddlInfo FiscalYear G/L Fiscal Year
KEY Ledger I_CN_CADEJrnlEntryWthAddlInfo Ledger Ledger
KEY CN_CADENatlStdRelVersion I_CN_CADEJrnlEntryWthAddlInfo CN_CADENatlStdRelVersion
FiscalPeriod I_CN_CADEJrnlEntryWthAddlInfo FiscalPeriod Tax period
LedgerGLLineItem
PostingDate I_CN_CADEJrnlEntryWthAddlInfo PostingDate Posting Date for GR
AccountingDocumentType _JournalEntry AccountingDocumentType Journal Entry Type
AccountingDocumentHeaderText _JournalEntry AccountingDocumentHeaderText Doc.Header Text
GLAccount I_CN_CADEJrnlEntryWthAddlInfo GLAccount General Ledger
Currency _JournalEntry TransactionCurrency Transaction Currency
CompanyCodeCurrency _JournalEntry CompanyCodeCurrency Local Currency
BaseUnit I_CN_CADEJrnlEntryWthAddlInfo BaseUnit Unit of Measure
DebitCreditCode I_CN_CADEJrnlEntryWthAddlInfo DebitCreditCode Single-Character Flag
Quantity Quantity Value
DebitAmountInTransCrcy I_CN_CADEJrnlEntryWthAddlInfo DebitAmountInTransCrcy Debit Amt in DC
DebitAmountInCoCodeCrcy I_CN_CADEJrnlEntryWthAddlInfo DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
CN_CADECreditQuantity Quantity Value
CreditAmountInTransCrcy I_CN_CADEJrnlEntryWthAddlInfo CreditAmountInTransCrcy Credit Amt in DC
CreditAmountInCoCodeCrcy I_CN_CADEJrnlEntryWthAddlInfo CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
DocumentItemText I_CN_CADEJrnlEntryWthAddlInfo DocumentItemText Text
AccountingDocCreatedByUser _JournalEntry AccountingDocCreatedByUser User which created overhead document
AccountingDocumentCategory _JournalEntry AccountingDocumentCategory Journal Entry Category
IsReversed _JournalEntry IsReversed Reversed?
AlternativeReferenceDocument
FinancialAccountType I_CN_CADEJrnlEntryWthAddlInfo FinancialAccountType Fin. Account Type
CN_CADEJournalEntryBookKeeper I_CN_CADEJrnlEntryWthAddlInfo CN_CADEJournalEntryBookKeeper
CN_CADEJournalEntryReviewer I_CN_CADEJrnlEntryWthAddlInfo CN_CADEJournalEntryReviewer
AlternativeGLAccount AlternativeGLAccount Group Account
AlternativeGLAccountExternal AlternativeGLAccountExternal Group Account
NmbrOfPages _JournalEntry NmbrOfPages SDS Number of Pages
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
Language _checkDomain Language Report Text Language
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
_OutgoingCheck _OutgoingCheck
_OperationalAcctgDocItem _OperationalAcctgDocItem
FreightSupplier FreightSupplier Supplier
SiteCustomer SiteCustomer Sold-to Party
_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 I_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: ICADEJOURNLENTRY
-- Parameters: P_CompanyCode : fis_bukrs, P_Ledger : fis_rldnr, P_FiscalYear : fis_gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalPeriod : fins_fiscalperiod, P_Language : sylangu

CREATE VIEW I_CN_CADEJournalEntry AS
SELECT
  GLAccountLineItem.CompanyCode AS CompanyCode,
  GLAccountLineItem.AccountingDocument AS AccountingDocument,
  GLAccountLineItem.LedgerGLLineItem AS AccountingDocumentItem,
  GLAccountLineItem.FiscalYear AS FiscalYear,
  GLAccountLineItem.Ledger AS Ledger,
  GLAccountLineItem.CN_CADENatlStdRelVersion AS CN_CADENatlStdRelVersion,
  GLAccountLineItem.FiscalPeriod AS FiscalPeriod,
  cast(RIGHT(GLAccountLineItem.LedgerGLLineItem,3) as farp_buzei) AS LedgerGLLineItem,
  GLAccountLineItem.PostingDate AS PostingDate,
  _JournalEntry.AccountingDocumentType AS AccountingDocumentType,
  _JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  GLAccountLineItem.GLAccount AS GLAccount,
  _JournalEntry.TransactionCurrency AS Currency,
  _JournalEntry.CompanyCodeCurrency AS CompanyCodeCurrency,
  GLAccountLineItem.BaseUnit AS BaseUnit,
  GLAccountLineItem.DebitCreditCode AS DebitCreditCode,
  Quantity,
  GLAccountLineItem.DebitAmountInTransCrcy AS DebitAmountInTransCrcy,
  GLAccountLineItem.DebitAmountInCoCodeCrcy AS DebitAmountInCoCodeCrcy,
  Quantity AS CN_CADECreditQuantity,
  GLAccountLineItem.CreditAmountInTransCrcy AS CreditAmountInTransCrcy,
  GLAccountLineItem.CreditAmountInCoCodeCrcy AS CreditAmountInCoCodeCrcy,
  GLAccountLineItem.DocumentItemText AS DocumentItemText,
  _JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
  _JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
  _JournalEntry.IsReversed AS IsReversed,
  cast(_JournalEntry.AlternativeReferenceDocument as fis_xblnr_alt_wo_exit preserving type) AS AlternativeReferenceDocument,
  GLAccountLineItem.FinancialAccountType AS FinancialAccountType,
  GLAccountLineItem.CN_CADEJournalEntryBookKeeper AS CN_CADEJournalEntryBookKeeper,
  GLAccountLineItem.CN_CADEJournalEntryReviewer AS CN_CADEJournalEntryReviewer,
  AlternativeGLAccount,
  AlternativeGLAccountExternal,
  _JournalEntry.NmbrOfPages AS NmbrOfPages,
  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,
  _checkDomain.Language AS Language,
  AmountInTransactionCurrency,
  FreightSupplier,
  SiteCustomer
FROM I_CN_CADEJrnlEntryWthAddlInfo AS GLAccountLineItem
LEFT OUTER JOIN P_CN_CADEBillofExchangeInfo AS BillofExchange ON GLAccountLineItem.FiscalYear = BillofExchange.gjahr AND GLAccountLineItem.AccountingDocument = BillofExchange.belnr AND GLAccountLineItem.CompanyCode = BillofExchange.bukrs AND GLAccountLineItem.LedgerGLLineItem = BillofExchange.buzei  -- association [0..1]
LEFT OUTER JOIN I_CN_CADEStatutoryReportTypeT AS _checkDomain ON _checkDomain.SAPDataDictionaryDomain = 'IDPOS' AND _checkDomain.Language = :P_Language AND _checkDomain.DomainValue = '2'  -- association [0..1]
LEFT OUTER JOIN I_CN_CADEStatutoryReportTypeT AS _BOEDomain ON _BOEDomain.SAPDataDictionaryDomain = 'IDPOS' AND _BOEDomain.Language = :P_Language AND _BOEDomain.DomainValue = '1'  -- association [0..1]
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _OperationalAcctgDocItem ON CompanyCode = _OperationalAcctgDocItem.CompanyCode AND FiscalYear = _OperationalAcctgDocItem.FiscalYear AND AccountingDocument = _OperationalAcctgDocItem.AccountingDocument AND LedgerGLLineItem = _OperationalAcctgDocItem.AccountingDocumentItem  -- association [0..1]
LEFT OUTER JOIN P_CN_CADEINCOMINGCHECK AS _IncgChk ON AccountingDocument = _IncgChk.BankLedgerDocument AND FiscalYear = _IncgChk.FiscalYear AND CompanyCode = _IncgChk.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_OutgoingCheck AS _OutgoingCheck ON CompanyCode = _OutgoingCheck.PaymentCompanyCode AND FiscalYear = _OutgoingCheck.FiscalYear AND AccountingDocument = _OutgoingCheck.PaymentDocument AND _OutgoingCheck.ChequeIsCashed = 'X'  -- association [0..1]
;