Web Dynpro ABAP ALV - ON - CLICK Event: Procedure
Web Dynpro ABAP ALV - ON - CLICK Event: Procedure
The following example program is a step by step guide to use ON_CLICK event to user
actions for the Button UI element.
Procedure.
Define one event handler method ON_CLICK in view controller for ON_CLICK
event of SALV_WD_TABLE interface controller.
Create One Web Dynpro application for ALV output. Click here to check on
how to create.
o
specified.
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
"configure_alv
METHOD wddoinit .
wd_this->get_data( ).
wd_this->configure_alv( ).
ENDMETHOD.
Activate web dynpro component and run application. The output would be like
below.
Go to view ALV_EVENTS_V
o
Context tab->Create node PA0006 with cardinality 0..n and another node
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
METHOD wddomodifyview .
DATA lo_nd_event_properties TYPE REF TO if_wd_context_node.
DATA: lt_event_properties TYPE wd_this->elements_event_properties,
ls_event_properties LIKE LINE OF lt_event_properties.
" Navigate from to via lead selection
lo_nd_event_properties = wd_context->get_child_node( name = wd_this>wdctx_event_properties ).
lo_nd_event_properties->get_static_attributes_table( IMPORTING table =
lt_event_properties ).
o
o
o
o
o
o
o
o
o
o
o
o
o
o