P_CL_STRPWHLDGTAXITEMLOG
Private Log View - WTax Chile
P_CL_STRPWHLDGTAXITEMLOG is a Composite CDS View that provides data about "Private Log View - WTax Chile" in SAP S/4HANA. It reads from 1 data source (P_StRpWhldgTaxItemLog) and exposes 29 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, WithholdingTaxType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_StRpWhldgTaxItemLog | wht | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| EndUserText.label | Private Log View - WTax Chile | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_StRpWhldgTaxItemLog | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_StRpWhldgTaxItemLog | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_StRpWhldgTaxItemLog | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | P_StRpWhldgTaxItemLog | AccountingDocumentItem | Posting View Item |
| KEY | WithholdingTaxType | P_StRpWhldgTaxItemLog | WithholdingTaxType | WTax Type |
| WithholdingTaxCode | P_StRpWhldgTaxItemLog | WithholdingTaxCode | WTax Code | |
| OfficialWhldgTaxCode | P_StRpWhldgTaxItemLog | OfficialWhldgTaxCode | ||
| Country | P_StRpWhldgTaxItemLog | Country | Venue: Ctry/Reg | |
| Creditor | P_StRpWhldgTaxItemLog | Creditor | Supplier | |
| BusinessPartner | P_StRpWhldgTaxItemLog | BusinessPartner | Issuing Authority | |
| WithholdingTaxReportingDate | P_StRpWhldgTaxItemLog | WithholdingTaxReportingDate | Withholding Tax Reporting Date | |
| PostingDate | P_StRpWhldgTaxItemLog | PostingDate | Posting Date for GR | |
| DocumentDate | P_StRpWhldgTaxItemLog | DocumentDate | Journal Entry Date | |
| ClearingDate | P_StRpWhldgTaxItemLog | ClearingDate | Clearing Date | |
| ClearingJournalEntry | P_StRpWhldgTaxItemLog | ClearingJournalEntry | Clrng doc. | |
| ClearingJournalEntryFiscalYear | P_StRpWhldgTaxItemLog | ClearingJournalEntryFiscalYear | Fiscal Year of Clearing Journal Entry | |
| InvoiceReference | P_StRpWhldgTaxItemLog | InvoiceReference | Invoice Reference | |
| InvoiceReferenceFiscalYear | P_StRpWhldgTaxItemLog | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| IsReversed | P_StRpWhldgTaxItemLog | IsReversed | Reversed? | |
| IsReversal | P_StRpWhldgTaxItemLog | IsReversal | Reversal doc. | |
| ReportingCurrency | P_StRpWhldgTaxItemLog | ReportingCurrency | Currency | |
| FinancialAccountType | P_StRpWhldgTaxItemLog | FinancialAccountType | Fin. Account Type | |
| WhldgTaxBaseAmtInCoCodeCrcy | P_StRpWhldgTaxItemLog | WhldgTaxBaseAmtInCoCodeCrcy | ||
| WhldgTaxAmtInCoCodeCrcy | P_StRpWhldgTaxItemLog | WhldgTaxAmtInCoCodeCrcy | ||
| WithholdingTaxIncomeType | P_StRpWhldgTaxItemLog | WithholdingTaxIncomeType | ||
| WhldgTaxDocumentType | P_StRpWhldgTaxItemLog | WhldgTaxDocumentType | 3-Byte field | |
| Name | P_StRpWhldgTaxItemLog | Name | Zone name | |
| BusinessPartnerCountry | P_StRpWhldgTaxItemLog | BusinessPartnerCountry | BP Ctry/Reg. | |
| BusinessPartnerCategory |
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_CL_STRPWHLDGTAXITEMLOG.
-- 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.
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id
CREATE VIEW P_CL_STRPWHLDGTAXITEMLOG AS
SELECT
wht.CompanyCode AS CompanyCode,
wht.AccountingDocument AS AccountingDocument,
wht.FiscalYear AS FiscalYear,
wht.AccountingDocumentItem AS AccountingDocumentItem,
wht.WithholdingTaxType AS WithholdingTaxType,
wht.WithholdingTaxCode AS WithholdingTaxCode,
wht.OfficialWhldgTaxCode AS OfficialWhldgTaxCode,
wht.Country AS Country,
wht.Creditor AS Creditor,
wht.BusinessPartner AS BusinessPartner,
wht.WithholdingTaxReportingDate AS WithholdingTaxReportingDate,
wht.PostingDate AS PostingDate,
wht.DocumentDate AS DocumentDate,
wht.ClearingDate AS ClearingDate,
wht.ClearingJournalEntry AS ClearingJournalEntry,
wht.ClearingJournalEntryFiscalYear AS ClearingJournalEntryFiscalYear,
wht.InvoiceReference AS InvoiceReference,
wht.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
wht.IsReversed AS IsReversed,
wht.IsReversal AS IsReversal,
wht.ReportingCurrency AS ReportingCurrency,
wht.FinancialAccountType AS FinancialAccountType,
wht.WhldgTaxBaseAmtInCoCodeCrcy AS WhldgTaxBaseAmtInCoCodeCrcy,
wht.WhldgTaxAmtInCoCodeCrcy AS WhldgTaxAmtInCoCodeCrcy,
wht.WithholdingTaxIncomeType AS WithholdingTaxIncomeType,
wht.WhldgTaxDocumentType AS WhldgTaxDocumentType,
wht.Name AS Name,
wht.BusinessPartnerCountry AS BusinessPartnerCountry,
wht._Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartnerCategory AS BusinessPartnerCategory
FROM P_StRpWhldgTaxItemLog AS wht
;
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