cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding link to action.

Former Member
0 Kudos

Hi all,

In my case i have to diplay list of records in ALV.in that ALV ,we have provide link to action,by click on this it has to display another view.

i m able to calling the next view whenever click on this .but i need to carry value of clicked one.how can i get the value of selected .

Regards,

Ravi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Do the following to get the selected value:

You need to code this in the event handler method related to the event ON_CLICK from the ALV component.


  DATA lr_bookingid TYPE REF TO bapisbodat-bookingid.

* Get the selected booking id
  lr_bookingid ?= r_param->value.

R_PARAM is an importing parameter in the event ON_CLICK from the ALV component.

Regards.

Yashpal
Active Contributor
0 Kudos

Hi ,

handle the event ON_CLICK of alv , in that u will find a parameter named R_PARAM , de reference the attribute VALUE of that object , u will get the text of the link.

Regards

Yash