Symptom
- While creating or previewing CDS view I_WithholdingTaxCode and querying the data, no values are returned.
- Required values: WithholdingTaxCode and WhldgTaxCodeName with Country (Any country code based on the business requirement).
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the app Customer Data Browser – Data Details.
- Enter CDS view: I_WITHHOLDINGTAXCODE as the data source.
- Select the data source and preview the data.
- Observe that no data is returned for WithholdingTaxCode, WhldgTaxCodeName, and WithholdingTaxCode.Country when filtering for Country(required country).
- Note that the standard CDS I_WithholdingTaxCode is available and released in the View Browser/Data Browser.
Cause
I_WithholdingTaxCode belongs to the classic withholding tax solution, which is not available in SAP S/4HANA Cloud Public Edition; therefore, it returns no data in this environment.
Resolution
- Do not use I_WithholdingTaxCode in SAP S/4HANA Cloud Public Edition, as it is part of the classic withholding tax scope not delivered in this environment.
- Use the CDS view I_Extendedwhldgtaxcode to obtain extended withholding tax codes and their descriptions.
- Open View Browser or Custom CDS Views and preview I_Extendedwhldgtaxcode; apply Country (required country) as a filter.
- Build any custom CDS view or custom API on top of I_Extendedwhldgtaxcode to expose the required fields (for example, WithholdingTaxCode and WhldgTaxCodeName).
Keywords
I_WithholdingTaxCode, I_Extendedwhldgtaxcode, CDS, no data, withholding tax, withholding tax code, WhldgTaxCodeName, country filter, KR, extended withholding tax, view browser, data browser, custom api, public cloud, s/4hana cloud , KBA , FI-GL-GL-F-2CL , Value Added Tax (VAT) (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public