I_VN_StRpWhldgTaxItemCube
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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA