cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro app - google chrome as default browser

Former Member
0 Kudos

Hi,

I am trying to launch google chrome browser as default while testing my WD app thorough SE80 tran.

Previous posts suggested defining the chrome as default OS browser,

but SAP does not reffering to it and launches IE instead.

So far during debugging I noticed system checks refering to the browser, as javabeans and html.

One of the tests refer to ActiveX, and after changing the return parameter from X to initial,

Chrome (as my default browser) launched.

'C_GUI_SUPPORT' and other system functions are involved during the process,but I didnt find a way

to change user parameters or other settings so activeX eill be disabled,

or bypassing the IE and launching chrome.

Someone can assist please?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I found a way of configuration.

SAP are using shared buffer with GUI settings internal table.

Go to class cl_gui_frontend_services, look for method check_gui_support.

There you will find the feature_tab, that control the gui behavior.

2 important features controling the html display are under the saphtml component

of that table - endsessionfeature and detachurlinbrowser.

Changing those values from 'X' to initial bypass the IE hidden plugin of SE80,

and launching your OS default browser. After making this, you should export the adjusted table

to shared buffer with your own sessionID.

This change is per SAP session, meaning each time programmer connecting,

the change reset and should be repeated. By making it as BI or BG job,

the browser configuration won't be so annoying.

Hope it will help others. Thanks for the great will to help a fellow programmer

abhishek_nms
Participant
0 Kudos

Hi Ami,

It works for me too after modifying the table, I could definitely hack the code as Frank Buchholz suggested but interested more on this, Ami could you please be more elloborate on the following "you should export the adjusted table to shared buffer with your own sessionID".

and How to save these manual steps as a BG job ?

Screenshots are greatly appreciated.

Thanks

Answers (3)

Answers (3)

Frank_Buchholz
Advisor
Advisor

Yes, it works fine:

Modify method CHECK_GUI_SUPPORT of class CL_GUI_FRONTEND:

[...]
*--convert inputs to lower case for conformity with xml stream-------
  strcomp = COMPONENT.
  strfeaturename = FEATURE_NAME.
  TRANSLATE strcomp TO LOWER CASE.
  TRANSLATE strfeaturename TO LOWER CASE.
*{  INSERT  1
* Hack to open standard browser (e.g. Chrome)
* when starting WebDynpro ABAP via Easy Access Menu
* 
https://answers.sap.com/questions/12344953/web-dynpro-app-google-chrome-as-default-browser.html
  if strcomp = 'saphtml' and (
  "strfeaturename = 'endsessionfeature' or  "not neccessary
  strfeaturename = 'detachurlinbrowser' ).
  clear result.
  return.
  endif.
*}  INSERT
[...]
kamilmirza
Explorer
0 Kudos

thank you for this

minor correction, class is CL_GUI_FRONTEND_SERVICES

this can be added without Access Key by Implementing as Implicit Enhancement at the end of the method

working fine for me 😄

former_member198833
Active Participant
0 Kudos

Hi Ami,

This is not an Web Dynpro configuration, this is a behavior of how SAPGUI deals with any web application.

However I could not find any way of configuring it, I will update this trend if I find any solution.


I am afraid this cannot be changed.

Regards,

Felipe

former_member190321
Participant
0 Kudos

Hi Ami,

Form my knowledge, Web Dynpro applications always run on your defaults browser of your machine.

Meaning that if you make chrome your default browser it should open the applications in chrome.

Former Member
0 Kudos

Hi Tebogo,

You are right about WDrunning on default browser as enduser.

As a developer while trying to test the WD app in SE80,

the IE is the default for SAP, ignoring my OS default browser.

former_member190321
Participant
0 Kudos

Hi Ami,

I suggest that you search the portal, you might find a solution to this problem. as for me I run my applications in IE even though I think chrome is way better the IE

Former Member
0 Kudos

Hi Tebago,

Which portal do you mean exactly?

former_member190321
Participant
0 Kudos

Hi Ami,

I mean the same portal in which are in. SAP Community network