I_Fr_Strpwhldgtaxitem is a Composite CDS View (Cube) that provides data about "WHT Item For Statutory Reporting France" in SAP S/4HANA. It reads from 1 data source (I_CustomerToBusinessPartner) and exposes 41 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType. It has 1 association to related views.
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_Fr_Strpwhldgtaxitem.-- 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.CREATE VIEW I_Fr_Strpwhldgtaxitem ASSELECT
WhldgTxItem.CompanyCode AS CompanyCode,
WhldgTxItem.AccountingDocument AS AccountingDocument,
WhldgTxItem.FiscalYear AS FiscalYear,
WhldgTxItem.AccountingDocumentItem AS AccountingDocumentItem,
WhldgTxItem.WithholdingTaxType AS WithholdingTaxType,
WhldgTxItem.StatryRptgEntity AS StatryRptgEntity,
WhldgTxItem.StatryRptCategory AS StatryRptCategory,
WhldgTxItem.StatryRptRunID AS StatryRptRunID,
WhldgTxItem.OfficialWhldgTaxCode AS OfficialWhldgTaxCode,
WhldgTxItem.WithholdingTaxCode AS WithholdingTaxCode,
WhldgTxItem.Creditor AS Creditor,
WhldgTxItem.PostingDate AS PostingDate,
WhldgTxItem.Debtor AS Debtor,
WhldgTxItem.BusinessPartnerNumber AS BusinessPartnerNumber,
cast( WhldgTxItem.ReportingDate as ftr_reporting_date) AS ReportingDate,
WhldgTxItem.ReportingCurrency AS ReportingCurrency,
cast ( WhldgTxItem.WhldgTaxBaseAmtInCoCodeCrcy as fis_qsshh) AS WhldgTaxBaseAmtInCoCodeCrcy,
cast ( WhldgTxItem.WhldgTaxAmtInCoCodeCrcy as fis_qbshh) AS WhldgTaxAmtInCoCodeCrcy,
WhldgTxItem.WhldgTaxExmptAmtInCoCodeCrcy AS WhldgTaxExmptAmtInCoCodeCrcy,
cast(WhldgTxItem.BusinessPartner as /scdl/dl_partyno) AS BusinessPartner,
WhldgTxItem._CompanyCode.CompanyCodeName AS CompanyCodeName,
WhldgTxItem._CompanyCode._Address.FullName AS FullName,
WhldgTxItem._CompanyCode._Address._DefaultPhoneNumber.PhoneNumber AS PhoneNumber,
WhldgTxItem._CompanyCode.CityName AS CityName,
WhldgTxItem._CompanyCode._Address.HouseNumber AS HouseNumber,
WhldgTxItem._CompanyCode._Address.StreetName AS StreetName,
WhldgTxItem._CompanyCode._Address.PostalCode AS PostalCode,
WhldgTxItem._CompanyCode._Address.HomeCityName AS HomeCityName,
casewhen WhldgTxItem.Debtor = '' then WhldgTxItem._Supplier.IsOneTimeAccount else WhldgTxItem._Customer.IsOneTimeAccount endas IsOneTimeAccount AS IsOneTimeAccountendasIsOneTimeAccount,
cast(casewhen WhldgTxItem.Creditor = '' and WhldgTxItem._Customer.IsOneTimeAccount = 'X' then WhldgTxItem.TaxNumber1 when WhldgTxItem.Debtor = '' and WhldgTxItem._Supplier.IsOneTimeAccount = 'X' then WhldgTxItem.TaxNumber1 else BPTxNmbr1.BPTaxNumber endas stcd1) as TaxNumber1 AS BPTaxNumberendasstcd1asTaxNumber1,
cast(BPTxNmbr2.BPTaxNumber as stcd2) AS TaxNumber2,
cast(casewhen BP.BusinessPartnerCategory = '1' then '' else WhldgTxItem.Name endas glo_partner) as Name AS Nameendasglo_partnerasName,
cast(casewhen WhldgTxItem.Debtor = '' then WhldgTxItem._Supplier._StandardAddress.Building else WhldgTxItem._Customer._StandardAddress.Building endas ad_bldng) as Building AS Buildingendasad_bldngasBuilding,
cast( WhldgTxItem.StreetName as glo_partner_street ) AS CustomerSupplierStreetName,
cast( WhldgTxItem.PostalCode as glo_partner_pocode) AS CustomerSupplierPostalCode,
cast( WhldgTxItem.CityName as glo_partner_cityname) AS CustomerSupplierCityName,
casewhen WhldgTxItem.Debtor = '' then WhldgTxItem._Supplier._StandardAddress.Country else WhldgTxItem._Customer._StandardAddress.Country endas Country AS CountryendasCountry,
WhldgTxItem.IsReversed AS IsReversed,
WhldgTxItem.IsReversal AS IsReversal,
WhldgTxItem.SpecialGLCode AS SpecialGLCode
INNERJOIN I_CustomerToBusinessPartner AS _cbp ON /* join condition not captured in parsed metadata */
LEFTOUTERJOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency -- association [0..1]
;