I_SK_StRpCtrlStmntCube

DDL: I_SK_STRPCTRLSTMNTCUBE SQL: ISKSTRPCSC Type: view COMPOSITE

SK VAT Control Statement

I_SK_StRpCtrlStmntCube is a Composite CDS View (Cube) that provides data about "SK VAT Control Statement" in SAP S/4HANA. It reads from 2 data sources (P_SK_StRpCtrlStmntTxItm, P_T007B_GLO) and exposes 32 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, AccountingDocument.

Data Sources (2)

SourceAliasJoin Type
P_SK_StRpCtrlStmntTxItm LogItem from
P_T007B_GLO T007B left_outer

Annotations (13)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName ISKSTRPCSC view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label SK VAT Control Statement view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity P_SK_StRpCtrlStmntTxItm StatryRptgEntity Reporting Entity
KEY StatryRptCategory P_SK_StRpCtrlStmntTxItm StatryRptCategory Report ID
KEY StatryRptRunID P_SK_StRpCtrlStmntTxItm StatryRptRunID Report Run ID
KEY CompanyCode P_SK_StRpCtrlStmntTxItm CompanyCode Receiver Company Code
KEY AccountingDocument P_SK_StRpCtrlStmntTxItm AccountingDocument Journal Entry
KEY FiscalYear P_SK_StRpCtrlStmntTxItm FiscalYear G/L Fiscal Year
KEY TaxItem P_SK_StRpCtrlStmntTxItm TaxItem Tax Item
KEY BillingDocumentItem P_SK_StRpCtrlStmntTxItm BillingDocumentItem Item
TaxGroupendasfot_atr_tax_groupasTaxGroup
VATRegistration P_SK_StRpCtrlStmntTxItm VATRegistration VAT Registration No.
InvoiceNumber P_SK_StRpCtrlStmntTxItm InvoiceNumber Invoice Number
OriginalInvoiceNumber P_SK_StRpCtrlStmntTxItm OriginalInvoiceNumber
TaxReportingDate P_SK_StRpCtrlStmntTxItm TaxReportingDate Tax Reporting Date
TaxFulfillmentDate P_SK_StRpCtrlStmntTxItm TaxFulfillmentDate Tax Settlement Date
TaxRate P_SK_StRpCtrlStmntTxItm TaxRate Tax Rate
TaxBaseAmountInRptgCrcy P_SK_StRpCtrlStmntTxItm TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy P_SK_StRpCtrlStmntTxItm TaxAmountInRptgCrcy Tax Rept. Crcy
DeductibleInputTaxAmount P_SK_StRpCtrlStmntTxItm DeductibleInputTaxAmount
ReportingCurrency P_SK_StRpCtrlStmntTxItm ReportingCurrency Currency
ConsumptionTaxCtrlCode P_SK_StRpCtrlStmntTxItm ConsumptionTaxCtrlCode Taxes F.Trade
BillingQuantityInBaseUnit P_SK_StRpCtrlStmntTxItm BillingQuantityInBaseUnit Bill.Qty in SKU
BaseUnit P_SK_StRpCtrlStmntTxItm BaseUnit Unit of Measure
SK_CtrlStmntUnitOfMeasure P_SK_StRpCtrlStmntTxItm SK_CtrlStmntUnitOfMeasure
SK_CtrlStmntDocIsBadDebtRelief P_SK_StRpCtrlStmntTxItm SK_CtrlStmntDocIsBadDebtRelief
AccountingDocumentType P_SK_StRpCtrlStmntTxItm AccountingDocumentType Journal Entry Type
TaxCode P_SK_StRpCtrlStmntTxItm TaxCode Tax Code
TransactionTypeDetermination P_SK_StRpCtrlStmntTxItm TransactionTypeDetermination Transaction Key
TransactionTaxType P_T007B_GLO stgrp Tax Type
SK_CtrlStmntCorrectionCode
DownPaymentStatus P_SK_StRpCtrlStmntTxItm DownPaymentStatus DP Status
IsReversal P_SK_StRpCtrlStmntTxItm IsReversal Reversal doc.
IsReversed P_SK_StRpCtrlStmntTxItm IsReversed Reversed?

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_SK_StRpCtrlStmntCube.
-- 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: ISKSTRPCSC

CREATE VIEW I_SK_StRpCtrlStmntCube AS
SELECT
  LogItem.StatryRptgEntity AS StatryRptgEntity,
  LogItem.StatryRptCategory AS StatryRptCategory,
  LogItem.StatryRptRunID AS StatryRptRunID,
  LogItem.CompanyCode AS CompanyCode,
  LogItem.AccountingDocument AS AccountingDocument,
  LogItem.FiscalYear AS FiscalYear,
  LogItem.TaxItem AS TaxItem,
  LogItem.BillingDocumentItem AS BillingDocumentItem,
  cast(case when LogItem.IsReversed = 'X' then '' when LogItem.IsReversal = 'X' then '' else LogItem.TaxGroup end as fot_atr_tax_group) as TaxGroup AS TaxGroupendasfot_atr_tax_groupasTaxGroup,
  LogItem.VATRegistration AS VATRegistration,
  LogItem.InvoiceNumber AS InvoiceNumber,
  LogItem.OriginalInvoiceNumber AS OriginalInvoiceNumber,
  LogItem.TaxReportingDate AS TaxReportingDate,
  LogItem.TaxFulfillmentDate AS TaxFulfillmentDate,
  LogItem.TaxRate AS TaxRate,
  LogItem.TaxBaseAmountInRptgCrcy AS TaxBaseAmountInRptgCrcy,
  LogItem.TaxAmountInRptgCrcy AS TaxAmountInRptgCrcy,
  LogItem.DeductibleInputTaxAmount AS DeductibleInputTaxAmount,
  LogItem.ReportingCurrency AS ReportingCurrency,
  LogItem.ConsumptionTaxCtrlCode AS ConsumptionTaxCtrlCode,
  LogItem.BillingQuantityInBaseUnit AS BillingQuantityInBaseUnit,
  LogItem.BaseUnit AS BaseUnit,
  LogItem.SK_CtrlStmntUnitOfMeasure AS SK_CtrlStmntUnitOfMeasure,
  LogItem.SK_CtrlStmntDocIsBadDebtRelief AS SK_CtrlStmntDocIsBadDebtRelief,
  LogItem.AccountingDocumentType AS AccountingDocumentType,
  LogItem.TaxCode AS TaxCode,
  LogItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  T007B.stgrp AS TransactionTaxType,
  cast('' as fisk_corr_code) AS SK_CtrlStmntCorrectionCode,
  LogItem.DownPaymentStatus AS DownPaymentStatus,
  LogItem.IsReversal AS IsReversal,
  LogItem.IsReversed AS IsReversed
FROM P_SK_StRpCtrlStmntTxItm AS LogItem
LEFT OUTER JOIN P_T007B_GLO AS T007B ON /* join condition not captured in parsed metadata */
;