0% found this document useful (0 votes)
1K views6 pages

Timed Trigger in Webdynpro ABAP and Its Uses

Timed trigger usage in Abap Webdynpro, in order to make the web page refresh in particular intervals for the business need.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views6 pages

Timed Trigger in Webdynpro ABAP and Its Uses

Timed trigger usage in Abap Webdynpro, in order to make the web page refresh in particular intervals for the business need.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Timed Trigger in Webdynpro Abap. Create a Webdynpro Component and create a view.

Go to context of the view and create a node as shown.

Counter_tt type i.

Bind both the UI Elements Text view and Timed trigger to an attribute Counter_tt.

Set delay as 5 for the timed trigger under its properties. Create an on action for timed trigger.

method ONACTIONTRIGGER . DATA lo_nd_counter TYPE REF TO if_wd_context_node. DATA ls_counter TYPE wd_this->Element_counter. data lv_step type i. * navigate from <CONTEXT> to <COUNTER> via lead selection lo_nd_counter = wd_context->get_child_node( 'COUNTER' ). CALL FUNCTION 'GENERAL_GET_RANDOM_INT' EXPORTING RANGE = 1000 IMPORTING RANDOM = LV_STEP . LS_COUNTER-COUNTER_TT = LV_STEP. LO_ND_COUNTER->SET_STATIC_ATTRIBUTES( LS_COUNTER ). endmethod. Map the view to window and create an application to the component and test.

For every 5 seconds it automatically refreshes the screen. So one can use this idea where its required to automatically refresh the webpage of the webdynpro application to fetch the updated records of the database instead manually refreshing the page every now and then.

For example your view is designed to fetch some records from database table which is continuously updated in r3, unless and until you refresh the webpage it does not show the fresh entries. Hence timed trigger will do it for you.

You might also like