P_ES_TaxReturnBoxATR

DDL: P_ES_TAXRETURNBOXATR SQL: PESTAXRETBOXATR Type: view CONSUMPTION

P_ES_TaxReturnBoxATR is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxReturnBoxCube, P_T007B_GLO) and exposes 68 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode.

Data Sources (2)

SourceAliasJoin Type
I_StRpTaxReturnBoxCube I_StRpTaxReturnBoxCube from
P_T007B_GLO P_T007B_GLO left_outer

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_ReportingCountry land1

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PESTAXRETBOXATR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION 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 (68)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpTaxReturnBoxCube CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY TaxItem TaxItem Tax Item
KEY TaxCode I_StRpTaxReturnBoxCube TaxCode Tax Code
KEY TransactionTypeDetermination I_StRpTaxReturnBoxCube TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxGroup TaxGroup Tax Group
KEY Country I_StRpTaxReturnBoxCube Country Venue: Ctry/Reg
KEY TaxDeclnAmountType I_StRpTaxReturnBoxCube TaxDeclnAmountType
KEY UnifiedTaxBoxStructureType I_StRpTaxReturnBoxCube UnifiedTaxBoxStructureType
KEY ValidFrom ValidFrom Vers.Valid From
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
StatryRptRun I_StRpTaxReturnBoxCube StatryRptRun
TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
TaxBoxStructureType TaxBoxStructureType
ValidTo ValidTo Vers.Valid To
DebitCreditCode I_StRpTaxReturnBoxCube DebitCreditCode Single-Character Flag
TaxCalculationProcedure TaxCalculationProcedure Tax Procedure
TaxRate TaxRate Tax Rate
TaxRateValidityStartDate I_StRpTaxReturnBoxCube TaxRateValidityStartDate Tax Rate Validity Start Date
GLAccount GLAccount General Ledger
TaxItemGroup TaxItemGroup Tax doc. item number
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
AccountingDocumentType I_StRpTaxReturnBoxCube AccountingDocumentType Journal Entry Type
ReferenceDocumentType ReferenceDocumentType Reference Document Type
CAReconciliationKey I_StRpTaxReturnBoxCube CAReconciliationKey Reconcil. Key
ReverseDocument ReverseDocument Reversed With
ReverseDocumentFiscalYear ReverseDocumentFiscalYear Year
DocumentReferenceID DocumentReferenceID Reference
Ledger Ledger Ledger
LedgerGroup LedgerGroup Ledger Group
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
ReportingDate ReportingDate
TaxType TaxType Tax Type
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
FiscalPeriod FiscalPeriod Tax period
ExchangeRate ExchangeRate Exchange rate
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
TargetTaxCode TargetTaxCode
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3 TaxNumber3
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
BusinessPartnerCountry I_StRpTaxReturnBoxCube BusinessPartnerCountry BP Ctry/Reg.
CustomerSupplierAddress CustomerSupplierAddress
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
TaxBoxStructure TaxBoxStructure
TaxBoxName TaxBoxName
TaxBoxAggregationOperation TaxBoxAggregationOperation
TaxCountry I_StRpTaxReturnBoxCube TaxCountry Tax Ctry/Reg.

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_TaxReturnBoxATR.
-- 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: PESTAXRETBOXATR
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_ReportingCountry : land1

CREATE VIEW P_ES_TaxReturnBoxATR AS
SELECT
  I_StRpTaxReturnBoxCube.CompanyCode AS CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  I_StRpTaxReturnBoxCube.TaxCode AS TaxCode,
  I_StRpTaxReturnBoxCube.TransactionTypeDetermination AS TransactionTypeDetermination,
  TaxBox,
  TaxGroup,
  I_StRpTaxReturnBoxCube.Country AS Country,
  I_StRpTaxReturnBoxCube.TaxDeclnAmountType AS TaxDeclnAmountType,
  I_StRpTaxReturnBoxCube.UnifiedTaxBoxStructureType AS UnifiedTaxBoxStructureType,
  ValidFrom,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  I_StRpTaxReturnBoxCube.StatryRptRun AS StatryRptRun,
  TaxItemGroupingVersion,
  TaxBoxStructureType,
  ValidTo,
  I_StRpTaxReturnBoxCube.DebitCreditCode AS DebitCreditCode,
  TaxCalculationProcedure,
  TaxRate,
  I_StRpTaxReturnBoxCube.TaxRateValidityStartDate AS TaxRateValidityStartDate,
  GLAccount,
  TaxItemGroup,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  I_StRpTaxReturnBoxCube.AccountingDocumentType AS AccountingDocumentType,
  ReferenceDocumentType,
  I_StRpTaxReturnBoxCube.CAReconciliationKey AS CAReconciliationKey,
  ReverseDocument,
  ReverseDocumentFiscalYear,
  DocumentReferenceID,
  Ledger,
  LedgerGroup,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  ReportingDate,
  TaxType,
  IsReversal,
  IsReversed,
  FiscalPeriod,
  ExchangeRate,
  AccountingDocumentHeaderText,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  TargetTaxCode,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  BusinessPartner,
  BusinessPartnerName,
  I_StRpTaxReturnBoxCube.BusinessPartnerCountry AS BusinessPartnerCountry,
  CustomerSupplierAddress,
  TaxIsNotDeductible,
  TaxBoxStructure,
  TaxBoxName,
  TaxBoxAggregationOperation,
  I_StRpTaxReturnBoxCube.TaxCountry AS TaxCountry
FROM I_StRpTaxReturnBoxCube
LEFT OUTER JOIN P_T007B_GLO ON /* join condition not captured in parsed metadata */
;