cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a custom BSP Application in a new window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

GrahamRobbo
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Graham,

I am new to this BSP programming. I am an ABAPer. So would you give me more info on where is this JavaScript.

GrahamRobbo
Active Contributor
0 Kudos

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