小编pr1*_*1ex的帖子

JCo RFC_READ_TABLE 数据缓冲区超出

我正在尝试通过函数 RFC_READ_TABLE 从表 VBRK 获取数据,但总是收到数据缓冲区超出异常。

final JCoConnection managedConnection2 = sapCoreJCoManagedConnectionFactory.getManagedConnection("JCoStateless",
        getClass().getName(), rfcDestination);

final JCoFunction function2 = managedConnection2.getFunction("RFC_READ_TABLE");

final JCoParameterList importParameterList2 = function2.getImportParameterList();

importParameterList2.setValue("QUERY_TABLE", "VBRK");
final JCoParameterList tableParameterList2 = function2.getTableParameterList();

final JCoTable optionsTable = tableParameterList2.getTable("OPTIONS");
String selectionFilter = "VBELN EQ '" + "0123456789" + "'";
optionsTable.appendRow();
optionsTable.setValue("TEXT", selectionFilter);

//execute function RFC_READ_TABLE
managedConnection2.execute(function2);
Run Code Online (Sandbox Code Playgroud)

有人能指出我的错误吗?

java abap connector jco

3
推荐指数
1
解决办法
1206
查看次数

标签 统计

abap ×1

connector ×1

java ×1

jco ×1