cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform window to window Navigation in WebDynpro ABAP

Former Member
0 Kudos

Hi Gurus,

I just want perform window to window navigation in the same component.

For Example:

I have two windows namely Main1 and Main2(Popup).

Main1 is the Default window and V1 is Default View,

Now i have embedded 3 view's (V1, V2, V3) in Main1 Window.

and now i am in Main2 Window(Popup) with View4(V4).

Now i want to navigate Main2 window(Popup) to V2 view of Main1 Window.

How to do it??

I have tried a lot, but i cant find the result.

Thanks,

Pradeep.G

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Pradeep,

Refer the below link which might help you.

Navigation in WebDynpro

Thanks

KH

former_member193460
Contributor
0 Kudos

Hi Pradeep,

     I assume your requirement is to open the pop up window from another window ?

In your case, open Main2 window as a pop up when clicking a button in main 1 ..

* Create the popup window


      wd_this->lo_window = wd_this->lo_window_manager->create_window(

          window_name                 = 'MAIN2'

          button_kind                     = if_wd_window=>co_buttons_okcancel

          message_type                = if_wd_window=>co_msg_type_none

          message_display_mode =  if_wd_window=>co_msg_display_mode_none

      ).

      lv_string = wd_assist->if_wd_component_assistance~get_text( key = '015').
      CALL METHOD wd_this->lo_window->subscribe_to_button_event

        EXPORTING

          button            = if_wd_window=>co_button_ok

          button_text       = lv_string

          action_name       = 'Method name on click of OK'

          action_view       = lo_view_controller

          is_default_button = abap_true.
* Open the popup window

      wd_this->lo_window->open( ).

Regards,

Tashi

Former Member
0 Kudos

Hi Tashi,

You are right, am opening a main2 window as a popup from main1 window only,

now i want to close the Main2 window and get into V2 of Main1 window.

Thanks,

Pradeep.

former_member193460
Contributor
0 Kudos


Hi Pradeep,

     Similar thread:

you will need to write similar code what i had given earlier depending on your requirment.

Regards,

Tashi

former_member193460
Contributor
0 Kudos


Hi Pradeep,

     i think you can control the visibility of your view container.

1) The initial window will be automatically reinstated when your pop window processing is over(buttons on the popup ).

2) you need to write a logic (depending on your requirement) to make the irrelevant views invisible by binding with a wdy_boolean attribute.

Regards,

Tashi

former_member193460
Contributor
0 Kudos

Sorry missed the part for explicit close:

wd_this->lo_window->close( ).

you can use this to close the pop up window which will take you back to your initial window as it is open.

Regards,

Tashi

ramakrishnappa
Active Contributor
0 Kudos

Hi Pradeep,

You can achieve your requirement as below


  • Let us say you have OK button in popup window and subscribed to an event OK in view V1 of main1 window
  • While opening popup window, you store the reference of popup window to view attribute GO_POPUP_WINDOW
  • Create an outbound plug TO_V3 in view V1
  • Create an inbound plug FROM_V1 in view V3
  • Now, go to window MAIN1 &  create a navigation link  TO_V3 ------> FROM_V1
  • On press of OK button of popup window ( write the below logic inside event OK of view V1 )
    • Close the popup window

               wd_this->go_popup_window->close( )

    • Fire the outbound plug TO_V3 as below

               wd_this->fire_to_v3_plg( ).

Hope this helps you.

Regards,

Rama

former_member182485
Active Contributor
0 Kudos

Hi Pradeep,

First thing is You cannot create navigation links across windows.

But here I see your requirement as you want to navigate to V2 of Main1.

You can use inbound & Outbound plugs for your requirement.

to know more about inbound & outbound plugs you can see this link.

http://www.saptechnical.com/Tutorials/WebDynproABAP/views/navigation.htm.

Regards

Bikas

Former Member
0 Kudos

Hi Bikas

Yes, we can perform navigation between the view's within same window using Plugs.

That and all pretty simple to achieve.

But i want window to window to navigation, is there any option..

Thanks,

Pradeep.