Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SET HANDLER

Former Member
0 Likes
1,140

what is the purpose of SET HANDLER?

what is the purpose of cl_dd_document class?

what is the purpose of cl_gui_html_viewer class?

methods top_of_page for event top_of_page

of cl_gui__alv_grid

importing e_dyndoc_id ?

what it means...

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
796

Hi,

SET HANDLER is used to register the Event handler method of perticular event that will be raised by a perticular class.

CL_GUI_HTML_VIEWER is the class that is used to create space on your screen which can display HTML content.

Check this report for the TOP_OF_PAGE event example

BCALV_TEST_GRID_EVENTS.

Regards,

Sesh

.

Read only

uwe_schieferstein
Active Contributor
0 Likes
796

Hello Selva

Have a look at my sample report ZUS_SDN_ALVGRID_EVENTS_HOTSPOT:

If you inactive the SET HANDLER statement then you will see that the report no longer reacts on the event-based user actions (i.e. HOTSPOT_CLICK and BUTTON_CLICK on the ALV grid).

Regards

Uwe

Read only

Former Member
0 Likes
796

Hi Selva,

Events and methods are 2 components of a class. Whenever an event is raised, it might be required to carry out some functionality. That is coded in the handler method for the event. Now whenever an event is raised, the handler method will be automatically called by system if and only if the handler method is registered to the event at runtime. This is done by the SET HANDLER statement. If you do not register the event with the handler method, the method will not be implicitly called by the system when the event is raised.

Award points if found useful.

Regards

Indrajit