Hi,
You can use same event handler method for 2 different buttons. You can get the button ID using below code:
DATA lv_button type string.
lv_button = wdevent->get_string( 'ID' ).
lv_button contains the button ID of the clicked event. Using this you can differentiate which button is clicked.
Alternately, you could use a READ TABLE statement on wdevent->parameters with key 'ID'.
hope this helps,
Regards,
Kiran