Skip to Content
avatar image
Former Member

Open URL on button click in new Browser

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 14, 2016 at 06:46 PM

    Hi Deepa,

    It is better to use Launch pads.

    Hope the below links will be useful :


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

    Regards,

    Dhivya.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Mar 14, 2016 at 04:56 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded