P_TH_StRpTaxPaymentItem

DDL: P_TH_STRPTAXPAYMENTITEM SQL: PTHSTRPTAXPITEM Type: view COMPOSITE Package: GLO_FIN_IS_VAT_TH

For Thailand PP36 Tax Return Report

P_TH_StRpTaxPaymentItem is a Composite CDS View that provides data about "For Thailand PP36 Tax Return Report" in SAP S/4HANA. It reads from 2 data sources (I_StRpTaxItemBoxCube, P_DebtorCreditorRblsPyblsItem) and exposes 91 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxItem, StatryRptgEntity. Part of development package GLO_FIN_IS_VAT_TH.

Data Sources (2)

SourceAliasJoin Type
I_StRpTaxItemBoxCube I_StRpTaxItemBoxCube from
P_DebtorCreditorRblsPyblsItem P_DebtorCreditorRblsPyblsItem left_outer

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PTHSTRPTAXPITEM view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED 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

Fields (91)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_StRpTaxItemBoxCube CompanyCode Receiver Company Code
KEY AccountingDocument I_StRpTaxItemBoxCube AccountingDocument Journal Entry
KEY FiscalYear I_StRpTaxItemBoxCube FiscalYear G/L Fiscal Year
KEY TaxItem I_StRpTaxItemBoxCube TaxItem Tax Item
KEY StatryRptgEntity
KEY StatryRptCategory
KEY StatryRptRunID
KEY TaxCode I_StRpTaxItemBoxCube TaxCode Tax Code
KEY TransactionTypeDetermination I_StRpTaxItemBoxCube TransactionTypeDetermination Transaction Key
KEY TaxBox TaxBox Tax.Bs.Gp.No.
KEY TaxDeclnAmountType TaxDeclnAmountType
KEY TaxItemGroupingVersion I_StRpTaxItemBoxCube TaxItemGroupingVersion Tax Grping Ver.
KEY ValidFrom ValidFrom Vers.Valid From
KEY TaxBoxStructureType TaxBoxStructureType
KEY TaxGroup TaxGroup Tax Group
TaxCalculationProcedure I_StRpTaxItemBoxCube TaxCalculationProcedure Tax Procedure
ReportingDate ReportingDate
PostingDate I_StRpTaxItemBoxCube PostingDate Posting Date for GR
DocumentDate I_StRpTaxItemBoxCube DocumentDate Journal Entry Date
TaxReportingDate I_StRpTaxItemBoxCube TaxReportingDate Tax Reporting Date
FiscalPeriod I_StRpTaxItemBoxCube FiscalPeriod Tax period
TaxItemGroup I_StRpTaxItemBoxCube TaxItemGroup Tax doc. item number
AccountingDocumentType I_StRpTaxItemBoxCube AccountingDocumentType Journal Entry Type
ExchangeRate I_StRpTaxItemBoxCube ExchangeRate Exchange rate
ClearingDocFiscalYear P_DebtorCreditorRblsPyblsItem ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry
ClearingAccountingDocument P_DebtorCreditorRblsPyblsItem ClearingAccountingDocument Clearing Journal Entry
ClearingJournalEntry P_DebtorCreditorRblsPyblsItem ClearingJournalEntry Clrng doc.
ClearingJournalEntryFiscalYear P_DebtorCreditorRblsPyblsItem ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
SupplierPaytCurrencyExchRate
PaymentNote P_DebtorCreditorRblsPyblsItem DocumentItemText Text
DocumentReferenceID
CompanyCodeCountry CompanyCodeCountry Reporting Ctry/Reg.
ReportingCountry ReportingCountry
BusinessPartnerCountry BusinessPartnerCountry BP Ctry/Reg.
TaxRate Tax Rate
IsReversal I_StRpTaxItemBoxCube IsReversal Reversal doc.
IsReversed I_StRpTaxItemBoxCube IsReversed Reversed?
AccountingDocumentHeaderText I_StRpTaxItemBoxCube AccountingDocumentHeaderText Doc.Header Text
GLAccount I_StRpTaxItemBoxCube GLAccount General Ledger
BusinessPlace I_StRpTaxItemBoxCube BusinessPlace Business place
TaxJurisdiction I_StRpTaxItemBoxCube 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
Building
RoomNumber
Floor
StreetSuffixName
HouseNumber
StreetPrefixName
AdditionalStreetPrefixName
StreetName
HomeCityName
District
CityName
PostalCode
Country
TaxType I_StRpTaxItemBoxCube TaxType Tax Type
CompanyCodeCurrency I_StRpTaxItemBoxCube CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCurrency ReportingCurrency Currency
AdditionalCurrency1 I_StRpTaxItemBoxCube AdditionalCurrency1 Local curr. 2
AdditionalCurrency2 I_StRpTaxItemBoxCube AdditionalCurrency2 Local curr. 3
AmountInReportingCurrency AmountInReportingCurrency
AmountInTransactionCurrency
TaxBaseAmountInCoCodeCrcy
TaxAmountInCoCodeCrcy
TaxBaseAmountInTransCrcy
TaxAmount
TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy Tax Rept. Crcy
AmountInAdditionalCurrency1 I_StRpTaxItemBoxCube AmountInAdditionalCurrency1 Amount in Additional Currency 1
AmountInAdditionalCurrency2 I_StRpTaxItemBoxCube AmountInAdditionalCurrency2 LC2 Amount
TaxBaseAmtInAdditionalCrcy1 TaxBaseAmtInAdditionalCrcy1 LC 2 Base
TaxBaseAmtInAdditionalCrcy2 TaxBaseAmtInAdditionalCrcy2 LC 3 Base
TaxAmountInAdditionalCurrency1 TaxAmountInAdditionalCurrency1 LC 2 Tax
TaxAmountInAdditionalCurrency2 TaxAmountInAdditionalCurrency2 LC 3 Tax
TaxIsNotDeductible TaxIsNotDeductible Non-Deductible
_Country
_ReportingCurrency _ReportingCurrency
_AccountingDocument _AccountingDocument
_GLAccount I_StRpTaxItemBoxCube _GLAccount
_TaxJurisdiction _TaxJurisdiction
_ReceivablesPayablesItem _ReceivablesPayablesItem
_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 P_TH_StRpTaxPaymentItem.
-- 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: PTHSTRPTAXPITEM

