use of com.sap.conn.jco.JCoParameterList in project iaf by ibissource.
the class SapFunctionFacade method functionResult2message.
public String functionResult2message(JCoFunction function) {
JCoParameterList export = function.getExportParameterList();
int replyFieldIndex = findFieldIndex(export, getReplyFieldIndex(), getReplyFieldName());
String result = null;
if (replyFieldIndex > 0) {
if (export != null) {
result = export.getString(replyFieldIndex - 1);
}
} else {
result = "<response function=\"" + function.getName() + "\">";
JCoParameterList tables = function.getTableParameterList();
if (export != null) {
result += export.toXML();
}
if (tables != null) {
result += tables.toXML();
}
result += "</response>";
}
return result;
}
Aggregations