P_KR_NONDCBLINPUTVATITEM02

DDL: P_KR_NONDCBLINPUTVATITEM02 SQL: PKRNINVATITM02 Type: view COMPOSITE Package: GLO_FIN_NON_DEDUCTIBLE_VAT

Non Deductible Input VAT Item

P_KR_NONDCBLINPUTVATITEM02 is a Composite CDS View that provides data about "Non Deductible Input VAT Item" in SAP S/4HANA. It reads from 1 data source (P_KR_NONDCBLINPUTVATITEM01) and exposes 22 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem. It has 1 association to related views. Part of development package GLO_FIN_NON_DEDUCTIBLE_VAT.

Data Sources (1)

SourceAliasJoin Type
P_KR_NONDCBLINPUTVATITEM01 P_KR_NONDCBLINPUTVATITEM01 from

Parameters (2)

NameTypeDefault
P_FromReportingDate idkr_rptdat_from
P_ToReportingDate idkr_rptdat_to

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_KR_NoneDeductibleVATCmnt _Comments $projection.CompanyCode = _Comments.CompanyCode and $projection.AccountingDocument = _Comments.AccountingDocument and $projection.FiscalYear = _Comments.FiscalYear and $projection.TaxItem = _Comments.TaxItem

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PKRNINVATITM02 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxAmountInCoCodeCrcy
TaxBaseAmountInCoCodeCrcy
CompanyCodeCurrency CompanyCodeCurrency Local Currency
TaxCode TaxCode Tax Code
Supplier Supplier Supplier
BusinessPlace BusinessPlace Business place
TaxReportingDate
ReportingDate
KR_NoneDeductibleInputVATCat KR_NoneDeductibleInputVATCat
KR_NoneDeductibleInputVATSts KR_NoneDeductibleInputVATSts
CaseLastChangedOn CaseLastChangedOn Last Changed At
_RptOutItem _RptOutItem
_TaxCodeText _TaxCodeText
_CompanyCode _CompanyCode
_JournalEntry _JournalEntry
_Supplier _Supplier
_Comments _Comments

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 P_KR_NONDCBLINPUTVATITEM02.
-- 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: PKRNINVATITM02
-- Parameters: P_FromReportingDate : idkr_rptdat_from, P_ToReportingDate : idkr_rptdat_to

CREATE VIEW P_KR_NONDCBLINPUTVATITEM02 AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  TaxCalculationProcedure,
  min(TaxAmountInCoCodeCrcy) AS TaxAmountInCoCodeCrcy,
  min(TaxBaseAmountInCoCodeCrcy) AS TaxBaseAmountInCoCodeCrcy,
  CompanyCodeCurrency,
  TaxCode,
  Supplier,
  BusinessPlace,
  min(TaxReportingDate) AS TaxReportingDate,
  min(ReportingDate) AS ReportingDate,
  KR_NoneDeductibleInputVATCat,
  KR_NoneDeductibleInputVATSts,
  CaseLastChangedOn
FROM P_KR_NONDCBLINPUTVATITEM01
LEFT OUTER JOIN I_KR_NoneDeductibleVATCmnt AS _Comments ON CompanyCode = _Comments.CompanyCode AND AccountingDocument = _Comments.AccountingDocument AND FiscalYear = _Comments.FiscalYear AND TaxItem = _Comments.TaxItem  -- association [0..*]
;