on 11-27-2012 12:10 PM
HI,
One pop-up window is there with selection-option and a button "SUBMIT" is available,When I click the "SUBMIT" button this should call the main window view where my report is available.Could anyone please reply me as soon as possible
Thanks
Suman
Are you using a FPM GAF? Or just the WDA road map object?
In any case, since you have steps in the road map, why do you display a pop-up in the first place? You should utilize the "Next" and "Previous" buttons. It seems that you need to revise your design.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using simple road map. A main window with three views.On the second view of main window a button "ALV report" is there . When I click that button a pop-up window with select-option will pop-up .By entering the correct datas into the select-option and when I click the "SUBMIT" button in that pop-up window, item datas will display in ALV format in the 3rd view of main window . hope you get it now. Please tell me in detail
Thanks
Hi Suman,
As per the given scenario, in an WDA application, once you click the SUBMIT button and call the close() method on the pop-up window reference inside the action method of that button, the control returns to the WDDOAFTERACTION hook mehod of the view dispalyed in the background which in your case is the second view i.e. "purchase order overview" of the MAIN window.
Hence after the popup window is closed, the control must return to the WDDOAFTERACTION method of the view "purchase order overview" of the MAIN window where you can simply fire an outbound plug to the 3rd view in the main window. Hence as soon as the user clicks on the submit button the application will navigate to the 3rd view after the popup window is closed.
Hope this answers your query.
Regards,
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are already on the main view and got the pop-up then Saul's solution above should work for you (basically, you are just trying to close the current pop-up screen). You can either save the window reference in the view attributes or in the component controller attributes.
If you need to actually navigate to the main view (meaning that the main view is not already displayed behind the pop-up window), then you can use out/in-bound plugs. Clicking the submit button triggers the an out-bound plug. Then, you link the out-bound plug with an in-bound plug on the main view (there is one by default called DEFAULT).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Abdullah Azzouni,
In my case main window with 3 views(purchase,purchase order overview and report view) .The popup window is raised from the second view that means from the "purchase order overview " view of main window.There is a button"submit" in the popup window, When I click the submit button of popup window that should navigate/call the 3rd view of main window. okay(the main window is present behind the popup window)
Thanks
Suman
Suman,
You can close it by calling the CLOSE method of the class IF_WD_WINDOW.
For a sample code, you can take a look at this thread: http://scn.sap.com/thread/2003510.
Regards,
Raulie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suman,
When you create the popup Window, you should save the reference of the window in a atribute( eg: gr_window )of your component controller. Then, when you press button "SUBMIT" call the method Close of atribute gr_window.
When open your popup:
lo_api_component = wd_this->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
wd_this->gr_window = lo_window_manager->create_window(
window_name = 'W_DET'
title = lv_text_otr
message_display_mode = if_wd_window=>co_msg_display_mode_selected
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok ).
wd_this->gr_window->set_window_size(
width = '500'
height = '360' ).
wd_this->gr_window->open( ).
method ONACTIONsubmit.
wd_comp_controller->gr_window->close( ).
endmethod.
Regards,
Hi,
You may use 'Leave to screen 0'. This will take control to previous screen
or if u want to call selection screen write 'Call screen 1000'.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.