cancel
Showing results for 
Search instead for 
Did you mean: 

WDPortalNavigation - Send Hebrew parameters to Transaction iview

former_member182374
Active Contributor
0 Kudos

Hi all,

I'm trying to send Hebrew parameters to transaction iview.

The Hebrew parameters are opened in the SAP GUI as question marks.

Portal version is: 7.17

SAP GUI version: 7.10 patch 10 (SAP GUI for Windows)

R3: ECC 6

I tried to encode the parameters as "UTF-8" and "Windows-1255" without success...

How do I send Hebrew parameters to transaction iview?

WDPortalNavigation.navigateAbsolute(target, WDPortalNavigationMode.SHOW_INPLACE, WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS, params);

where params is:

String params = "P_DOCPATH" + someHebrewString

I tried to encode 'someHebrewString' as "UTF-8" and "Windows-1255"

Thanks,

Omri

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182374
Active Contributor
0 Kudos

Solved by SAP support.

There is an iview parameter called "Character Encoding" in the iview, setting it to 'ISO-8859-8' allows sending Hebrew parameters values to the transaction (SAP GUI must support this encoding).

Omri

Former Member
0 Kudos

Hi Omri,

I am thinking about a java-approach to this problem, I've had some issues when sending data to SQL database, while unknown characters were question marks.

I don't know how exactly, but you can apply a filter on all data transferred from your code, it should be done in the XML configuration file, plus a code for encoding.

The XML part would look contain:


<filter>
  <filter-name>EncodingFilter</filter-name>
    <filter-class>[java class with full package declaration]</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
    </init-param>
</filter>

<filter-mapping>
  <filter-name>EncodingFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

The java class must extend a filter class. Mine looked like this:


public class EncodingFilter implements Filter {

  private String encoding = "utf-8";

  public void doFilter(ServletRequest request,
      ServletResponse response, FilterChain filterChain)
      throws IOException, ServletException {

    request.setCharacterEncoding(encoding);
    filterChain.doFilter(request, response);
  }

  public void init(FilterConfig filterConfig)
	           throws ServletException {
    String encodingParam = filterConfig
              .getInitParameter("encoding");
    if (encodingParam != null) {
      encoding = encodingParam;
    }
  }

The code is pure java, I don't know if you will be able to embed it due to SAP framework issues.

Just an idea...

Regards, Ivan.