P_VATTaxCountry

DDL: P_VATTAXCOUNTRY SQL: PVATTAXCOUNTRY Type: view COMPOSITE

Tax Calculation Procedure

P_VATTaxCountry is a Composite CDS View that provides data about "Tax Calculation Procedure" in SAP S/4HANA. It reads from 1 data source (P_Bset) and exposes 10 fields with key fields CompanyCode, AccountingDocument, FiscalYear. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_Bset taxitem from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Country _CompanyCodeCountry _CompanyCode.Country = _CompanyCodeCountry.Country
[0..1] I_Country _TaxReturnCountry $projection.TaxReturnCountry = _TaxReturnCountry.Country

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PVATTAXCOUNTRY view
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Tax Calculation Procedure view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
TaxCode TaxCode Tax Code
TransactionTypeDetermination TransactionTypeDetermination Transaction Key
TaxReturnCountry TaxReturnCountry Reporting C/R
CompanyCodeCountry _CompanyCode Country Venue: Ctry/Reg
_CompanyCode _CompanyCode
_CompanyCodeCountry _CompanyCodeCountry
_TaxReturnCountry _TaxReturnCountry

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_VATTaxCountry.
-- 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: PVATTAXCOUNTRY

CREATE VIEW P_VATTaxCountry AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxCode,
  TransactionTypeDetermination,
  TaxReturnCountry,
  _CompanyCode.Country AS CompanyCodeCountry
FROM P_Bset AS taxitem
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Country AS _CompanyCodeCountry ON _CompanyCode.Country = _CompanyCodeCountry.Country  -- association [0..1]
LEFT OUTER JOIN I_Country AS _TaxReturnCountry ON TaxReturnCountry = _TaxReturnCountry.Country  -- association [0..1]
;