Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private def execute(user: User, blobId: String, parentInstance: String, f: (SapFunction) => Unit) = {
- val function = SapFunction("/SSC/HTML5_CALL_TO_SAP", user)
- function.setImportParameters(Map(
- "I_BLOBID" -> blobId,
- "I_PARENT_INSTANCE" -> parentInstance
- ))
- f(function)
- function.execute() map {
- response: SapResponse =>
- SapAnswerService.loadSapAnswer(response.exportParameters, response.tableParameters.getTable("T_MESSAGES"), response.tableParameters.getTable("T_SCREEN_MARKED_ROWS"))
- }
- }
- val f = ((sapFunc: SapFunction) => {
- sapFunc.importParameterList.setValue("I_INPUT_VALUE", value)
- })
- execute(user, blobId, parentInstance, f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement