P_StRpWhldgTaxItem

DDL: P_STRPWHLDGTAXITEM Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_Withholdingtaxitem wht from

Associations (6)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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]
;