cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a WDA Application from another WDA Application

former_member186491
Contributor
0 Kudos

Hi,

I have one WDA Application YUNI_LANDING.

There, in that Application there is only one View - V_MAIN. On that View, there are Two LINK_TO_ACTION Elements -

     1.)  For Opening different WDA Application - YUNI_DISTRIBUTOR , and

     2.)  For Opening another WDA Application - YUNI_MANGER.

Here, I have coded in Methods for each LINK_TO_ACTION as follows -

1.) For YUNI_DISTRIBUTOR -

method onactionlink_d .

    data : str type string,     " For Storing Diff Application URL

       l_window1 type ref to if_wd_window_manager,

       l_cmp_api type ref to if_wd_component,

       result    type ref to if_wd_window.

  * Fetching URL of Manager's Portal

  call method cl_wd_utilities=>construct_wd_url

     exporting

         application_name = 'YUNI_DISTRIBUTOR'

     importing

         out_absolute_url = str.

  * Getting Reference of Window from Component

   l_cmp_api = wd_comp_controller->wd_get_api( ).

   l_window1 = l_cmp_api->get_window_manager( ).

  * Getting Reference of Window-of-Target-Component

   result = l_window1->create_external_window(

      url            = str

*      title          = title

*      modal          = abap_false

*      has_menubar    = abap_true

*      is_resizeable  = abap_true

*      has_scrollbars = abap_true

*      has_statusbar  = abap_true

*      has_toolbar    = abap_true

*      has_location   = abap_true

      ).

* Opening Target Window

  result->open( ).

endmethod.

2.) and for other - i.e. for YUNI_MANAGER  -

method onactionlink_m .

    data : str type string,     " For Storing Diff Application URL

       l_window1 type ref to if_wd_window_manager,

       l_cmp_api type ref to if_wd_component,

       result    type ref to if_wd_window.

  * Fetching URL of Manager's Portal

  call method cl_wd_utilities=>construct_wd_url

     exporting

         application_name = 'YUNI_MANAGER'

     importing

         out_absolute_url = str.

  * Getting Reference of Window from Component

   l_cmp_api = wd_comp_controller->wd_get_api( ).

   l_window1 = l_cmp_api->get_window_manager( ).

  * Getting Reference of Window-of-Target-Component

   result = l_window1->create_external_window(

      url            = str

*      title          = title

*      modal          = abap_false

*      has_menubar    = abap_true

*      is_resizeable  = abap_true

*      has_scrollbars = abap_true

*      has_statusbar  = abap_true

*      has_toolbar    = abap_true

*      has_location   = abap_true

      ).

* Opening Target Window

  result->open( ).

endmethod.

Now, my problem is - I am able to open YUNI_LANDING but this is not allowing to open Two embedded WDA Applications - YUNI_DSITRIBUTOR as well as YUNI_MANAGER on clicking LINK_TO_ACTION Graphics.

This gives the Error

Internet Explorer cannot display the webpage

More information

This problem can be caused by a variety of issues, including:

  • Internet connectivity has been lost.
  • The website is temporarily unavailable.
  • The Domain Name Server (DNS) is not reachable.
  • The Domain Name Server (DNS) does not have a listing for the website's domain.
  • There might be a typing error in the address.
  • If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.

Can anyone guide me as to what exactly is incorrect in my procedures.

Thanks.

- Kumar Saurav.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186491
Contributor
0 Kudos

Hi,

One more point,

When I tested that same YUNI_LANDING in Testing Server, it is working. However, I was connected through VPN.

But, when it moved on PRODUCTION, it gives above Errors.

Please guide me as to what is missing here.

Thanks.

- Kumar Saurav.

former_member186491
Contributor
0 Kudos

Corrected long back. Forgot to update & close this thread.

Thanks.

Kumar Saurav.