SAP Knowledge Base Article - Public

3793864 - No data available when previewing CDS View I_WithholdingTaxCode for Withholding Tax Code/Name (country) in S/4HANA Cloud Public Edition

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

  1. Open the app Customer Data Browser – Data Details.
  2. Enter CDS view: I_WITHHOLDINGTAXCODE as the data source.
  3. Select the data source and preview the data.
  4. Observe that no data is returned for WithholdingTaxCode, WhldgTaxCodeName, and WithholdingTaxCode.Country when filtering for Country(required country).
  5. 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

  1. 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.
  2. Use the CDS view I_Extendedwhldgtaxcode to obtain extended withholding tax codes and their descriptions.
  3. Open View Browser or Custom CDS Views and preview I_Extendedwhldgtaxcode; apply Country (required country) as a filter.
  4. 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