Skip to content

Instantly share code, notes, and snippets.

@uriHeart
Created May 21, 2012 06:52
Show Gist options
  • Save uriHeart/2760880 to your computer and use it in GitHub Desktop.
Save uriHeart/2760880 to your computer and use it in GitHub Desktop.
@Override
public List<Map<String, String>> getFacilityIntraMovementParticularsList(Message message) throws BarcodeException{
Map<String, String> param = message != null ? message.getBody().getParam() : null;
Map<String, String> subParam = message != null ? message.getBody().getSubParam() : null;
List<Map<String, String>> tmpParamList = new ArrayList<Map<String, String>>();
Map<String, String> maps = new LinkedHashMap<String, String>();
//import parameter
JCoFunction function = super.getSAPConnector().getFunction("ZMMO_PJT_STATUS");
super.setParamToJCoParameter(param, function.getImportParameterList());
//table parameter
JCoTable table = function.getTableParameterList().getTable("I_SBUDAT");
maps.put("BUDAT_LOW", subParam.get("BUDAT_LOW"));
maps.put("BUDAT_HIGH", subParam.get("BUDAT_HIGH"));
tmpParamList.add(maps);
super.setParamListToJCoTable(tmpParamList, table);
maps.clear();
tmpParamList.clear();
//table parameter
JCoTable table2 = function.getTableParameterList().getTable("IT_RMBLNR");
maps.put("RMBLNR", subParam.get("RMBLNR"));
tmpParamList.add(maps);
super.setParamListToJCoTable(tmpParamList, table2);
//return
super.getSAPConnector().execute(function);
super.throwingResultCode(function.getExportParameterList());
JCoTable resultTable = function.getTableParameterList().getTable("OT_HTAB");
return super.getJCoTableToList(resultTable);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment