Search in sources :

Example 6 with JCoParameterList

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;
}
Also used : JCoParameterList(com.sap.conn.jco.JCoParameterList)

Aggregations

JCoParameterList (com.sap.conn.jco.JCoParameterList)6 JCoStructure (com.sap.conn.jco.JCoStructure)1 ParameterValue (nl.nn.adapterframework.parameters.ParameterValue)1