Posted by: serial June 16, 2009
~ * चौतारी १४६ *~
Login in to Rate this Post:     0       ?        

public Collection getCall(String id) {


try {




Map inParameters = new HashMap();


inParameters.put("AN82", "34337546");


inParameters.put("STATUS", "00000");




Map map = execute(inParameters);



if (!OK.equals(map.get("STATUS"))) {



throw new BapiDataAccessException("Error calling ", map.get("STATUS").toString(), this.getSql());


}




if (map.get("holdPatients") != null) {


return (Collection)map.get("holdPatients");


} else {


return null;


}


} catch(DataAccessException ex) {


System.out.println(ex.getMessage());



return null;


}


}

Read Full Discussion Thread for this article