Created
May 21, 2012 06:52
-
-
Save uriHeart/2760880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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