Execute BSP Application from ABAP and get the results

Jun 23, 2017 at 03:36 PM|131 Views

Hello,

I have some processing to be done in Javascript using a third party library. So I thought of creating a BSP application and add the JavaScript Library to it. But I need to call the BSP application from ABAP. I have to pass some parameters to the BSP application and get back the result in ABAP.

So Basically I need to execute the BSP application from ABAP by passing some arguments and get back the result from the BSP application.

Alert Moderator

Add comment

In you question, you talk about JavaScript. In your comment Java. These are two quite distinct languages. Furthermore, if you read the answers to your other question, you'll see that you missed a step for getting the data into OTF format.

There still (7.50) exists a long depreciated class called CL_JAVA_SCRIPT in the ABAP stack....

If you don't want to run the program in batch mode you may also start the BSP-Application via CL_GUI_FRONTEND_SERVICES=>EXECUTE and passing the variables via URL-Parameters. The last step in the Javascript should be the closing of the window. The returning parameters could be written into the memory or passed via push/message channels..