CREATE VIEW P_TH_StRpTaxPaymentItem AS
SELECT
  I_StRpTaxItemBoxCube.CompanyCode AS CompanyCode,
  I_StRpTaxItemBoxCube.AccountingDocument AS AccountingDocument,
  I_StRpTaxItemBoxCube.FiscalYear AS FiscalYear,
  I_StRpTaxItemBoxCube.TaxItem AS TaxItem,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  I_StRpTaxItemBoxCube._ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  I_StRpTaxItemBoxCube.TaxCode AS TaxCode,
  I_StRpTaxItemBoxCube.TransactionTypeDetermination AS TransactionTypeDetermination,
  TaxBox,
  TaxDeclnAmountType,
  I_StRpTaxItemBoxCube.TaxItemGroupingVersion AS TaxItemGroupingVersion,
  ValidFrom,
  TaxBoxStructureType,
  TaxGroup,
  I_StRpTaxItemBoxCube.TaxCalculationProcedure AS TaxCalculationProcedure,
  ReportingDate,
  I_StRpTaxItemBoxCube.PostingDate AS PostingDate,
  I_StRpTaxItemBoxCube.DocumentDate AS DocumentDate,
  I_StRpTaxItemBoxCube.TaxReportingDate AS TaxReportingDate,
  I_StRpTaxItemBoxCube.FiscalPeriod AS FiscalPeriod,
  I_StRpTaxItemBoxCube.TaxItemGroup AS TaxItemGroup,
  I_StRpTaxItemBoxCube.AccountingDocumentType AS AccountingDocumentType,
  I_StRpTaxItemBoxCube.ExchangeRate AS ExchangeRate,
  P_DebtorCreditorRblsPyblsItem.ClearingDocFiscalYear AS ClearingDocFiscalYear,
  P_DebtorCreditorRblsPyblsItem.ClearingAccountingDocument AS ClearingAccountingDocument,
  P_DebtorCreditorRblsPyblsItem.ClearingJournalEntry AS ClearingJournalEntry,
  P_DebtorCreditorRblsPyblsItem.ClearingJournalEntryFiscalYear AS ClearingJournalEntryFiscalYear,
  P_DebtorCreditorRblsPyblsItem._ClearingAccountingDocument.ExchangeRate AS SupplierPaytCurrencyExchRate,
  P_DebtorCreditorRblsPyblsItem.DocumentItemText AS PaymentNote,
  P_DebtorCreditorRblsPyblsItem._ClearingAccountingDocument.DocumentReferenceID AS DocumentReferenceID,
  CompanyCodeCountry,
  ReportingCountry,
  BusinessPartnerCountry,
  cast( TaxRate as btaux ) AS TaxRate,
  I_StRpTaxItemBoxCube.IsReversal AS IsReversal,
  I_StRpTaxItemBoxCube.IsReversed AS IsReversed,
  I_StRpTaxItemBoxCube.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  I_StRpTaxItemBoxCube.GLAccount AS GLAccount,
  I_StRpTaxItemBoxCube.BusinessPlace AS BusinessPlace,
  I_StRpTaxItemBoxCube.TaxJurisdiction AS TaxJurisdiction,
  LowestLevelTaxJurisdiction,
  TaxNumber1,
  TaxNumber2,
  TaxNumber3,
  BusinessPartner,
  BusinessPartnerName,
  CustomerSupplierAddress,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.Building AS Building,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.RoomNumber AS RoomNumber,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.Floor AS Floor,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.StreetSuffixName1 AS StreetSuffixName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.HouseNumber AS HouseNumber,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.StreetPrefixName1 AS StreetPrefixName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.StreetPrefixName2 AS AdditionalStreetPrefixName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.StreetName AS StreetName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.VillageName AS HomeCityName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.DistrictName AS District,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.CityName AS CityName,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.PostalCode AS PostalCode,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation.Country AS Country,
  I_StRpTaxItemBoxCube.TaxType AS TaxType,
  I_StRpTaxItemBoxCube.CompanyCodeCurrency AS CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCurrency,
  I_StRpTaxItemBoxCube.AdditionalCurrency1 AS AdditionalCurrency1,
  I_StRpTaxItemBoxCube.AdditionalCurrency2 AS AdditionalCurrency2,
  AmountInReportingCurrency,
  cast( I_StRpTaxItemBoxCube.AmountInTransactionCurrency as fis_wsl) AS AmountInTransactionCurrency,
  cast ( I_StRpTaxItemBoxCube.TaxBaseAmountInCoCodeCrcy as hwbas_bses ) AS TaxBaseAmountInCoCodeCrcy,
  cast ( I_StRpTaxItemBoxCube.TaxAmountInCoCodeCrcy as hwste) AS TaxAmountInCoCodeCrcy,
  cast( I_StRpTaxItemBoxCube.TaxBaseAmountInTransCrcy as fwbas_bses ) AS TaxBaseAmountInTransCrcy,
  cast( I_StRpTaxItemBoxCube.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,
  I_StRpTaxItemBoxCube.AmountInAdditionalCurrency1 AS AmountInAdditionalCurrency1,
  I_StRpTaxItemBoxCube.AmountInAdditionalCurrency2 AS AmountInAdditionalCurrency2,
  TaxBaseAmtInAdditionalCrcy1,
  TaxBaseAmtInAdditionalCrcy2,
  TaxAmountInAdditionalCurrency1,
  TaxAmountInAdditionalCurrency2,
  TaxIsNotDeductible,
  _DebtorCreditorRblsPyblsItem._Supplier._AddressRepresentation._Country AS _Country,
  I_StRpTaxItemBoxCube._GLAccount AS _GLAccount
FROM I_StRpTaxItemBoxCube
LEFT OUTER JOIN P_DebtorCreditorRblsPyblsItem ON /* join condition not captured in parsed metadata */
;