我搜索了论坛并得到了下面的链接
http://www.apentia-forum.de/viewtopic.php?t=1962
但这里我的问题是我们必须通过两个结构。因为我想在 sap 中创建的数据属于两种结构。
任何人都可以建议我如何使用两种结构......或者在 SAP 方面有什么需要做的。这是我的代码片段
public void createEquipment() throws JCoException{
JCoFunction function = destinations.getRepository().getFunction("ZBAPI_EQUI_CREATE");
if (function == null) {
throw new RuntimeException(" ZBAPI_EQUI_CREATE does not exist");
}
else{
System.out.println("BAPI CODE -- ZBAPI_EQUI_CREATE -- EXISTS");
}
//JCoTable eqptable=function.getTableParameterList().getTable("EUIP_EXTER_NUMBER");
JCoParameterList importparams =function.getImportParameterList();
JCoStructure eqptable1= importparams.getStructure("EUIP_EXTER_NUMBER");
//JCoStructure eqptable2= importparams.getStructure("DATA_GENERAL");
eqptable1.setValue("EQUIPMENT", 5600784);
//eqptable2.setValue("EQIPDESCR", "Testing Interface Eqp");
function.execute(destinations);
}