P_Ph_StRpTaxItemQ

DDL: P_PH_STRPTAXITEMQ SQL: PSRPHTAXITEMQ Type: view COMPOSITE Package: GLO_FIN_IS_VAT_PH

Tax Item Statutory Reporting for PH

P_Ph_StRpTaxItemQ is a Composite CDS View that provides data about "Tax Item Statutory Reporting for PH" in SAP S/4HANA. It reads from 2 data sources (I_Supplier, P_PH_STRPTaxItems) and exposes 54 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxCode, StatryRptgEntity. Part of development package GLO_FIN_IS_VAT_PH.

Data Sources (2)

SourceAliasJoin Type
I_Supplier I_Supplier left_outer
P_PH_STRPTaxItems P_PH_STRPTaxItems from

Parameters (4)

NameTypeDefault
P_Language sylangu
P_ThirdPartySupplierRefKey vndrrefkey
P_DiscountAccountFrom vonkt_011z
P_DiscountAccountTo biskt_011z

Annotations (10)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.sqlViewName PSRPHTAXITEMQ view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (54)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_PH_STRPTaxItems CompanyCode Receiver Company Code
KEY AccountingDocument P_PH_STRPTaxItems AccountingDocument Journal Entry
KEY FiscalYear P_PH_STRPTaxItems FiscalYear G/L Fiscal Year
KEY TaxCode P_PH_STRPTaxItems TaxCode Tax Code
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
KEY PostingDate P_PH_STRPTaxItems PostingDate Posting Date for GR
KEY TaxItemGroupingVersion TaxItemGroupingVersion Tax Grping Ver.
KEY ValidFrom ValidFrom Vers.Valid From
KEY TaxBoxStructureType TaxBoxStructureType
TaxBox TaxBox Tax.Bs.Gp.No.
TaxGroup TaxGroup Tax Group
DocumentDate DocumentDate Journal Entry Date
ReportingDate ReportingDate
TaxReportingDate TaxReportingDate Tax Reporting Date
FiscalPeriod FiscalPeriod Tax period
AccountingDocumentType AccountingDocumentType Journal Entry Type
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
DocumentReferenceID DocumentReferenceID Reference
BusinessPartner P_PH_STRPTaxItems BusinessPartner Issuing Authority
BusinessPartnerCountry P_PH_STRPTaxItems BusinessPartnerCountry BP Ctry/Reg.
TaxNumber1 P_PH_STRPTaxItems TaxNumber1 VAT Reg. No.
TaxNumber2 P_PH_STRPTaxItems TaxNumber2 Tax Number 2
TaxNumber3 P_PH_STRPTaxItems TaxNumber3 Tax Number 3
BusinessPartnerName P_PH_STRPTaxItems BusinessPartnerName Extracted Customer Name
CustomerSupplierAddress CustomerSupplierAddress
BusinessPlace BusinessPlace Business place
TaxType TaxType Tax Type
TaxRate TaxRate Tax Rate
ExchangeRate ExchangeRate Exchange rate
TaxCalculationProcedure P_PH_STRPTaxItems TaxCalculationProcedure Tax Procedure
TransactionTypeDetermination TransactionTypeDetermination Transaction Key
GLAccount GLAccount General Ledger
AuthorizationGroup I_Supplier AuthorizationGroup AuthorizGroup
Supplier
SupplierTaxID1
SupplierTaxID2
SupplierTaxID3
SupplierName
ReportingCurrency ReportingCurrency Currency
CompanyCodeCurrency P_PH_STRPTaxItems CompanyCodeCurrency Local Currency
CountryCurrency CountryCurrency Currency
DocumentCurrency DocumentCurrency Document Currency
ReportingCountry ReportingCountry
TaxBaseAmountInCoCodeCrcy TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
TaxBaseAmountInRptgCrcy TaxBaseAmountInRptgCrcy Base Amount
TaxAmountInRptgCrcy TaxAmountInRptgCrcy Tax Rept. Crcy
TaxBaseAmountInTransCrcy TaxBaseAmountInTransCrcy Value-Added Tax
TaxAmount TaxAmount Tax Amt in Rptg Crcy
GrossAmountInCoCodeCurrency GrossAmountInCoCodeCurrency
TaxTypeName
TaxCodeName

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_Ph_StRpTaxItemQ.
-- 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: PSRPHTAXITEMQ
-- Parameters: P_Language : sylangu, P_ThirdPartySupplierRefKey : vndrrefkey, P_DiscountAccountFrom : vonkt_011z, P_DiscountAccountTo : biskt_011z

CREATE VIEW P_Ph_StRpTaxItemQ AS
SELECT
  P_PH_STRPTaxItems.CompanyCode AS CompanyCode,
  P_PH_STRPTaxItems.AccountingDocument AS AccountingDocument,
  P_PH_STRPTaxItems.FiscalYear AS FiscalYear,
  P_PH_STRPTaxItems.TaxCode AS TaxCode,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  P_PH_STRPTaxItems.PostingDate AS PostingDate,
  TaxItemGroupingVersion,
  ValidFrom,
  TaxBoxStructureType,
  TaxBox,
  TaxGroup,
  DocumentDate,
  ReportingDate,
  TaxReportingDate,
  FiscalPeriod,
  AccountingDocumentType,
  AccountingDocumentHeaderText,
  DocumentReferenceID,
  P_PH_STRPTaxItems.BusinessPartner AS BusinessPartner,
  P_PH_STRPTaxItems.BusinessPartnerCountry AS BusinessPartnerCountry,
  P_PH_STRPTaxItems.TaxNumber1 AS TaxNumber1,
  P_PH_STRPTaxItems.TaxNumber2 AS TaxNumber2,
  P_PH_STRPTaxItems.TaxNumber3 AS TaxNumber3,
  P_PH_STRPTaxItems.BusinessPartnerName AS BusinessPartnerName,
  CustomerSupplierAddress,
  BusinessPlace,
  TaxType,
  TaxRate,
  ExchangeRate,
  P_PH_STRPTaxItems.TaxCalculationProcedure AS TaxCalculationProcedure,
  TransactionTypeDetermination,
  GLAccount,
  I_Supplier.AuthorizationGroup AS AuthorizationGroup,
  cast( P_PH_STRPTaxItems.Supplier as fiph_lifnr ) AS Supplier,
  cast( I_Supplier.TaxNumber1 as fiph_stcd1 ) AS SupplierTaxID1,
  cast (I_Supplier.TaxNumber2 as fiph_stcd2 ) AS SupplierTaxID2,
  cast (I_Supplier.TaxNumber3 as fiph_stcd3 ) AS SupplierTaxID3,
  cast( I_Supplier.BPSupplierName as suppliername_2) AS SupplierName,
  ReportingCurrency,
  P_PH_STRPTaxItems.CompanyCodeCurrency AS CompanyCodeCurrency,
  CountryCurrency,
  DocumentCurrency,
  ReportingCountry,
  TaxBaseAmountInCoCodeCrcy,
  TaxAmountInCoCodeCrcy,
  TaxBaseAmountInRptgCrcy,
  TaxAmountInRptgCrcy,
  TaxBaseAmountInTransCrcy,
  TaxAmount,
  GrossAmountInCoCodeCurrency,
  cast ( _TaxTypeText[1:Language = $parameters.P_Language].TaxTypeName as fis_mwart ) AS TaxTypeName,
  _TaxCodeText[1:Language = $parameters.P_Language].TaxCodeName AS TaxCodeName
FROM P_PH_STRPTaxItems
LEFT OUTER JOIN I_Supplier ON /* join condition not captured in parsed metadata */
;