Skip to Content
avatar image
-1
Former Member

Execute BSP Application from ABAP and get the results

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.

Can someone help me know how to achieve this?

Regards,

Purayil.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 24, 2017 at 06:53 AM

    The JavaScript is executed in the client browser, fetching the BSP from ABAP will bypass the browser and the JavaScript will not be executed.

    Suggest writing the JavaScript logic in ABAP, or introduce additional components in your architecture eg. http://phantomjs.org/

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Jun 26, 2017 at 11:33 AM

    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..

    Add comment
    10|10000 characters needed characters exceeded