Suppose we have a table UI element and in the table UI element if we have a Link to action. In many cases we need to get the value of the attribute which raised this event. This is the most usual case. In Webdynpro the value of the context element that raised the event is stored in event WD_EVENT.
we can retrieve the value by accessing the GET_CONTEXT_ELEMENT method if the WD_EVENT. Here is the code snippet for getting the context element of the raised event.
DATA: l_elem type ret to IF_WD_CONTEXT_ELEMENT.
l_elem = WDEVENT->GET_CONTEXT_ELEMENT( ‘CONTEXT_ELEMENT’ ).
Hope this will be useful.