C_StRpWhldgTaxItmForClearing
Withholding Tax Open Line Items with clearing run status
C_StRpWhldgTaxItmForClearing is a Consumption CDS View that provides data about "Withholding Tax Open Line Items with clearing run status" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, I_StRpJournalEntryLog) and exposes 25 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, FiscalYear, StatryRptgEntity.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItem | I_GLAccountLineItem | inner |
| I_StRpJournalEntryLog | jourdocitm | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_ClearingDate | budat |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRWHLDGTXCLR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Withholding Tax Open Line Items with clearing run status | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_StRpJournalEntryLog | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_StRpJournalEntryLog | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | I_GLAccountLineItem | AccountingDocumentItem | Posting View Item |
| KEY | FiscalYear | I_StRpJournalEntryLog | FiscalYear | G/L Fiscal Year |
| KEY | StatryRptgEntity | I_StRpJournalEntryLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_StRpJournalEntryLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_StRpJournalEntryLog | StatryRptRunID | Report Run ID |
| GLAccount | I_GLAccountLineItem | GLAccount | General Ledger | |
| CompanyCodeCurrency | I_GLAccountLineItem | CompanyCodeCurrency | Local Currency | |
| PostingKey | ||||
| FinancialAccountType | I_GLAccountLineItem | FinancialAccountType | Fin. Account Type | |
| DebitCreditCode | I_GLAccountLineItem | DebitCreditCode | Single-Character Flag | |
| DocumentDate | I_GLAccountLineItem | DocumentDate | Journal Entry Date | |
| PostingDate | I_GLAccountLineItem | PostingDate | Posting Date for GR | |
| FiscalPeriod | I_GLAccountLineItem | FiscalPeriod | Tax period | |
| AccountingDocumentType | I_GLAccountLineItem | AccountingDocumentType | Journal Entry Type | |
| FiscalYearVariant | I_GLAccountLineItem | FiscalYearVariant | FY Variant | |
| ClearingJournalEntry | I_GLAccountLineItem | ClearingJournalEntry | Clrng doc. | |
| AccountingDocumentCategory | I_GLAccountLineItem | AccountingDocumentCategory | Journal Entry Category | |
| ClearingDate | I_GLAccountLineItem | ClearingDate | Clearing Date | |
| Ledger | I_GLAccountLineItem | Ledger | Ledger | |
| IsOpenItemManaged | I_GLAccountLineItem | IsOpenItemManaged | Open Item Management | |
| IsReversed | I_GLAccountLineItem | IsReversed | Reversed? | |
| IsReversal | I_GLAccountLineItem | IsReversal | Reversal doc. | |
| TransactionTypeDetermination | I_GLAccountLineItem | TransactionTypeDetermination | Transaction Key |
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_StRpWhldgTaxItmForClearing.
-- 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.
-- SQL view name: CSRWHLDGTXCLR
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_ClearingDate : budat
CREATE VIEW C_StRpWhldgTaxItmForClearing AS
SELECT
jourdocitm.CompanyCode AS CompanyCode,
jourdocitm.AccountingDocument AS AccountingDocument,
I_GLAccountLineItem.AccountingDocumentItem AS AccountingDocumentItem,
jourdocitm.FiscalYear AS FiscalYear,
jourdocitm.StatryRptgEntity AS StatryRptgEntity,
jourdocitm.StatryRptCategory AS StatryRptCategory,
jourdocitm.StatryRptRunID AS StatryRptRunID,
I_GLAccountLineItem.GLAccount AS GLAccount,
I_GLAccountLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
I_GLAccountLineItem._PostingKey.PostingKey AS PostingKey,
I_GLAccountLineItem.FinancialAccountType AS FinancialAccountType,
I_GLAccountLineItem.DebitCreditCode AS DebitCreditCode,
I_GLAccountLineItem.DocumentDate AS DocumentDate,
I_GLAccountLineItem.PostingDate AS PostingDate,
I_GLAccountLineItem.FiscalPeriod AS FiscalPeriod,
I_GLAccountLineItem.AccountingDocumentType AS AccountingDocumentType,
I_GLAccountLineItem.FiscalYearVariant AS FiscalYearVariant,
I_GLAccountLineItem.ClearingJournalEntry AS ClearingJournalEntry,
I_GLAccountLineItem.AccountingDocumentCategory AS AccountingDocumentCategory,
I_GLAccountLineItem.ClearingDate AS ClearingDate,
I_GLAccountLineItem.Ledger AS Ledger,
I_GLAccountLineItem.IsOpenItemManaged AS IsOpenItemManaged,
I_GLAccountLineItem.IsReversed AS IsReversed,
I_GLAccountLineItem.IsReversal AS IsReversal,
I_GLAccountLineItem.TransactionTypeDetermination AS TransactionTypeDetermination
FROM I_StRpJournalEntryLog AS jourdocitm
INNER JOIN I_GLAccountLineItem ON /* join condition not captured in parsed metadata */
;
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