cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture a BUTTON_ID when u clickon that button

Former Member
0 Kudos

Hi,  I need to capture the value or ID of the button which i have clicked.   I ran a debugger i found out the value is in wdevent (Parameters( ID)).  But i cant able to capture the value.  How can i do this?  Thanks  Vijay

Accepted Solutions (1)

Accepted Solutions (1)

former_member197425
Active Participant
0 Kudos

Hi,

We can capture button ID using below method

   DATA : button_id  type string.


   CALL METHOD WDEVENT->get_string
     EXPORTING
       name   = 'ID'
     receiving
       value  = button_id
       .

ID of button will be stored in "ID" parameter of WDEVENT which can be captured by above method in button_id variable..

Thanks,

Nandi.

Former Member
0 Kudos

Thank You guys, i got the value.

Answers (1)

Answers (1)

naresh_bammidi
Contributor
0 Kudos

Hi,

Create one local variable with type string and assign the id (Make sure that you have declared parameter ID type String in button action).

data:lv_id type string.
lv_id = id.

Thanks