私はフォーラムを検索し、以下のリンクを取得しました
http://www.apentia-forum.de/viewtopic.php?t=1962
しかし、ここで私の問題は、2 つの構造体を渡さなければならないことです。私が樹液で作成したいデータは2つの構造に分類されるためです。
2つの構造をどのように使用できるか、誰かが私に提案できますか...または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);
}