I_JP_StRpWhiteRetsWhldgTxItm

DDL: I_JP_STRPWHITERETSWHLDGTXITM Type: view_entity COMPOSITE Package: GLO_FIN_IS_WHT_JP

Japan White Returns Withholding Tax Details

I_JP_StRpWhiteRetsWhldgTxItm is a Composite CDS View (Cube) that provides data about "Japan White Returns Withholding Tax Details" in SAP S/4HANA. It reads from 2 data sources (P_JP_StRpWithholdingTaxItem, P_JP_LastVndrInvcPaytInfo) and exposes 43 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear, WithholdingTaxType. It has 1 association to related views. Part of development package GLO_FIN_IS_WHT_JP.

Data Sources (2)

SourceAliasJoin Type
P_JP_StRpWithholdingTaxItem I_StRpWhldgTaxItem from
P_JP_LastVndrInvcPaytInfo P_JP_LastVndrInvcPaytInfo left_outer

Parameters (2)

NameTypeDefault
P_StartDate datum
P_EndDate datum

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Currency _ReportingCurrency $projection.ReportingCurrency = _ReportingCurrency.Currency

Annotations (10)

NameValueLevelField
EndUserText.label Japan White Returns Withholding Tax Details view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.allowExtensions true view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_JP_StRpWithholdingTaxItem CompanyCode Receiver Company Code
KEY AccountingDocument P_JP_StRpWithholdingTaxItem AccountingDocument Journal Entry
KEY AccountingDocumentItem P_JP_StRpWithholdingTaxItem AccountingDocumentItem Posting View Item
KEY FiscalYear P_JP_StRpWithholdingTaxItem FiscalYear G/L Fiscal Year
KEY WithholdingTaxType P_JP_StRpWithholdingTaxItem WithholdingTaxType WTax Type
KEY WithholdingTaxCode P_JP_StRpWithholdingTaxItem WithholdingTaxCode WTax Code
KEY StatryRptgEntity P_JP_StRpWithholdingTaxItem StatryRptgEntity Reporting Entity
KEY StatryRptCategory P_JP_StRpWithholdingTaxItem StatryRptCategory Report ID
KEY StatryRptRunID P_JP_StRpWithholdingTaxItem StatryRptRunID Report Run ID
ClearingJournalEntry P_JP_StRpWithholdingTaxItem ClearingJournalEntry Clrng doc.
PostingDate P_JP_StRpWithholdingTaxItem PostingDate Posting Date for GR
BusinessPartner
ReportingCurrency P_JP_StRpWithholdingTaxItem ReportingCurrency Currency
TransactionCurrency P_JP_StRpWithholdingTaxItem TransactionCurrency Transaction Currency
WhldgTaxBaseAmtInCoCodeCrcy
WhldgTaxAmtInCoCodeCrcy
WhldgTaxAmtInTransacCrcy
WhldgTaxBaseAmtInTransacCrcy
WhldgTxDdctdNetAmtInTransCrcy
WhldgTaxDocumentType P_JP_StRpWithholdingTaxItem WhldgTaxDocumentType 3-Byte field
WhldgTaxCodeName
BusinessPartnerCountry
AddressID
TaxNumber1
Nameasglo_partnerasName
CustomerSupplierName
OrganizationBPName1
CustomerSupplierStreetName
CustomerSupplierPostalCode
CustomerSupplierCityName
SupplierRegionName
StreetSuffixName
WithholdingTaxCertificate P_JP_StRpWithholdingTaxItem WithholdingTaxCertificate WHT Certificate
CompanyCodeName
Country
PhoneNumber
Language
OfficialWhldgTaxCode P_JP_StRpWithholdingTaxItem OfficialWhldgTaxCode
PaymentDate P_JP_StRpWithholdingTaxItem PostingDate Posting Date for GR
DocumentItemText P_JP_StRpWithholdingTaxItem DocumentItemText Text
NumberOfDocuments _LastVndrInvcPayt NumberOfDocuments
DocumentReferenceID P_JP_StRpWithholdingTaxItem DocumentReferenceID Reference
IsOneTimeAccount

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_JP_StRpWhiteRetsWhldgTxItm.
-- 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.
-- Parameters: P_StartDate : datum, P_EndDate : datum

