I_PL_SAFTInvoiceItem
SAF-T Invoice Item
I_PL_SAFTInvoiceItem is a Basic CDS View that provides data about "SAF-T Invoice Item" in SAP S/4HANA. It reads from 1 data source (snd_pl_fa_i) and exposes 15 fields with key fields SAFTExtractionUUID, FiscalYear, AccountingDocument, CompanyCode, AccountingDocumentItemRef. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| snd_pl_fa_i | saftn_pl_fa_I | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPLSAFTINVOICEI | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | SAF-T Invoice Item | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.lifecycle.status | #DEPRECATED | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SAFTExtractionUUID | snd_pl_fa_i | extraction_id | Extraction ID |
| KEY | FiscalYear | snd_pl_fa_i | gjahr | Settlement Year |
| KEY | AccountingDocument | snd_pl_fa_i | belnr | SD Document |
| KEY | CompanyCode | snd_pl_fa_i | bukrs | Value |
| KEY | AccountingDocumentItemRef | snd_pl_fa_i | posnr | WBS Element |
| MaterialDescription | snd_pl_fa_i | description | Well Code Des. | |
| DiscountAmount | snd_pl_fa_i | discounts | Discounts | |
| Quantity | snd_pl_fa_i | quantity | Value | |
| TaxAmount | snd_pl_fa_i | tax_base | Tax Base Source | |
| tax_percentendasTaxRate | ||||
| Currency | snd_pl_fa_i | waers | Transaction Currency | |
| PriceUnit | snd_pl_fa_i | unit_price | Unit Price Bfr Disc | |
| InvoiceDocumentNumber | snd_pl_fa_i | inv_number | Inv.Number | |
| unit_mesaureendasmeinsasUnitOfMeasure | ||||
| _CompanyCode | _CompanyCode |
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_PL_SAFTInvoiceItem.
-- 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: IPLSAFTINVOICEI
CREATE VIEW I_PL_SAFTInvoiceItem AS
SELECT
saftn_pl_fa_I.extraction_id AS SAFTExtractionUUID,
saftn_pl_fa_I.gjahr AS FiscalYear,
saftn_pl_fa_I.belnr AS AccountingDocument,
saftn_pl_fa_I.bukrs AS CompanyCode,
saftn_pl_fa_I.posnr AS AccountingDocumentItemRef,
saftn_pl_fa_I.description AS MaterialDescription,
saftn_pl_fa_I.discounts AS DiscountAmount,
saftn_pl_fa_I.quantity AS Quantity,
saftn_pl_fa_I.tax_base AS TaxAmount,
case when saftn_pl_fa_I.tax_percent is initial then 'zw' else lower(saftn_pl_fa_I.tax_percent) end as TaxRate AS tax_percentendasTaxRate,
saftn_pl_fa_I.waers AS Currency,
saftn_pl_fa_I.unit_price AS PriceUnit,
saftn_pl_fa_I.inv_number AS InvoiceDocumentNumber,
cast( case when saftn_pl_fa_I.unit_mesaure is initial then 'ST' else saftn_pl_fa_I.unit_mesaure end as meins ) as UnitOfMeasure AS unit_mesaureendasmeinsasUnitOfMeasure
FROM snd_pl_fa_i AS saftn_pl_fa_I
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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