I_BE_CADocumentTaxReporting

DDL: I_BE_CADOCUMENTTAXREPORTING Type: view_entity BASIC

Belgium Document Tax Reporting

I_BE_CADocumentTaxReporting is a Basic CDS View that provides data about "Belgium Document Tax Reporting" in SAP S/4HANA. It reads from 1 data source (dfkkrep01) and exposes 20 fields with key fields FiscalYear, VATRegistration, BusinessPartner, CompanyCode, TaxCode. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
dfkkrep01 dfkkrep01 from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[1..1] I_CADocument _CADocument $projection.CADocumentNumber = _CADocument.CADocumentNumber
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Country _Country $projection.Country = _Country.Country
[1..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[1..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Belgium Document Tax Reporting view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY FiscalYear Settlement Year
KEY VATRegistration stceg VAT Reg. No.
KEY BusinessPartner gpart Tech. BPartner
KEY CompanyCode bukrs Value
KEY TaxCode mwskz Tax Code
KEY CADocumentNumber opbel Reopen
CAPostingDate budat Posting Date
Country land1 Trip Ctry/Reg
CAAmountInLocalCurrency betrh Local Crcy Amt
CATaxAmountInLocalCurrency sbeth LC Tax
CompanyCodeCurrency hwaer Local Currency
CADocumentType blart Rep. rec. doc. type
DocumentDate bldat Journal Entry Date
CAReferenceDocument xblnr Reference
_BusinessPartner _BusinessPartner
_CADocument _CADocument
_CompanyCode _CompanyCode
_Country _Country
_CompanyCodeCurrency _CompanyCodeCurrency
_FiscalYear _FiscalYear

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 I_BE_CADocumentTaxReporting.
-- 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 I_BE_CADocumentTaxReporting AS
SELECT
  cast( gjahr as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  stceg AS VATRegistration,
  gpart AS BusinessPartner,
  bukrs AS CompanyCode,
  mwskz AS TaxCode,
  opbel AS CADocumentNumber,
  budat AS CAPostingDate,
  land1 AS Country,
  betrh AS CAAmountInLocalCurrency,
  sbeth AS CATaxAmountInLocalCurrency,
  hwaer AS CompanyCodeCurrency,
  blart AS CADocumentType,
  bldat AS DocumentDate,
  xblnr AS CAReferenceDocument
FROM dfkkrep01
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_CADocument AS _CADocument ON CADocumentNumber = _CADocument.CADocumentNumber  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON Country = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [1..1]
;