I_PL_SAFTTaxItem

DDL: I_PL_SAFTTAXITEM SQL: IPLSAFTTAXITEM Type: view BASIC

SAF-T Tax item

I_PL_SAFTTaxItem is a Basic CDS View that provides data about "SAF-T Tax item" in SAP S/4HANA. It reads from 2 data sources (snd_pl_vat, snc_pl_bc) and exposes 60 fields with key fields SAFTExtractionUUID, CompanyCode, FiscalYear, AccountingDocument, MasterDataSourceNode. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
snd_pl_vat saftn_pl_vat from
snc_pl_bc saftn_settings left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_JournalEntryItemOneTimeData _OneTimeAccount _OneTimeAccount.CompanyCode = saftn_pl_vat.bukrs and _OneTimeAccount.AccountingDocument = saftn_pl_vat.belnr and _OneTimeAccount.FiscalYear = saftn_pl_vat.gjahr and _OneTimeAccount.AccountingDocumentItem = saftn_pl_vat.buzei
[0..1] I_Customer _Customer _Customer.Customer = saftn_pl_vat.kunnr
[0..1] I_Supplier _Supplier _Supplier.Supplier = saftn_pl_vat.lifnr
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = saftn_pl_vat.bukrs

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPLSAFTTAXITEM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label SAF-T Tax item view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY SAFTExtractionUUID snd_pl_vat extraction_id Extraction ID
KEY CompanyCode snd_pl_vat bukrs Value
KEY FiscalYear snd_pl_vat gjahr Settlement Year
KEY AccountingDocument snd_pl_vat belnr SD Document
KEY MasterDataSourceNode snd_pl_vat source ViolationSource
EmailAddress
AccountingDocumentItem snd_pl_vat buzei Posting View Item
Customer snd_pl_vat kunnr Stock customer
Supplier snd_pl_vat lifnr Vendor no.
TaxReportingDate snd_pl_vat vatdate Valid From
AccountingDocumentType snd_pl_vat blart Rep. rec. doc. type
DocumentDate snd_pl_vat bldat Journal Entry Date
PostingDate snd_pl_vat budat Posting Date
ReferenceDocumentType snd_pl_vat awtyp Reference Document Type
OriginalReferenceDocument snd_pl_vat awkey RefKey GJE
AlternativeReferenceDocument
DocumentReferenceID snd_pl_vat xblnr Reference
Currency snd_pl_vat waers Transaction Currency
IsOneTimeAccount snd_pl_vat xcpdd Individ. Set
JournalEntryItemText snd_pl_vat sgtxt Text
stcegendasVATRegistration
DeliveryDate snd_pl_vat delivery_date Time Stamp
InvoiceReceiptDate snd_pl_vat reindat Inv. Recpt Date
PL_SAFTNetAmount10 snd_pl_vat k_10 K_10
PL_SAFTNetAmount11 snd_pl_vat k_11 K_11
PL_SAFTNetAmount12 snd_pl_vat k_12 K_12
PL_SAFTNetAmount13 snd_pl_vat k_13 K_13
PL_SAFTNetAmount14 snd_pl_vat k_14 K_14
PL_SAFTNetAmount15 snd_pl_vat k_15 K_15
PL_SAFTTaxAmount16 snd_pl_vat k_16 K_16
PL_SAFTNetAmount17 snd_pl_vat k_17 K_17
PL_SAFTTaxAmount18 snd_pl_vat k_18 K_18
PL_SAFTNetAmount19 snd_pl_vat k_19 K_19
PL_SAFTTaxAmount20 snd_pl_vat k_20 K_20
PL_SAFTNetAmount21 snd_pl_vat k_21 K_21
PL_SAFTNetAmount22 snd_pl_vat k_22 K_22
PL_SAFTNetAmount23 snd_pl_vat k_23 K_23
PL_SAFTTaxAmount24 snd_pl_vat k_24 K_24
PL_SAFTNetAmount25 snd_pl_vat k_25 K_25
PL_SAFTTaxAmount26 snd_pl_vat k_26 K_26
PL_SAFTNetAmount27 snd_pl_vat k_27 K_27
PL_SAFTTaxAmount28 snd_pl_vat k_28 K_28
PL_SAFTNetAmount29 snd_pl_vat k_29 K_29
PL_SAFTTaxAmount30 snd_pl_vat k_30 K_30
PL_SAFTNetAmount31 snd_pl_vat k_31 K_31
PL_SAFTNetAmount32 snd_pl_vat k_32 K_32
PL_SAFTTaxAmount33 snd_pl_vat k_33 K_33
PL_SAFTNetAmount34 snd_pl_vat k_34 K_34
PL_SAFTTaxAmount35 snd_pl_vat k_35 K_35
PL_SAFTTaxAmount36 snd_pl_vat k_36 K_36
PL_SAFTTaxAmount38 snd_pl_vat k_38 K_38
PL_SAFTTaxAmount39 snd_pl_vat k_39 K_39
PL_SAFTNetAmount43 snd_pl_vat k_43 K_43
PL_SAFTTaxAmount44 snd_pl_vat k_44 K_44
PL_SAFTNetAmount45 snd_pl_vat k_45 K_45
PL_SAFTTaxAmount46 snd_pl_vat k_46 K_46
_CompanyCode _CompanyCode
_Customer _Customer
_Supplier _Supplier
_OneTimeAccount _OneTimeAccount

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_SAFTTaxItem.
-- 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: IPLSAFTTAXITEM

