R_ES_SIITaxCodeDetail

DDL: R_ES_SIITAXCODEDETAIL Type: view_entity COMPOSITE Package: GLO-EDO-ES-SII

Spain SII Tax Code Details

R_ES_SIITaxCodeDetail is a Composite CDS View that provides data about "Spain SII Tax Code Details" in SAP S/4HANA. It reads from 3 data sources (R_ES_CompanyCode, I_ES_CountryPricingProcedure, I_ES_SIITaxCode) and exposes 8 fields with key fields CompanyCode, TaxCode. Part of development package GLO-EDO-ES-SII.

Data Sources (3)

SourceAliasJoin Type
R_ES_CompanyCode CompanyTaxCountry from
I_ES_CountryPricingProcedure CountryTaxProc inner
I_ES_SIITaxCode SIITaxCodes inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Spain SII Tax Code Details view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode R_ES_CompanyCode CompanyCode Receiver Company Code
KEY TaxCode I_ES_SIITaxCode TaxCode Tax Code
ES_EDocSIITaxClassification I_ES_SIITaxCode ES_EDocSIITaxClassification Tax Classification
ES_EDocSIITaxRegime I_ES_SIITaxCode ES_EDocSIITaxRegime Tax Regime Scenario
TaxCountry I_ES_CountryPricingProcedure TaxCountry Tax Ctry/Reg.
PricingProcedure I_ES_CountryPricingProcedure PricingProcedure Procedure
ES_EDocSIISalesNonResident I_ES_SIITaxCode ES_EDocSIISalesNonResident Sales to Non-Residen
ES_EDocSIIInvoiceType I_ES_SIITaxCode ES_EDocSIIInvoiceType Invoice Type SII

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_SIITaxCodeDetail.
-- 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_SIITaxCodeDetail AS
SELECT
  CompanyTaxCountry.CompanyCode AS CompanyCode,
  SIITaxCodes.TaxCode AS TaxCode,
  SIITaxCodes.ES_EDocSIITaxClassification AS ES_EDocSIITaxClassification,
  SIITaxCodes.ES_EDocSIITaxRegime AS ES_EDocSIITaxRegime,
  CountryTaxProc.TaxCountry AS TaxCountry,
  CountryTaxProc.PricingProcedure AS PricingProcedure,
  SIITaxCodes.ES_EDocSIISalesNonResident AS ES_EDocSIISalesNonResident,
  SIITaxCodes.ES_EDocSIIInvoiceType AS ES_EDocSIIInvoiceType
FROM R_ES_CompanyCode AS CompanyTaxCountry
INNER JOIN I_ES_CountryPricingProcedure AS CountryTaxProc ON /* join condition not captured in parsed metadata */
INNER JOIN I_ES_SIITaxCode AS SIITaxCodes ON /* join condition not captured in parsed metadata */
;