| | |
| | | } |
| | | |
| | | // 设置输入参数 |
| | | JCoParameterList input = function.getImportParameterList(); |
| | | JCoTable inputTable = function.getTableParameterList().getTable("ZTAB_WERKS"); |
| | | inputTable.appendRow(); |
| | | inputTable.setValue("ZTAB_WERKS", "2301"); //参数名需与 SAP 函数定义一致 |
| | | inputTable.setValue("WERKS", "2301"); //参数名需与 SAP 函数定义一致 |
| | | |
| | | // 执行调用 |
| | | function.execute(destination); |
| | |
| | | outputTable.setRow(i); |
| | | log.info("Row {} : {}", i, outputTable.getString("AUFNR")); |
| | | } |
| | | // String materialName = output.getString("MATERIAL_NAME"); // 参数名需与 SAP 函数定义一致 |
| | | |
| | | return String.valueOf(numRows); |
| | | } catch (JCoException e) { |