SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software Kodyaz SAP and ABAP Programming Tutorials
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Windows, Windows Phone, SAP and ABAP, like SAP UI5, Screen Personas, etc.




CRM Companies List
Web Based CRM Software


Launch Web URL using SAP Personas Script Button

SAP Screen Personas ABAP developer can use Script button to launch and display web URL which is not listed in whitelist by customizing in a new web browser window.

In my previous SAP Personas tutorial for flavor developers, I used launch button to display web pages from a flavor shared with other users. When launch button is used, the target URL should be added to the WhiteList. Please refer to above Personas tutorial for details on how to use launch button for displaying an other web address from a SAP Screen Personas flavor.

Script Button Calculate in Javascript

Script button Javascript code will by pass whitelist check and display successfully any web page even it is not allowed in SPRO whitelist customization screen.

SAP Screen Personas Script Button Calculate in Javascript

Here is the Javascript code, SAP Personas developers can use in the script button "Calculate in Javascript" task

window.open("http://www.kodyaz.com");

When the Personas user clicks on the button, Javascript code will execute and display the target web URL in a new web browser window.
Of course since Javascript code is being executed in this task, if Personas developer knows Javascript up to some degree he or she can easily modify the window.open command with additional parameters. For example, in Javascript programmer can assing a target window as an additional parameter like in below ...

window.open("http://www.kodyaz.com","_self");
window.open("http://www.kodyaz","_blank")

As mentioned a few times in this Personas tutorial, there are alternative methods to open a web address from a SAP Personas flavor. Script button is an alternative to Launch button. If a SAP transction window is to be opened and displayed, script button is also useful by using the SAP Personas shortlink maintenance or simulating transaction entry on the basic view flavor. But these are the topics of an other SAP Screen Personas tutorial.






SAP Tutorials

SAP Tutorial

SAP Forums

SAP Tools

SAP Transaction Codes Table






Related Articles and Tutorials(http://www.kodyaz.com/sap-abap/launch-web-url-personas-script-button.aspx)
How SAP Screen Personas Improve Business Value
Activate SAP Personas 3.0 Services using SICF Transaction
Launch Web URL using SAP Personas Script Button
Press F Key on SAP Personas Script Button for F3
Call WebRFC from SAP Personas Script Button for User Name and Data
How to Change Background in SAP Personas MainApp
SAP Personas Html Viewer Control for Table Data
Launch Transaction Code using SAP Personas Script Button
Display Whitelist URL using SAP Personas WebPage Launch Button
Hands-on SAP Personas Tutorial for Beginners
How to Create SAP Screen Personas Flavor, Remove and Delete it
How to Export and Import SAP Screen Personas Flavors
clientaccesspolicy.xml crossdomain.xml is not configured
SAP Screen Personas OnCreateHandler Script Button to Run At Page Load
PushOnEnter Event on SAP Personas like OnKeyPress in Javascript
SAP Screen Personas Set Default Selection in DropDown List
Function module is not released for the Internet


Copyright © 2004 - 2017 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems