Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

I_PL_SAFTInvoiceItem

DDL: I_PL_SAFTINVOICEITEM SQL: IPLSAFTINVOICEI Type: view BASIC

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)

SourceAliasJoin Type
snd_pl_fa_i saftn_pl_fa_I from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;