P_ZA_StRpTaxReturnBox2

DDL: P_ZA_STRPTAXRETURNBOX2 SQL: PZASTRPTXBOX2 Type: view COMPOSITE Package: GLO_FIN_IS_VAT_ZA

Private CDS view for ZA PDF report 2

P_ZA_StRpTaxReturnBox2 is a Composite CDS View that provides data about "Private CDS view for ZA PDF report 2" in SAP S/4HANA. It reads from 1 data source (P_ZA_StRpTaxReturnBox) and exposes 31 fields with key fields CompanyCode, StatryRptgEntity, StatryRptCategory, StatryRptRunID, TaxDeclnAmountType. Part of development package GLO_FIN_IS_VAT_ZA.

Data Sources (1)

SourceAliasJoin Type
P_ZA_StRpTaxReturnBox P_ZA_StRpTaxReturnBox from

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_ReportingCountry land1

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PZASTRPTXBOX2 view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY TaxBoxStructure TaxBoxStructure
TaxBox TaxBox Tax.Bs.Gp.No.
TaxBaseAmountInRptgCrcy03 TaxBaseAmountInRptgCrcy03
TaxBaseAmountInRptgCrcy04 TaxBaseAmountInRptgCrcy04
TaxBaseAmountInRptgCrcy05 TaxBaseAmountInRptgCrcy05
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
TaxAmount01 TaxAmount01
TaxAmount02 TaxAmount02
TaxBaseAmount08 TaxBaseAmount08
TaxBaseAmount60 TaxBaseAmount60
TaxBaseAmount10 TaxBaseAmount10
TaxAmount13 TaxAmount13
TaxAmount15 TaxAmount15
TaxAmount17 TaxAmount17
TaxAmount18 TaxAmount18
TaxAmount19 TaxAmount19
TaxAmount20 TaxAmount20
TaxAmount21 TaxAmount21
TaxAmount22 TaxAmount22
TaxAmount23 TaxAmount23
ReportingCurrency ReportingCurrency Currency
TotalSupplyOfAccommodation
TaxRate08 TaxRate08
TotalInputTax

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

CREATE VIEW P_ZA_StRpTaxReturnBox2 AS
SELECT
  CompanyCode,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  TaxDeclnAmountType,
  TaxItemGroupingVersion,
  TaxBoxStructure,
  TaxBox,
  TaxBaseAmountInRptgCrcy03,
  TaxBaseAmountInRptgCrcy04,
  TaxBaseAmountInRptgCrcy05,
  TaxBaseAmountInRptgCrcy,
  TaxAmountInRptgCrcy,
  TaxAmount01,
  TaxAmount02,
  TaxBaseAmount08,
  TaxBaseAmount60,
  TaxBaseAmount10,
  TaxAmount13,
  TaxAmount15,
  TaxAmount17,
  TaxAmount18,
  TaxAmount19,
  TaxAmount20,
  TaxAmount21,
  TaxAmount22,
  TaxAmount23,
  ReportingCurrency,
  TaxBaseAmount60 + TaxBaseAmount10 AS TotalSupplyOfAccommodation,
  TaxRate08,
  TaxAmount17 + TaxAmount18 + TaxAmount19 + TaxAmount20 + TaxAmount21 + TaxAmount22 + TaxAmount23 AS TotalInputTax
FROM P_ZA_StRpTaxReturnBox
;