C_NL_SAFTJournalItemCube
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. Part of development package GLO_FIN_IS_SAFT_NL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_NL_SAFTCompanyCodeSettings | CompanyCodeSettings | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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