cancel
Showing results for 
Search instead for 
Did you mean: 

call an External Application from Web UI overview

Former Member
0 Kudos

Hi Gurus,

I am stuck with a situation here,

Scenario is i have to create a button in overview page, such that when we click on it we need to call a external application.

external application can be anything (URL).

can anybody give a solution.

thanx in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi,

You can use an iframe in a BSP page to load the external URL.

Regards,

Leon

kavindra_joshi
Active Contributor
0 Kudos

The process for launching the external URLs should be same as Web Dynpro Transactions. But in this case while defining the URLs in the transaction launcher , you have to select the option for Non BSP URLs & defiine a MAPPED Logsys( In your case the could be any system in which the application exists). Also the URL for Web Dynpro applicatons is sap/bc/webdynpro/sap/Web_Dynpro_Component_Name and is recognized by the target system. In your case you have to build a URL which should be recognized by your target system.

This is how I have launched a ABAP webdynpro transaction. I guess if the URL is correct you can launch other external transactions.

Regards

Kavindra

Former Member
0 Kudos

Hi Kavindra,

Even i thought of doing it through Launch transactions, But the requirement is that we have to create a button.

and through that button we have to call the external appln.

thanx though.

Former Member
0 Kudos

I have tried this with a javascript that I place in the.htm file of a view. When I click the button I set a variable in the controller. In the .htm file I check if the variable has been set and output the javascript. The javascript basically does a window.open to the url of the external app. This technique is employed by the web ui for the print preview function.

Former Member
0 Kudos

Hi,

In the code where you defined the button use below sample code

ls_button-on_client_click = 'javascript:window.open ("http://www.google.com","Google","width=750,height=600,resizable=yes");Google.focus()'. 

Rgds,

Shobhit