Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

RFC Lookups codepage

Hi guys,

I am using RFC API to perform some lookups from within my mapping program.

In order to create the request in XML, I am using DOM xml parser.

My code works fine when input data is in English, but when it is in another language, e.g. Greek, input data is respresented wrongly in XML document.

The ppiece of code where I create the XML request is the following:

Document docReq = null;

// Building up RFC Request Document

docReq = builder.newDocument();

RFCInterfaceLine il = null;

Element documentElement = docReq.createElement("ns0:" + remoteFunctionName);

documentElement.setAttributeNS("", "xmlns:ns0", "urn:sap-com:document:sap:rfc:functions");

Node root = docReq.appendChild(documentElement);

rfcInterfaceParametersLines = rfcInterfaceParameters.getLines();

for (int i = 0; i < functionParameters.size(); i++)


il = (RFCInterfaceLine) rfcInterfaceParametersLines.get(i);

if (il.getParameterType().equalsIgnoreCase("I"))


root.appendChild(docReq.createElement(il.getParameterName())).appendChild(docReq.createTextNode((String) functionParameters.get(i)));



RFCInterfaceLine is a class used to represent the parameters (inputs, outputs and exceptions) used by the Remote Function Module in ABAP. "I" stands for Import. So when I have an import parameter, I create an element in XML.

However, in the final XML document I cannot see as a header the encoding = "UTF" attribute. Is this the one that is missing to enable other languages as well??


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question