Skip to Content
avatar image
Former Member

How to call a custom BSP Application in a new window

I have a custom BSP application that I am calling inside SAP BSP using the following command.

if htmlb_event->server_event = 'Batchinfo'.

navigation->goto_page( '/sap/bc/bsp/sap/zbsp_batch/main.do').

endif.

But I want this new BSP zbap_batch to open a new IE window and display info. Can someone help me on how to do that.

Thanks in advance.

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 18, 2007 at 02:23 AM

    Hi Kris,

    you can't really do this from the server. You need to send a response to the browser and get it to open the new window using client-side scripting.

    In JavaScript you would do something like this.

    newwindow=window.open(this.href)
    newwindow.focus()

    Cheers

    Graham

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Kris,

      this is client-side scripting. In other words it is sent to the browser embedded in the HTML payload and it is the browser that executes it.

      It is usually client-side scripting that handles all the cool UI stuff on the browser. Like pop-up menus, buttons that change as the mouse moves over them, etc.

      Look at the demo at http://www.w3schools.com/js/tryit.asp?filename=tryjs_animation

      When you move your mouse over the soccer ball image it changes. This is implemented using the javascript that is displayed in the left-hand frame.

      There are lots of web resources on client-side scripting. You really need to get up to speed on a range of web technologies that all meld together to provide clever user interfaces. These include client-side scripting, DOM, CSS, DHTML, AJAX, and probably a few others I haven't mentioned.

      Cheers

      Graham