I_VN_StRpWhldgTaxItemCube

DDL: I_VN_STRPWHLDGTAXITEMCUBE Type: view_entity COMPOSITE Package: GLO_FIN_IS_WHT_VN

Vietnam Withholding Tax Details - Cube

I_VN_StRpWhldgTaxItemCube is a Composite CDS View (Cube) that provides data about "Vietnam Withholding Tax Details - Cube" in SAP S/4HANA. It has 2 associations to related views. Part of development package GLO_FIN_IS_WHT_VN.

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Businesspartnertaxnumber _taxnum _taxnum.BusinessPartner = doc.BusinessPartnerNumber and _taxnum.BPTaxType = 'VN1'
[1..1] P_VN_StRpWhldgTaxItem _vat _vat.CompanyCode = doc.CompanyCode and _vat.AccountingDocument = doc.AccountingDocument and _vat.FiscalYear = doc.FiscalYear and _vat.AccountingDocumentItem = doc.AccountingDocumentItem and _vat.OfficialWhldgTaxCode = 'VAT'

Annotations (10)

NameValueLevelField
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #MANDATORY 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
Analytics.internalName #LOCAL view
EndUserText.label Vietnam Withholding Tax Details - Cube view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode doc CompanyCode Receiver Company Code
KEY AccountingDocument doc AccountingDocument Journal Entry
KEY FiscalYear
KEY AccountingDocumentItem doc AccountingDocumentItem Posting View Item
KEY WithholdingTaxType doc WithholdingTaxType WTax Type
KEY StatryRptgEntity doc StatryRptgEntity Reporting Entity
KEY StatryRptCategory doc StatryRptCategory Report ID
KEY StatryRptRunID doc StatryRptRunID Report Run ID
OfficialWhldgTaxCode doc OfficialWhldgTaxCode
WithholdingTaxCode doc WithholdingTaxCode WTax Code
ReportingCurrency doc ReportingCurrency Currency
TransactionCurrency doc TransactionCurrency Transaction Currency
ClearingJournalEntry doc ClearingJournalEntry Clrng doc.
ClearingJournalEntryFiscalYear doc ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
InvoiceReference doc InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear doc InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
WhldgTaxDocumentType doc WhldgTaxDocumentType 3-Byte field
WhldgTaxBaseAmtInCoCodeCrcy doc WhldgTaxBaseAmtInCoCodeCrcy
WhldgTaxAmtInCoCodeCrcy doc WhldgTaxAmtInCoCodeCrcy
AmountInCompanyCodeCurrency doc AmountInCompanyCodeCurrency Local Crcy Amt
WithholdingTaxPercent doc WithholdingTaxPercent
BusinessPartnerName1
BusinessPartnerName2
BusinessPartnerName3
BusinessPartnerName4
BusinessPartnerCountry doc BusinessPartnerCountry BP Ctry/Reg.
PostingDate doc PostingDate Posting Date for GR
DocumentDate doc DocumentDate Journal Entry Date
ReportingDate doc ReportingDate
IsReversed doc IsReversed Reversed?
IsReversal doc IsReversal Reversal doc.
DocumentItemText
BPTaxNumber _taxnum BPTaxNumber Tax Number
ClearingDate doc ClearingDate Clearing Date
VATWhldgTxBaseAmtInCoCodeCrcy _vat VATWhldgTxBaseAmtInCoCodeCrcy
VATWhldgTaxAmtInCoCodeCrcy _vat VATWhldgTaxAmtInCoCodeCrcy
VATWhldgTaxRate _vat VATWhldgTaxRate

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_VN_StRpWhldgTaxItemCube.
-- 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_VN_StRpWhldgTaxItemCube AS
SELECT
  doc.CompanyCode AS CompanyCode,
  doc.AccountingDocument AS AccountingDocument,
  cast(doc.FiscalYear as fis_gjahr_no_conv preserving type) AS FiscalYear,
  doc.AccountingDocumentItem AS AccountingDocumentItem,
  doc.WithholdingTaxType AS WithholdingTaxType,
  doc.StatryRptgEntity AS StatryRptgEntity,
  doc.StatryRptCategory AS StatryRptCategory,
  doc.StatryRptRunID AS StatryRptRunID,
  doc.OfficialWhldgTaxCode AS OfficialWhldgTaxCode,
  doc.WithholdingTaxCode AS WithholdingTaxCode,
  doc.ReportingCurrency AS ReportingCurrency,
  doc.TransactionCurrency AS TransactionCurrency,
  doc.ClearingJournalEntry AS ClearingJournalEntry,
  doc.ClearingJournalEntryFiscalYear AS ClearingJournalEntryFiscalYear,
  doc.InvoiceReference AS InvoiceReference,
  doc.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  doc.WhldgTaxDocumentType AS WhldgTaxDocumentType,
  doc.WhldgTaxBaseAmtInCoCodeCrcy AS WhldgTaxBaseAmtInCoCodeCrcy,
  doc.WhldgTaxAmtInCoCodeCrcy AS WhldgTaxAmtInCoCodeCrcy,
  doc.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  doc.WithholdingTaxPercent AS WithholdingTaxPercent,
  doc._Supplier.BusinessPartnerName1 AS BusinessPartnerName1,
  doc._Supplier.BusinessPartnerName2 AS BusinessPartnerName2,
  doc._Supplier.BusinessPartnerName3 AS BusinessPartnerName3,
  doc._Supplier.BusinessPartnerName4 AS BusinessPartnerName4,
  doc.BusinessPartnerCountry AS BusinessPartnerCountry,
  doc.PostingDate AS PostingDate,
  doc.DocumentDate AS DocumentDate,
  doc.ReportingDate AS ReportingDate,
  doc.IsReversed AS IsReversed,
  doc.IsReversal AS IsReversal,
  doc._OperationalAcctgDocItem.DocumentItemText AS DocumentItemText,
  _taxnum.BPTaxNumber AS BPTaxNumber,
  doc.ClearingDate AS ClearingDate,
  _vat.VATWhldgTxBaseAmtInCoCodeCrcy AS VATWhldgTxBaseAmtInCoCodeCrcy,
  _vat.VATWhldgTaxAmtInCoCodeCrcy AS VATWhldgTaxAmtInCoCodeCrcy,
  _vat.VATWhldgTaxRate AS VATWhldgTaxRate
LEFT OUTER JOIN I_Businesspartnertaxnumber AS _taxnum ON _taxnum.BusinessPartner = doc.BusinessPartnerNumber AND _taxnum.BPTaxType = 'VN1'  -- association [1..1]
LEFT OUTER JOIN P_VN_StRpWhldgTaxItem AS _vat ON _vat.CompanyCode = doc.CompanyCode AND _vat.AccountingDocument = doc.AccountingDocument AND _vat.FiscalYear = doc.FiscalYear AND _vat.AccountingDocumentItem = doc.AccountingDocumentItem AND _vat.OfficialWhldgTaxCode = 'VAT'  -- association [1..1]
;