I_SG_StRpTaxItemCube
Tax Items for Singapore Statutory Reporting
I_SG_StRpTaxItemCube is a Composite CDS View (Cube) that provides data about "Tax Items for Singapore Statutory Reporting" in SAP S/4HANA. It reads from 2 data sources (I_Country, I_StRpTaxItemBoxCube) and exposes 68 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, StatryRptgEntity.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Country | I_Country | left_outer |
| I_StRpTaxItemBoxCube | I_StRpTaxItemBoxCube | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_RelevantAmountPosition | relevantamountposition | |
| P_Language | sylangu |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISGSRTAXITEMCUBE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Tax Items for Singapore Statutory Reporting | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Metadata.allowExtensions | true | view |
Fields (68)
| 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 | I_StRpTaxItemBoxCube | TaxItem | Tax Item |
| KEY | StatryRptgEntity | |||
| KEY | StatryRptCategory | |||
| KEY | StatryRptRunID | |||
| KEY | TaxCode | TaxCode | Tax Code | |
| KEY | TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | |
| KEY | TaxBox | TaxBox | Tax.Bs.Gp.No. | |
| KEY | TaxDeclnAmountType | TaxDeclnAmountType | ||
| KEY | TaxItemGroupingVersion | TaxItemGroupingVersion | Tax Grping Ver. | |
| KEY | ValidFrom | ValidFrom | Vers.Valid From | |
| KEY | TaxBoxStructureType | TaxBoxStructureType | ||
| KEY | TaxGroup | TaxGroup | Tax Group | |
| 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 | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| 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 | |||
| GLAccount | GLAccount | General Ledger | ||
| BusinessPlace | BusinessPlace | Business place | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| LowestLevelTaxJurisdiction | LowestLevelTaxJurisdiction | Jurisdict. Code | ||
| TaxCalculationProcedure | I_StRpTaxItemBoxCube | TaxCalculationProcedure | Tax Procedure | |
| 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_StRpTaxItemBoxCube | CountryCurrency | Currency | |
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ReportingCurrencyendasReportingCurrency | ||||
| AdditionalCurrency1 | AdditionalCurrency1 | Local curr. 2 | ||
| AdditionalCurrency2 | AdditionalCurrency2 | Local curr. 3 | ||
| AmountInTransactionCurrency | Pt Crcy Amt | |||
| TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |||
| TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |||
| TaxBaseAmountInTransCrcy | Value-Added Tax | |||
| TaxAmount | Tax Amt in Rptg Crcy | |||
| TaxBaseAmountInRptgCrcy | Base Amount | |||
| TaxAmountInRptgCrcy | Tax Rept. Crcy | |||
| AmountInAdditionalCurrency1 | Amount in Additional Currency 1 | |||
| AmountInAdditionalCurrency2 | LC2 Amount | |||
| TaxBaseAmtInAdditionalCrcy1 | TaxBaseAmtInAdditionalCrcy1 | LC 2 Base | ||
| TaxBaseAmtInAdditionalCrcy2 | TaxBaseAmtInAdditionalCrcy2 | LC 3 Base | ||
| TaxAmountInAdditionalCurrency1 | TaxAmountInAdditionalCurrency1 | LC 2 Tax | ||
| TaxAmountInAdditionalCurrency2 | TaxAmountInAdditionalCurrency2 | LC 3 Tax | ||
| DocumentItemText | ||||
| _AccountingDocument | _AccountingDocument | |||
| _GLAccount | _GLAccount | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _TaxTypeText | _TaxTypeText | |||
| _TaxCalculationProcedure | I_StRpTaxItemBoxCube | _TaxCalculationProcedure | ||
| _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_StRpTaxItemCube.
-- 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: ISGSRTAXITEMCUBE
-- Parameters: P_RelevantAmountPosition : relevantamountposition, P_Language : sylangu
CREATE VIEW I_SG_StRpTaxItemCube AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
I_StRpTaxItemBoxCube.TaxItem AS TaxItem,
I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
TaxCode,
TransactionTypeDetermination,
TaxBox,
TaxDeclnAmountType,
TaxItemGroupingVersion,
ValidFrom,
TaxBoxStructureType,
TaxGroup,
ReportingDate,
PostingDate,
DocumentDate,
TaxReportingDate,
TaxItemGroup,
FiscalPeriod,
AccountingDocumentType,
AccountingDocumentHeaderText,
DocumentReferenceID,
CompanyCodeCountry,
ReportingCountry,
TaxReturnCountry,
BusinessPartnerCountry,
ExchangeRate,
cast( TaxRate as btaux ) AS TaxRate,
GLAccount,
BusinessPlace,
TaxJurisdiction,
LowestLevelTaxJurisdiction,
I_StRpTaxItemBoxCube.TaxCalculationProcedure AS TaxCalculationProcedure,
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_StRpTaxItemBoxCube.CountryCurrency AS CountryCurrency,
DocumentCurrency,
case $parameters.P_RelevantAmountPosition when '2' then AdditionalCurrency1 when '3' then AdditionalCurrency2 when 'C' then I_StRpTaxItemBoxCube.CountryCurrency else I_StRpTaxItemBoxCube.ReportingCurrency end as ReportingCurrency AS ReportingCurrencyendasReportingCurrency,
AdditionalCurrency1,
AdditionalCurrency2,
cast( AmountInTransactionCurrency as fis_wsl) AS AmountInTransactionCurrency,
cast ( TaxBaseAmountInCoCodeCrcy as hwbas_bses ) AS TaxBaseAmountInCoCodeCrcy,
cast ( TaxAmountInCoCodeCrcy as hwste) AS TaxAmountInCoCodeCrcy,
cast( TaxBaseAmountInTransCrcy as fwbas_bses ) AS TaxBaseAmountInTransCrcy,
cast( TaxAmount as fwste ) AS TaxAmount,
cast( TaxBaseAmountInRptgCrcy as glo_taxbase_amount_rptg_crcy) AS TaxBaseAmountInRptgCrcy,
cast( TaxAmountInRptgCrcy as glo_tax_amount_rptg_crcy ) AS TaxAmountInRptgCrcy,
cast (AmountInAdditionalCurrency1 as dmbe2_farp ) AS AmountInAdditionalCurrency1,
cast(AmountInAdditionalCurrency2 as dmbe3_farp) AS AmountInAdditionalCurrency2,
TaxBaseAmtInAdditionalCrcy1,
TaxBaseAmtInAdditionalCrcy2,
TaxAmountInAdditionalCurrency1,
TaxAmountInAdditionalCurrency2,
' ' AS DocumentItemText,
I_StRpTaxItemBoxCube._TaxCalculationProcedure AS _TaxCalculationProcedure
FROM I_StRpTaxItemBoxCube
LEFT OUTER JOIN I_Country ON /* join condition not captured in parsed metadata */
;
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