C_NL_SAFTJournalItemCube

DDL: C_NL_SAFTJOURNALITEMCUBE SQL: CNLSAFTJITEMC Type: view CONSUMPTION

SAF-T NL Journal Item Cube

C_NL_SAFTJournalItemCube is a Consumption CDS View (Cube) that provides data about "SAF-T NL Journal Item Cube" in SAP S/4HANA. It reads from 1 data source (P_NL_SAFTCompanyCodeSettings) and exposes 35 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger.

Data Sources (1)

SourceAliasJoin Type
P_NL_SAFTCompanyCodeSettings CompanyCodeSettings inner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CNLSAFTJITEMC view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
EndUserText.label SAF-T NL Journal Item Cube view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode JournalLineItem CompanyCode Receiver Company Code
KEY FiscalYear JournalLineItem FiscalYear G/L Fiscal Year
KEY AccountingDocument JournalLineItem AccountingDocument Journal Entry
KEY LedgerGLLineItem JournalLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger JournalLineItem Ledger Ledger
SourceLedger JournalLineItem SourceLedger Source Ledger
CompanyCodeCurrency JournalLineItem CompanyCodeCurrency Local Currency
AlternativeGLAccountendasGLAccount
ReferenceDocument JournalLineItem ReferenceDocument Reference Document
PostingDate JournalLineItem PostingDate Posting Date for GR
DocumentItemText JournalLineItem DocumentItemText Text
curr232endasAmountInCompanyCodeCurrency
Quantity
CostCenter JournalLineItem CostCenter Cost Center
ControllingArea JournalLineItem ControllingArea Controlling Area
Customer JournalLineItem Customer Sold-to Party
Supplier JournalLineItem Supplier Supplier
TaxCode JournalLineItem TaxCode Tax Code
DefaultDebitCreditCode
TaxRate
TaxAmount
BusinessPartner
InvoiceReference
OrderDocument
ShipmentDocument
_CompanyCode JournalLineItem _CompanyCode
_FiscalYear JournalLineItem _FiscalYear
_JournalEntry JournalLineItem _JournalEntry
_Ledger JournalLineItem _Ledger
_SourceLedger JournalLineItem _SourceLedger
_CompanyCodeCurrency JournalLineItem _CompanyCodeCurrency
_CostCenter JournalLineItem _CostCenter
_ControllingArea JournalLineItem _ControllingArea
_Customer JournalLineItem _Customer
_Supplier JournalLineItem _Supplier

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_NL_SAFTJournalItemCube.
-- 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: CNLSAFTJITEMC

CREATE VIEW C_NL_SAFTJournalItemCube AS
SELECT
  JournalLineItem.CompanyCode AS CompanyCode,
  JournalLineItem.FiscalYear AS FiscalYear,
  JournalLineItem.AccountingDocument AS AccountingDocument,
  JournalLineItem.LedgerGLLineItem AS LedgerGLLineItem,
  JournalLineItem.Ledger AS Ledger,
  JournalLineItem.SourceLedger AS SourceLedger,
  JournalLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  case when CompanyCodeSettings.IsAltAcct is initial then JournalLineItem.GLAccount else JournalLineItem.AlternativeGLAccount end as GLAccount AS AlternativeGLAccountendasGLAccount,
  JournalLineItem.ReferenceDocument AS ReferenceDocument,
  JournalLineItem.PostingDate AS PostingDate,
  JournalLineItem.DocumentItemText AS DocumentItemText,
  case when JournalLineItem.DebitCreditCode = 'S' then JournalLineItem.AmountInCompanyCodeCurrency when JournalLineItem.DebitCreditCode = 'H' and JournalLineItem.AmountInCompanyCodeCurrency < 0 then abs(JournalLineItem.AmountInCompanyCodeCurrency) when JournalLineItem.DebitCreditCode = 'H' and JournalLineItem.AmountInCompanyCodeCurrency > 0 then JournalLineItem.AmountInCompanyCodeCurrency * -1 else cast(0 as abap.curr( 23,2 )) end as AmountInCompanyCodeCurrency AS curr232endasAmountInCompanyCodeCurrency,
  cast( abs(round( JournalLineItem.Quantity, 0)) as abap.int8 ) AS Quantity,
  JournalLineItem.CostCenter AS CostCenter,
  JournalLineItem.ControllingArea AS ControllingArea,
  JournalLineItem.Customer AS Customer,
  JournalLineItem.Supplier AS Supplier,
  JournalLineItem.TaxCode AS TaxCode,
  '' AS DefaultDebitCreditCode,
  cast( 0 as fitaxrate ) AS TaxRate,
  cast( 0 as wmwst_shl ) AS TaxAmount,
  cast( '' as bu_partner ) AS BusinessPartner,
  cast( '' as fis_rebzg ) AS InvoiceReference,
  cast( '' as kdauf ) AS OrderDocument,
  cast( '' as tknum ) AS ShipmentDocument,
  JournalLineItem._CompanyCode AS _CompanyCode,
  JournalLineItem._FiscalYear AS _FiscalYear,
  JournalLineItem._JournalEntry AS _JournalEntry,
  JournalLineItem._Ledger AS _Ledger,
  JournalLineItem._SourceLedger AS _SourceLedger,
  JournalLineItem._CompanyCodeCurrency AS _CompanyCodeCurrency,
  JournalLineItem._CostCenter AS _CostCenter,
  JournalLineItem._ControllingArea AS _ControllingArea,
  JournalLineItem._Customer AS _Customer,
  JournalLineItem._Supplier AS _Supplier
INNER JOIN P_NL_SAFTCompanyCodeSettings AS CompanyCodeSettings ON /* join condition not captured in parsed metadata */
;