CREATE VIEW I_PL_SAFTTaxItem AS
SELECT
  saftn_pl_vat.extraction_id AS SAFTExtractionUUID,
  saftn_pl_vat.bukrs AS CompanyCode,
  saftn_pl_vat.gjahr AS FiscalYear,
  saftn_pl_vat.belnr AS AccountingDocument,
  saftn_pl_vat.source AS MasterDataSourceNode,
  cast(saftn_settings.file_email as abap.sstring(241)) AS EmailAddress,
  saftn_pl_vat.buzei AS AccountingDocumentItem,
  saftn_pl_vat.kunnr AS Customer,
  saftn_pl_vat.lifnr AS Supplier,
  saftn_pl_vat.vatdate AS TaxReportingDate,
  saftn_pl_vat.blart AS AccountingDocumentType,
  saftn_pl_vat.bldat AS DocumentDate,
  saftn_pl_vat.budat AS PostingDate,
  saftn_pl_vat.awtyp AS ReferenceDocumentType,
  saftn_pl_vat.awkey AS OriginalReferenceDocument,
  cast(saftn_pl_vat.xblnr_alt as abap.char(26)) AS AlternativeReferenceDocument,
  saftn_pl_vat.xblnr AS DocumentReferenceID,
  saftn_pl_vat.waers AS Currency,
  saftn_pl_vat.xcpdd AS IsOneTimeAccount,
  saftn_pl_vat.sgtxt AS JournalEntryItemText,
  case when saftn_pl_vat.stceg is initial then 'Nie dotyczy' else saftn_pl_vat.stceg end as VATRegistration AS stcegendasVATRegistration,
  saftn_pl_vat.delivery_date AS DeliveryDate,
  saftn_pl_vat.reindat AS InvoiceReceiptDate,
  saftn_pl_vat.k_10 AS PL_SAFTNetAmount10,
  saftn_pl_vat.k_11 AS PL_SAFTNetAmount11,
  saftn_pl_vat.k_12 AS PL_SAFTNetAmount12,
  saftn_pl_vat.k_13 AS PL_SAFTNetAmount13,
  saftn_pl_vat.k_14 AS PL_SAFTNetAmount14,
  saftn_pl_vat.k_15 AS PL_SAFTNetAmount15,
  saftn_pl_vat.k_16 AS PL_SAFTTaxAmount16,
  saftn_pl_vat.k_17 AS PL_SAFTNetAmount17,
  saftn_pl_vat.k_18 AS PL_SAFTTaxAmount18,
  saftn_pl_vat.k_19 AS PL_SAFTNetAmount19,
  saftn_pl_vat.k_20 AS PL_SAFTTaxAmount20,
  saftn_pl_vat.k_21 AS PL_SAFTNetAmount21,
  saftn_pl_vat.k_22 AS PL_SAFTNetAmount22,
  saftn_pl_vat.k_23 AS PL_SAFTNetAmount23,
  saftn_pl_vat.k_24 AS PL_SAFTTaxAmount24,
  saftn_pl_vat.k_25 AS PL_SAFTNetAmount25,
  saftn_pl_vat.k_26 AS PL_SAFTTaxAmount26,
  saftn_pl_vat.k_27 AS PL_SAFTNetAmount27,
  saftn_pl_vat.k_28 AS PL_SAFTTaxAmount28,
  saftn_pl_vat.k_29 AS PL_SAFTNetAmount29,
  saftn_pl_vat.k_30 AS PL_SAFTTaxAmount30,
  saftn_pl_vat.k_31 AS PL_SAFTNetAmount31,
  saftn_pl_vat.k_32 AS PL_SAFTNetAmount32,
  saftn_pl_vat.k_33 AS PL_SAFTTaxAmount33,
  saftn_pl_vat.k_34 AS PL_SAFTNetAmount34,
  saftn_pl_vat.k_35 AS PL_SAFTTaxAmount35,
  saftn_pl_vat.k_36 AS PL_SAFTTaxAmount36,
  saftn_pl_vat.k_38 AS PL_SAFTTaxAmount38,
  saftn_pl_vat.k_39 AS PL_SAFTTaxAmount39,
  saftn_pl_vat.k_43 AS PL_SAFTNetAmount43,
  saftn_pl_vat.k_44 AS PL_SAFTTaxAmount44,
  saftn_pl_vat.k_45 AS PL_SAFTNetAmount45,
  saftn_pl_vat.k_46 AS PL_SAFTTaxAmount46
FROM snd_pl_vat AS saftn_pl_vat
LEFT OUTER JOIN snc_pl_bc AS saftn_settings ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_JournalEntryItemOneTimeData AS _OneTimeAccount ON _OneTimeAccount.CompanyCode = saftn_pl_vat.bukrs AND _OneTimeAccount.AccountingDocument = saftn_pl_vat.belnr AND _OneTimeAccount.FiscalYear = saftn_pl_vat.gjahr AND _OneTimeAccount.AccountingDocumentItem = saftn_pl_vat.buzei  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = saftn_pl_vat.kunnr  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = saftn_pl_vat.lifnr  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = saftn_pl_vat.bukrs  -- association [0..1]
;