CREATE VIEW I_JP_StRpWhiteRetsWhldgTxItm AS
SELECT
  I_StRpWhldgTaxItem.CompanyCode AS CompanyCode,
  I_StRpWhldgTaxItem.AccountingDocument AS AccountingDocument,
  I_StRpWhldgTaxItem.AccountingDocumentItem AS AccountingDocumentItem,
  I_StRpWhldgTaxItem.FiscalYear AS FiscalYear,
  I_StRpWhldgTaxItem.WithholdingTaxType AS WithholdingTaxType,
  I_StRpWhldgTaxItem.WithholdingTaxCode AS WithholdingTaxCode,
  I_StRpWhldgTaxItem.StatryRptgEntity AS StatryRptgEntity,
  I_StRpWhldgTaxItem.StatryRptCategory AS StatryRptCategory,
  I_StRpWhldgTaxItem.StatryRptRunID AS StatryRptRunID,
  I_StRpWhldgTaxItem.ClearingJournalEntry AS ClearingJournalEntry,
  I_StRpWhldgTaxItem.PostingDate AS PostingDate,
  cast(I_StRpWhldgTaxItem.BusinessPartner as /scdl/dl_partyno) AS BusinessPartner,
  I_StRpWhldgTaxItem.ReportingCurrency AS ReportingCurrency,
  I_StRpWhldgTaxItem.TransactionCurrency AS TransactionCurrency,
  cast ( I_StRpWhldgTaxItem.WhldgTaxBaseAmtInCoCodeCrcy as fis_qsshh) AS WhldgTaxBaseAmtInCoCodeCrcy,
  cast (I_StRpWhldgTaxItem.WhldgTaxAmtInCoCodeCrcy as fis_qbshh) AS WhldgTaxAmtInCoCodeCrcy,
  cast (I_StRpWhldgTaxItem.WhldgTaxAmtInTransacCrcy as fis_qbshb) AS WhldgTaxAmtInTransacCrcy,
  cast (I_StRpWhldgTaxItem.WhldgTaxBaseAmtInTransacCrcy as fis_qsshb) AS WhldgTaxBaseAmtInTransacCrcy,
  cast (I_StRpWhldgTaxItem.WhldgTxDdctdNetAmtInTransCrcy as fiwt_net_amt) AS WhldgTxDdctdNetAmtInTransCrcy,
  I_StRpWhldgTaxItem.WhldgTaxDocumentType AS WhldgTaxDocumentType,
  cast( left( I_StRpWhldgTaxItem._WithholdingTaxCode._CodeText[1:Language = $session.system_language].WhldgTaxCodeName, 20) as abap.char(20) ) AS WhldgTaxCodeName,
  I_StRpWhldgTaxItem._Supplier.Country AS BusinessPartnerCountry,
  I_StRpWhldgTaxItem._Supplier.AddressID AS AddressID,
  cast(I_StRpWhldgTaxItem.TaxNumber1 as stcd1) AS TaxNumber1,
  cast( coalesce(_LastVndrInvcPayt._InternationalAddrVersion.BusinessPartnerName1, I_StRpWhldgTaxItem.Name) as glo_partner ) as Name AS Nameasglo_partnerasName,
  cast(I_StRpWhldgTaxItem.Name as glo_partner) AS CustomerSupplierName,
  cast(I_StRpWhldgTaxItem.OrganizationBPName1 as bu_nameor1) AS OrganizationBPName1,
  cast( I_StRpWhldgTaxItem.StreetName as glo_partner_street ) AS CustomerSupplierStreetName,
  cast(I_StRpWhldgTaxItem.PostalCode as glo_partner_pocode) AS CustomerSupplierPostalCode,
  cast(I_StRpWhldgTaxItem.CityName as glo_partner_cityname) AS CustomerSupplierCityName,
  I_StRpWhldgTaxItem._Supplier._StandardAddress._Region._RegionText[1:Language = $session.system_language].RegionName AS SupplierRegionName,
  I_StRpWhldgTaxItem._Supplier._StandardAddress.StreetSuffixName AS StreetSuffixName,
  I_StRpWhldgTaxItem.WithholdingTaxCertificate AS WithholdingTaxCertificate,
  I_StRpWhldgTaxItem._CompanyCode.CompanyCodeName AS CompanyCodeName,
  I_StRpWhldgTaxItem._CompanyCode.Country AS Country,
  I_StRpWhldgTaxItem._CompanyCode._Address._DefaultPhoneNumber.PhoneNumber AS PhoneNumber,
  I_StRpWhldgTaxItem._Supplier.SupplierLanguage AS Language,
  I_StRpWhldgTaxItem.OfficialWhldgTaxCode AS OfficialWhldgTaxCode,
  I_StRpWhldgTaxItem.PostingDate AS PaymentDate,
  I_StRpWhldgTaxItem.DocumentItemText AS DocumentItemText,
  _LastVndrInvcPayt.NumberOfDocuments AS NumberOfDocuments,
  I_StRpWhldgTaxItem.DocumentReferenceID AS DocumentReferenceID,
  I_StRpWhldgTaxItem._Supplier.IsOneTimeAccount AS IsOneTimeAccount
FROM P_JP_StRpWithholdingTaxItem AS I_StRpWhldgTaxItem
LEFT OUTER JOIN P_JP_LastVndrInvcPaytInfo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency  -- association [0..1]
;