cancel
Showing results for 
Search instead for 
Did you mean: 

Open URL on button click in new Browser

Former Member
0 Kudos

Hi All ,

I need to have Button on FORM UIBB, which should open URL in separate Browser Window . I have used CALL_BROWSER , but that works well if I call it directly through Program .

However ,if I use CALL_BROWSER on button click ,nothing happens even if I have passed NEW_WINDOW = 'X'

How to work on this

Accepted Solutions (1)

Accepted Solutions (1)

Dhivya
Active Participant
0 Kudos

Hi Deepa,

It is better to use Launch pads.

Hope the below links will be useful :


https://scn.sap.com/thread/3512753

Regards,

Dhivya.

Former Member
0 Kudos

Hi All,

Thank you for reply   .Below code helped get solution.

DATA  :

            if_fpm    TYPE REF TO if_fpm ,

            if_nav    TYPE REF TO if_fpm_navigate_to ,

            ls_url_wa TYPE fpm_s_launch_url.  

if_fpm = cl_fpm_factory=>get_instance( ).

      if_nav = if_fpm->get_navigate_to( ).

*fill the structure with url

*      ls_url_wa-header_text = 'TestPage'.

      ls_url_wa-url =  lv_url_c .

      CALL METHOD if_nav->launch_url

        EXPORTING

          is_url_fields = ls_url_wa.

Answers (1)

Answers (1)

J_R
Employee
Employee
0 Kudos

Hi Deepa,

you can use the FPM / Launchpad navigation API IF_FPM_NAVIGATE_TO in order to navigate to a URL. For this, you can get an instance o IF_FPM_NAVIGATE_TO first by calling IF_FPM->GET_NAVIGATE_TO, and then you have to call IF_FPM_NAVIGATE_TO->LAUNCH_URL, passing the appropriate parameters.