I_SG_StRpTaxReturnCube

DDL: I_SG_STRPTAXRETURNCUBE SQL: ISGSRTAXRETURNC Type: view COMPOSITE Package: GLO_FIN_IS_VAT_SG

Tax Return Items for Singapore Statutory Reporting

I_SG_StRpTaxReturnCube is a Composite CDS View (Cube) that provides data about "Tax Return Items for Singapore Statutory Reporting" in SAP S/4HANA. It reads from 1 data source (I_StRpTaxReturnBoxCube) and exposes 55 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, TaxCode. Part of development package GLO_FIN_IS_VAT_SG.

Data Sources (1)

SourceAliasJoin Type
I_StRpTaxReturnBoxCube I_StRpTaxReturnBoxCube from

Parameters (6)

NameTypeDefault
P_RelevantAmountPosition relevantamountposition
P_Language sylangu
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_ReportingCountry land1

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ISGSRTAXRETURNC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Tax Return Items for Singapore Statutory Reporting view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Metadata.allowExtensions true view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode 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 TaxCalculationProcedure I_StRpTaxReturnBoxCube TaxCalculationProcedure Tax Procedure
KEY TransactionTypeDetermination TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY ValidityStartDate TaxBoxStrucValidityStartDate
KEY TaxBoxStructureType TaxBoxStructureType
KEY TaxGroup TaxGroup Tax Group
KEY AccountingDocumentType AccountingDocumentType Journal Entry Type
ReportingDate ReportingDate
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
TaxItemGroup TaxItemGroup Tax doc. item number
FiscalPeriod FiscalPeriod Tax period
CAReconciliationKey CAReconciliationKey Reconcil. Key
ReferenceDocumentType ReferenceDocumentType Reference Document Type
StatryRptRun StatryRptRun
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
DocumentReferenceID DocumentReferenceID Reference
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
ExchangeRate ExchangeRate Exchange rate
TaxRate Tax Rate
TaxRateValidityStartDate TaxRateValidityStartDate Tax Rate Validity Start Date
GLAccount GLAccount General Ledger
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
TaxNumber1 VAT Reg. No.
TaxNumber2 Tax Number 2
TaxNumber3
BusinessPartner Issuing Authority
BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress CustomerSupplierAddress
TaxType TaxType Tax Type
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CountryCurrency I_StRpTaxReturnBoxCube CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrencyendasReportingCurrency
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
DocumentItemText
_AccountingDocument _AccountingDocument
_GLAccount _GLAccount
_TaxJurisdiction _TaxJurisdiction
_TaxTypeText _TaxTypeText
_TaxCodeText _TaxCodeText

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_SG_StRpTaxReturnCube.
-- 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: ISGSRTAXRETURNC
-- Parameters: P_RelevantAmountPosition : relevantamountposition, P_Language : sylangu, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_ReportingCountry : land1

CREATE VIEW I_SG_StRpTaxReturnCube AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  TaxItem,
  I_StRpTaxReturnBoxCube.TaxCode AS TaxCode,
  I_StRpTaxReturnBoxCube.TaxCalculationProcedure AS TaxCalculationProcedure,
  TransactionTypeDetermination,
  TaxBox,
  TaxDeclnAmountType,
  TaxItemGroupingVersion,
  TaxBoxStrucValidityStartDate AS ValidityStartDate,
  TaxBoxStructureType,
  TaxGroup,
  AccountingDocumentType,
  ReportingDate,
  PostingDate,
  DocumentDate,
  TaxReportingDate,
  TaxItemGroup,
  FiscalPeriod,
  CAReconciliationKey,
  ReferenceDocumentType,
  StatryRptRun,
  AccountingDocumentHeaderText,
  DocumentReferenceID,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  BusinessPartnerCountry,
  ExchangeRate,
  cast( TaxRate as btaux ) AS TaxRate,
  TaxRateValidityStartDate,
  GLAccount,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  cast(TaxNumber1 as stcd1) AS TaxNumber1,
  cast(TaxNumber2 as stcd2) AS TaxNumber2,
  cast(TaxNumber3 as stcd3) AS TaxNumber3,
  cast(BusinessPartner as abi_bprtnr) AS BusinessPartner,
  cast(BusinessPartnerName as glo_partner) AS BusinessPartnerName,
  CustomerSupplierAddress,
  TaxType,
  CompanyCodeCurrency,
  I_StRpTaxReturnBoxCube.CountryCurrency AS CountryCurrency,
  DocumentCurrency,
  case $parameters.P_RelevantAmountPosition when '1' then CompanyCodeCurrency when '2' then AdditionalCurrency1 when '3' then AdditionalCurrency2 when 'C' then I_StRpTaxReturnBoxCube.CountryCurrency else I_StRpTaxReturnBoxCube.ReportingCurrency end as ReportingCurrency AS ReportingCurrencyendasReportingCurrency,
  AdditionalCurrency1,
  AdditionalCurrency2,
  ' ' AS DocumentItemText
FROM I_StRpTaxReturnBoxCube
;