P_StRpWhldgTaxItem
P_StRpWhldgTaxItem is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_Withholdingtaxitem). It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Withholdingtaxitem | wht | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_OperationalAcctgDocItem | doc | wht.CompanyCode = doc.CompanyCode and wht.AccountingDocument = doc.AccountingDocument and wht.FiscalYear = doc.FiscalYear and wht.AccountingDocumentItem = doc.AccountingDocumentItem and doc.WithholdingTaxCode <> '' |
| [0..1] | I_JournalEntryItemOneTimeData | _Onetime | wht.CompanyCode = _Onetime.CompanyCode and wht.AccountingDocument = _Onetime.AccountingDocument and wht.FiscalYear = _Onetime.FiscalYear and wht.AccountingDocumentItem = _Onetime.AccountingDocumentItem |
| [0..1] | I_Branch | _Branch | $projection.CompanyCode = _Branch.CompanyCode and $projection.businessplace = _Branch.Branch |
| [0..1] | P_Withholdingtxtype | _TaxType | _TaxType.land1 = wht.Country and _TaxType.witht = wht.WithholdingTaxType |
| [0..1] | I_Currency | _ReportingCurrency | $projection.ReportingCurrency = _ReportingCurrency.Currency |
| [0..1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view |
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_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 P_StRpWhldgTaxItem AS
SELECT * -- field list not available in parsed metadata
FROM I_Withholdingtaxitem AS wht
LEFT OUTER JOIN I_OperationalAcctgDocItem AS doc ON wht.CompanyCode = doc.CompanyCode AND wht.AccountingDocument = doc.AccountingDocument AND wht.FiscalYear = doc.FiscalYear AND wht.AccountingDocumentItem = doc.AccountingDocumentItem AND doc.WithholdingTaxCode <> '' -- association [0..1]
LEFT OUTER JOIN I_JournalEntryItemOneTimeData AS _Onetime ON wht.CompanyCode = _Onetime.CompanyCode AND wht.AccountingDocument = _Onetime.AccountingDocument AND wht.FiscalYear = _Onetime.FiscalYear AND wht.AccountingDocumentItem = _Onetime.AccountingDocumentItem -- association [0..1]
LEFT OUTER JOIN I_Branch AS _Branch ON CompanyCode = _Branch.CompanyCode AND businessplace = _Branch.Branch -- association [0..1]
LEFT OUTER JOIN P_Withholdingtxtype AS _TaxType ON _TaxType.land1 = wht.Country AND _TaxType.witht = wht.WithholdingTaxType -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON ReportingCurrency = _ReportingCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument -- association [0..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