P_ES_StRpVATRetTaxItem00

DDL: P_ES_STRPVATRETTAXITEM00 SQL: PSRESTAXITEM00 Type: view COMPOSITE Package: GLO_FIN_IS_VAT_ES

Tax Item Grouping for Statutory Reporting Modelo 303 Spain

P_ES_StRpVATRetTaxItem00 is a Composite CDS View that provides data about "Tax Item Grouping for Statutory Reporting Modelo 303 Spain" in SAP S/4HANA. It reads from 1 data source (I_ES_StRpTaxItemGroup) and exposes 17 fields with key fields Country, TaxItemGroupingVersion, TaxCode, TransactionTypeDetermination, DebitCreditCode. Part of development package GLO_FIN_IS_VAT_ES.

Data Sources (1)

SourceAliasJoin Type
I_ES_StRpTaxItemGroup I_ES_StRpTaxItemGroup from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSRESTAXITEM00 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.preserveKey true view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Country Country Venue: Ctry/Reg
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY TaxCode TaxCode Tax Code
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY DebitCreditCode DebitCreditCode Single-Character Flag
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY AccountingDocumentType AccountingDocumentType Journal Entry Type
KEY SupplierAccountGroup SupplierAccountGroup Account group
KEY TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxBoxAsNumber Tax.Bs.Gp.No.
TaxType TaxType Tax Type
TargetTaxCode TargetTaxCode
TaxReturnCountry TaxReturnCountry Reporting C/R
_Country _Country
_TaxCode _TaxCode
_TaxDeclnAmountType _TaxDeclnAmountType

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_ES_StRpVATRetTaxItem00.
-- 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: PSRESTAXITEM00

CREATE VIEW P_ES_StRpVATRetTaxItem00 AS
SELECT
  Country,
  TaxItemGroupingVersion,
  TaxCode,
  TransactionTypeDetermination,
  DebitCreditCode,
  TaxBox,
  TaxDeclnAmountType,
  AccountingDocumentType,
  SupplierAccountGroup,
  TaxCalculationProcedure,
  cast( cast( TaxBox as abap.numc( 15 ) ) as abap.int8 ) AS TaxBoxAsNumber,
  TaxType,
  TargetTaxCode,
  TaxReturnCountry
FROM I_ES_StRpTaxItemGroup
;