C_GB_StRpOldOpenTaxItemQry

DDL: C_GB_STRPOLDOPENTAXITEMQRY SQL: CGBSROLTAXOPNQ Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_GB

Open items to be repaid

C_GB_StRpOldOpenTaxItemQry is a Consumption CDS View that provides data about "Open items to be repaid" in SAP S/4HANA. It reads from 1 data source (C_GB_StRpOldTaxItemBoxCube) and exposes 49 fields with key fields CompanyCode, AccountingDocument, FiscalYear, StatryRptgEntity, StatryRptCategory. Part of development package GLO_FIN_IS_VAT_GB.

Data Sources (1)

SourceAliasJoin Type
C_GB_StRpOldTaxItemBoxCube C_GB_StRpOldTaxItemBoxCube from

Annotations (9)

NameValueLevelField
VDM.viewType #CONSUMPTION view
Analytics.query true view
AbapCatalog.sqlViewName CGBSROLTAXOPNQ view
EndUserText.label Open items to be repaid view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
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
PostingDate PostingDate Posting Date for GR
ClearingAccountingDocument ClearingAccountingDocument Clearing Journal Entry
ClearingDate ClearingDate Clearing Date
ClearingDocFiscalYear ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry
NetDueDate NetDueDate Net Due Date
DocumentDate DocumentDate Journal Entry Date
TaxReportingDate TaxReportingDate Tax Reporting Date
FiscalPeriod FiscalPeriod Tax period
ReportingDate ReportingDate
AccountingDocumentType AccountingDocumentType Journal Entry Type
DocumentReferenceID DocumentReferenceID Reference
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
TaxReturnCountry TaxReturnCountry Reporting C/R
ExchangeRate ExchangeRate Exchange rate
TaxRate TaxRate Tax Rate
GLAccount GLAccount General Ledger
BusinessPlace BusinessPlace Business place
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
LowestLevelTaxJurisdiction LowestLevelTaxJurisdiction Jurisdict. Code
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxNumber2 TaxNumber2 Tax Number 2
TaxNumber3 TaxNumber3
BusinessPartner BusinessPartner Issuing Authority
BusinessPartnerName BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress CustomerSupplierAddress
TaxType TaxType Tax Type
TargetTaxCode TargetTaxCode
ReportingCurrency ReportingCurrency Currency
AmountInReportingCurrency
DocumentCurrency DocumentCurrency Document Currency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
AdditionalCurrency1 AdditionalCurrency1 Local curr. 2
AmountInAdditionalCurrency1 AmountInAdditionalCurrency1 Amount in Additional Currency 1
AdditionalCurrency2 AdditionalCurrency2 Local curr. 3
AmountInAdditionalCurrency2 AmountInAdditionalCurrency2 LC2 Amount

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 C_GB_StRpOldOpenTaxItemQry.
-- 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: CGBSROLTAXOPNQ

CREATE VIEW C_GB_StRpOldOpenTaxItemQry AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  TaxCode,
  TransactionTypeDetermination,
  TaxBox,
  TaxDeclnAmountType,
  TaxItemGroupingVersion,
  ValidFrom,
  TaxBoxStructureType,
  PostingDate,
  ClearingAccountingDocument,
  ClearingDate,
  ClearingDocFiscalYear,
  NetDueDate,
  DocumentDate,
  TaxReportingDate,
  FiscalPeriod,
  ReportingDate,
  AccountingDocumentType,
  DocumentReferenceID,
  CompanyCodeCountry,
  ReportingCountry,
  TaxReturnCountry,
  ExchangeRate,
  TaxRate,
  GLAccount,
  BusinessPlace,
  TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  BusinessPartner,
  BusinessPartnerName,
  CustomerSupplierAddress,
  TaxType,
  TargetTaxCode,
  ReportingCurrency,
  cast((AmountInReportingCurrency * -1) as glo_amount_rptg_crcy ) AS AmountInReportingCurrency,
  DocumentCurrency,
  AmountInTransactionCurrency,
  AdditionalCurrency1,
  AmountInAdditionalCurrency1,
  AdditionalCurrency2,
  AmountInAdditionalCurrency2
FROM C_GB_StRpOldTaxItemBoxCube
;