I_SG_StRpTaxReturnCube
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)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaxReturnBoxCube | I_StRpTaxReturnBoxCube | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA