I_AU_StRpWithholdingTaxItem
Withholding Tax Data for BAS Report
I_AU_StRpWithholdingTaxItem is a Composite CDS View (Cube) that provides data about "Withholding Tax Data for BAS Report" in SAP S/4HANA. Part of development package GLO_FIN_IS_WHT_AU.
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Withholding Tax Data for BAS Report | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | wht_items | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | wht_items | AccountingDocument | Journal Entry |
| KEY | FiscalYear | wht_items | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | wht_items | AccountingDocumentItem | Posting View Item |
| KEY | WithholdingTaxType | wht_items | WithholdingTaxType | WTax Type |
| KEY | StatryRptgEntity | I_StRpJournalEntryLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_StRpJournalEntryLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_StRpJournalEntryLog | StatryRptRunID | Report Run ID |
| ReportingCurrency | wht_items | ReportingCurrency | Currency | |
| TransactionCurrency | wht_items | TransactionCurrency | Transaction Currency | |
| AdditionalCurrency1 | wht_items | AdditionalCurrency1 | Local curr. 2 | |
| AdditionalCurrency2 | wht_items | AdditionalCurrency2 | Local curr. 3 | |
| curr232endasAU_WhldgTaxWithoutABNAmount | ||||
| curr232endasAU_WhldgTaxWithABNAmount | ||||
| VATRegistration | wht_items | VATRegistration | VAT Registration No. | |
| Supplier | wht_items | Supplier | Supplier | |
| PostingDate | wht_items | PostingDate | Posting Date for GR | |
| DocumentDate | wht_items | DocumentDate | Journal Entry Date | |
| WhldgTaxDocumentType | wht_items | WhldgTaxDocumentType | 3-Byte field | |
| ItemIsReportingRelevant | wht_items | ItemIsReportingRelevant | Item Reporting Relv | |
| IsReversed | wht_items | IsReversed | Reversed? | |
| IsReversal | wht_items | IsReversal | Reversal doc. | |
| AmountInCompanyCodeCurrency | wht_items | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| WhldgTaxBaseAmtInCoCodeCrcy | wht_items | WhldgTaxBaseAmtInCoCodeCrcy | ||
| WhldgTaxBaseAmtInTransacCrcy | wht_items | WhldgTaxBaseAmtInTransacCrcy | ||
| WhldgTaxBaseAmtInAddlCrcy2 | wht_items | WhldgTaxBaseAmtInAddlCrcy2 | ||
| WhldgTaxBaseAmtInAddlCrcy3 | wht_items | WhldgTaxBaseAmtInAddlCrcy3 | ||
| WhldgTaxAmtInCoCodeCrcy | wht_items | WhldgTaxAmtInCoCodeCrcy | ||
| WhldgTaxAmtInTransacCrcy | wht_items | WhldgTaxAmtInTransacCrcy | ||
| WhldgTaxAmtInAddlCrcy2 | wht_items | WhldgTaxAmtInAddlCrcy2 | ||
| WhldgTaxAmtInAddlCrcy3 | wht_items | WhldgTaxAmtInAddlCrcy3 |
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 I_AU_StRpWithholdingTaxItem.
-- 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 I_AU_StRpWithholdingTaxItem AS
SELECT
wht_items.CompanyCode AS CompanyCode,
wht_items.AccountingDocument AS AccountingDocument,
wht_items.FiscalYear AS FiscalYear,
wht_items.AccountingDocumentItem AS AccountingDocumentItem,
wht_items.WithholdingTaxType AS WithholdingTaxType,
I_StRpJournalEntryLog.StatryRptgEntity AS StatryRptgEntity,
I_StRpJournalEntryLog.StatryRptCategory AS StatryRptCategory,
I_StRpJournalEntryLog.StatryRptRunID AS StatryRptRunID,
wht_items.ReportingCurrency AS ReportingCurrency,
wht_items.TransactionCurrency AS TransactionCurrency,
wht_items.AdditionalCurrency1 AS AdditionalCurrency1,
wht_items.AdditionalCurrency2 AS AdditionalCurrency2,
case when ( wht_items._Supplier.AU_IndividualIsUnder18 = '' and wht_items._Supplier.AU_PartnerIsSupplyWithoutGain = '' and wht_items._Supplier.AU_PayerIsPayingToCarryOnEnt = '' and wht_items._Supplier.AU_PaymentIsExceeding75 = '' and wht_items._Supplier.AU_PaymentIsIncomeExempted = '' and wht_items._Supplier.AU_PaymentIsWhollyInputTaxed = '' and wht_items._Supplier.AU_SupplierIsEntitledToABN = '' and wht_items._Supplier.AU_SupplyIsMadeAsPrivateHobby = '' and wht_items._Supplier.AU_SupplyMadeIsOfDmstcNature = '' ) and wht_items.VATRegistration = '' then cast (wht_items.WhldgTaxAmtInCoCodeCrcy as abap.curr( 23, 2 )) else cast(0 as abap.curr( 23, 2 )) end as AU_WhldgTaxWithoutABNAmount AS curr232endasAU_WhldgTaxWithoutABNAmount,
case when ( wht_items._Supplier.AU_IndividualIsUnder18 = '' and wht_items._Supplier.AU_PartnerIsSupplyWithoutGain = '' and wht_items._Supplier.AU_PayerIsPayingToCarryOnEnt = '' and wht_items._Supplier.AU_PaymentIsExceeding75 = '' and wht_items._Supplier.AU_PaymentIsIncomeExempted = '' and wht_items._Supplier.AU_PaymentIsWhollyInputTaxed = '' and wht_items._Supplier.AU_SupplierIsEntitledToABN = '' and wht_items._Supplier.AU_SupplyIsMadeAsPrivateHobby = '' and wht_items._Supplier.AU_SupplyMadeIsOfDmstcNature = '' ) and wht_items.VATRegistration = '' then cast(0 as abap.curr( 23, 2 )) else cast (wht_items.WhldgTaxAmtInCoCodeCrcy as abap.curr( 23, 2 ) ) end as AU_WhldgTaxWithABNAmount AS curr232endasAU_WhldgTaxWithABNAmount,
wht_items.VATRegistration AS VATRegistration,
wht_items.Supplier AS Supplier,
wht_items.PostingDate AS PostingDate,
wht_items.DocumentDate AS DocumentDate,
wht_items.WhldgTaxDocumentType AS WhldgTaxDocumentType,
wht_items.ItemIsReportingRelevant AS ItemIsReportingRelevant,
wht_items.IsReversed AS IsReversed,
wht_items.IsReversal AS IsReversal,
wht_items.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
wht_items.WhldgTaxBaseAmtInCoCodeCrcy AS WhldgTaxBaseAmtInCoCodeCrcy,
wht_items.WhldgTaxBaseAmtInTransacCrcy AS WhldgTaxBaseAmtInTransacCrcy,
wht_items.WhldgTaxBaseAmtInAddlCrcy2 AS WhldgTaxBaseAmtInAddlCrcy2,
wht_items.WhldgTaxBaseAmtInAddlCrcy3 AS WhldgTaxBaseAmtInAddlCrcy3,
wht_items.WhldgTaxAmtInCoCodeCrcy AS WhldgTaxAmtInCoCodeCrcy,
wht_items.WhldgTaxAmtInTransacCrcy AS WhldgTaxAmtInTransacCrcy,
wht_items.WhldgTaxAmtInAddlCrcy2 AS WhldgTaxAmtInAddlCrcy2,
wht_items.WhldgTaxAmtInAddlCrcy3 AS WhldgTaxAmtInAddlCrcy3
;
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