cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the button ID in WebDynpro

Former Member
0 Kudos

Hi,

In my WebDynpro application I have a Button, and on click of the button, I have to capture the button ID . Please suggest me how do I cpture the ID.

Thanks,

Anil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi anil ,

in all event handler method you can see the parameter wdevent typeref to CL_WD_CUSTOM_EVENT .

using that parameter you can get the ID of your button .

DATA: lv_id TYPE string,
 lv_id = wdevent->get_string( 'ID' ).

Regards

Chinnaiya P

Former Member
0 Kudos

Thanks Chinnaiya Issue solved.

Answers (1)

Answers (1)

former_member199125
Active Contributor
0 Kudos

Check in button class , where you wil find method to get the button id.

i think class name is cl_wd_ui_button.

if you dont find class then just seach the class like cl_Wd_* in se24.

Regards

Srinivas