cancel
Showing results for 
Search instead for 
Did you mean: 

refreshing application on button action

Former Member
0 Kudos

hi experts ,

i have created an application and on action of a button i want to get it refreshed , means it should work like home. Pls guide me in this regard.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vishavdeep

Well we have few webdynpro applications with multiple views, by design, on the last step after save, we disable all other button and display a new button called 'RESTART' with only available choice. On click of this button

1. We initialize all the data of component.

2. Clear stored variable parameters & internal table used by assistance class

3. if everything was fine fire navigation to the FirstDefaultView of the webdynpro application.

Thus its almost restart of the application.

So design wise have a method INIT_COMP in the component controller of webdynpro component. and then at the last step when call to RESTART is made reinitialize all the data of your webdynpro component.

method onactionrestart.
wd_assist->reinit_my_obj_tables( ).
wd_this->fire_to_v_Start_plg(  ).
endmethod

Greetings

Prashant

abhimanyu_lagishetti7
Active Contributor
0 Kudos

You can achieve this using Exit Plug.

http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm

method ONACTIONGO_EXIT .

data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .

L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).

L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(

URL = 'http://www.sap.com' " String

).

Instead http://www.sap.com give your application URL

Abhi