i had searched forum and got this below link
http://www.apentia-forum.de/viewtopic.php?t=1962
but here my problem is we have to pass two structures . because data i want create in sap fall under two structures .
can anybody suggest me how can we use two structures...
or is there anything needs to be done in SAP side.
here is my code snippet
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);
}