C_ES_StRpWhldgTaxItemQuery
Withholding Tax Item For Statutory Reporting Spain
C_ES_StRpWhldgTaxItemQuery is a Consumption CDS View that provides data about "Withholding Tax Item For Statutory Reporting Spain" in SAP S/4HANA. It reads from 1 data source (I_ES_StRpWhldgTaxItem) and exposes 50 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ES_StRpWhldgTaxItem | I_ES_StRpWhldgTaxItem | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Analytics.query | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| EndUserText.label | Withholding Tax Item For Statutory Reporting Spain | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | WithholdingTaxType | WithholdingTaxType | WTax Type | |
| KEY | WithholdingTaxCode | WithholdingTaxCode | WTax Code | |
| KEY | StatryRptgEntity | StatryRptgEntity | Reporting Entity | |
| KEY | StatryRptCategory | StatryRptCategory | Report ID | |
| KEY | StatryRptRunID | StatryRptRunID | Report Run ID | |
| KEY | ES_WhldgReportType | ES_WhldgReportType | ||
| KEY | WhldgTaxReferenceText | WhldgTaxReferenceText | ||
| SupplierRecipientType | SupplierRecipientType | |||
| Country | Country | Venue: Ctry/Reg | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| ItemIsReportingRelevant | ItemIsReportingRelevant | Item Reporting Relv | ||
| WhldgTaxDocumentType | WhldgTaxDocumentType | 3-Byte field | ||
| OpenInvoiceSelection | OpenInvoiceSelection | |||
| Debtor | Debtor | Debtor | ||
| Creditor | Creditor | Supplier | ||
| BusinessPartnerNumber | BusinessPartnerNumber | |||
| PostingDate | PostingDate | Posting Date | ||
| DocumentDate | DocumentDate | Document Date | ||
| ReportingDate | ReportingDate | |||
| IsReversed | IsReversed | Reversed? | ||
| IsReversal | IsReversal | Reversal doc. | ||
| ReportingCurrency | ReportingCurrency | Currency | ||
| WhldgTaxExmptAmtInCoCodeCrcy | WhldgTaxExmptAmtInCoCodeCrcy | |||
| WhldgTaxExmptAmtInTransacCrcy | WhldgTaxExmptAmtInTransacCrcy | |||
| WhldgTaxAmtInCoCodeCrcy | WhldgTaxAmtInCoCodeCrcy | |||
| WhldgTaxBaseAmtInCoCodeCrcy | WhldgTaxBaseAmtInCoCodeCrcy | |||
| WithholdingTaxPercent | WithholdingTaxPercent | |||
| WithholdingTaxIncomeType | WithholdingTaxIncomeType | |||
| EsIncTypeClassfctn | EsIncTypeClassfctn | |||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| IsNaturalPerson | IsNaturalPerson | Natural person | ||
| SupplierFullName | SupplierFullName | Supplier Full Name | ||
| SupplierName | SupplierName | Supplier Name | ||
| SupplierAddress | SupplierAddress | 3rd Party Suplr Addr | ||
| AddressText | AddressText | Notes | ||
| FiscalAddress | FiscalAddress | Fiscal address | ||
| CustomerSupplierCityName | CustomerSupplierCityName | |||
| CustomerSupplierPostalCode | CustomerSupplierPostalCode | |||
| RegionName | RegionName | Description | ||
| Region | Region | Venue Region | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| VATRegistration | VATRegistration | Company Code VAT Registration Number | ||
| CompanyCodeName | CompanyCodeName | Company Code Name | ||
| ClearingAccountingDocument | ClearingAccountingDocument | Clearing Journal Entry | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind |
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 C_ES_StRpWhldgTaxItemQuery.
-- 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 C_ES_StRpWhldgTaxItemQuery AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
WithholdingTaxType,
WithholdingTaxCode,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
ES_WhldgReportType,
WhldgTaxReferenceText,
SupplierRecipientType,
Country,
FinancialAccountType,
ItemIsReportingRelevant,
WhldgTaxDocumentType,
OpenInvoiceSelection,
Debtor,
Creditor,
BusinessPartnerNumber,
PostingDate,
DocumentDate,
ReportingDate,
IsReversed,
IsReversal,
ReportingCurrency,
WhldgTaxExmptAmtInCoCodeCrcy,
WhldgTaxExmptAmtInTransacCrcy,
WhldgTaxAmtInCoCodeCrcy,
WhldgTaxBaseAmtInCoCodeCrcy,
WithholdingTaxPercent,
WithholdingTaxIncomeType,
EsIncTypeClassfctn,
TaxNumber1,
IsNaturalPerson,
SupplierFullName,
SupplierName,
SupplierAddress,
AddressText,
FiscalAddress,
CustomerSupplierCityName,
CustomerSupplierPostalCode,
RegionName,
Region,
BusinessPartnerCountry,
VATRegistration,
CompanyCodeName,
ClearingAccountingDocument,
ClearingDate,
SpecialGLCode
FROM I_ES_StRpWhldgTaxItem
;
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