R_ES_EDCSuplrInvcSIITaxLine

DDL: R_ES_EDCSUPLRINVCSIITAXLINE Type: view_entity COMPOSITE Package: GLO-EDO-ES-SII-EDC

Spain Supplier Invoice Tax lines

R_ES_EDCSuplrInvcSIITaxLine is a Composite CDS View that provides data about "Spain Supplier Invoice Tax lines" in SAP S/4HANA. It reads from 7 data sources and exposes 13 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxCode, TransactionTypeDetermination. Part of development package GLO-EDO-ES-SII-EDC.

Data Sources (7)

SourceAliasJoin Type
P_T007B_GLO AccountingKey inner
I_ES_SIIAccountingDocType CompanyDocTypes inner
R_ES_SIITaxCodeDetail CompanyTaxCodes inner
I_EDCElectronicDocAcctgDoc eDocRelation from
I_JournalEntry JournalEntry inner
I_TaxItem TaxItem inner
I_ES_SIITaxRateDetail TaxRateDecimal inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Spain Supplier Invoice Tax lines view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_TaxItem CompanyCode Receiver Company Code
KEY AccountingDocument I_TaxItem AccountingDocument Journal Entry
KEY FiscalYear I_TaxItem FiscalYear G/L Fiscal Year
KEY TaxCode I_TaxItem TaxCode Tax Code
KEY TransactionTypeDetermination I_TaxItem TransactionTypeDetermination Transaction Key
EDCRepresentationType I_EDCElectronicDocAcctgDoc EDCRepresentationType
EDCRepresentationKey I_EDCElectronicDocAcctgDoc EDCRepresentationKey
TaxRate10endasTaxRate
CompanyCodeCurrencyendendasCurrency
ES_EDocSIITaxClassification R_ES_SIITaxCodeDetail ES_EDocSIITaxClassification
EDCCommonKey I_EDCElectronicDocAcctgDoc EDCCommonKey
EDCRecordUUID I_EDCElectronicDocAcctgDoc EDCRecordUUID
EDCType I_EDCElectronicDocAcctgDoc EDCType

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 R_ES_EDCSuplrInvcSIITaxLine.
-- 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.

CREATE VIEW R_ES_EDCSuplrInvcSIITaxLine AS
SELECT
  TaxItem.CompanyCode AS CompanyCode,
  TaxItem.AccountingDocument AS AccountingDocument,
  TaxItem.FiscalYear AS FiscalYear,
  TaxItem.TaxCode AS TaxCode,
  TaxItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  eDocRelation.EDCRepresentationType AS EDCRepresentationType,
  eDocRelation.EDCRepresentationKey AS EDCRepresentationKey,
  case when TaxRateDecimal.ConditionCalculationTypeShort = 'W' then TaxItem.TaxRate * 100 else TaxItem.TaxRate / 10 end as TaxRate AS TaxRate10endasTaxRate,
  case when JournalEntry.CompanyCodeCurrency = 'EUR' then JournalEntry.CompanyCodeCurrency else case when (TaxItem.TaxReturnCountry is not initial and TaxItem.TaxReturnCountry = 'ES') then TaxItem.CountryCurrency else JournalEntry.CompanyCodeCurrency end end as Currency AS CompanyCodeCurrencyendendasCurrency,
  CompanyTaxCodes.ES_EDocSIITaxClassification AS ES_EDocSIITaxClassification,
  eDocRelation.EDCCommonKey AS EDCCommonKey,
  eDocRelation.EDCRecordUUID AS EDCRecordUUID,
  eDocRelation.EDCType AS EDCType
FROM I_EDCElectronicDocAcctgDoc AS eDocRelation
INNER JOIN I_JournalEntry AS JournalEntry ON /* join condition not captured in parsed metadata */
INNER JOIN I_TaxItem AS TaxItem ON /* join condition not captured in parsed metadata */
INNER JOIN R_ES_SIITaxCodeDetail AS CompanyTaxCodes ON /* join condition not captured in parsed metadata */
INNER JOIN I_ES_SIIAccountingDocType AS CompanyDocTypes ON /* join condition not captured in parsed metadata */
INNER JOIN P_T007B_GLO AS AccountingKey ON /* join condition not captured in parsed metadata */
INNER JOIN I_ES_SIITaxRateDetail AS TaxRateDecimal ON /* join condition not captured in parsed metadata */
;