cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro: Lead Selection

Former Member
0 Kudos

HI,

In web dynpro ALV control, How can i get the lead selection.. For example i have two lines in ALV, When i am using the F4 values for second line field, its sitting in first line. May i know how to get the second line lead selection?

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member402443
Contributor
0 Kudos

Hi Karthik,

Createa method like on_leadselection and in the fourth coulmn select the ON_LEAD_SELECT event of the alv grid where u have used the alv component i.e. either in the component controller or view.

After in this method u will get to parameter

WDEVENT type ref to CL_WD_CUSTOM_EVENT

R_PARAM type ref to IF_SALV_WD_TABLE_LEAD_SELECT

Then within this method u can write your logic

METHOD on_leadselection .

DATA : lv_index TYPE i,

lv_old_index TYPE i.

lv_index = r_param->index.

lv_old_index = r_param->old_index.

endmethod.

Hopes this will helps you.

Regard

Manoj Kumar

Former Member
0 Kudos

Hi,

There is a ON_LEAD_SELECT event for each ALV. Try to implement that event and get the lead selected record for that ALV.

Regards,

Lekha.

Former Member
0 Kudos

Hi Karthik,

There is method in ALV for get_lead_selection().

Get a lead selection using this method which will return the index of selected row,

Assign the values based on it. I think it should resolve the issue,

If not please give a sample code, we will try to resolve it.

Best regards,

Rohit

vivekananthan_sellavel
Active Participant
0 Kudos

hi ;

http://www.flickr.com/photos/31042772@N08/3408386623/

create a event as show above.

Data: index type i.

CALL METHOD lo_nd_timer->set_lead_selection_index

EXPORTING

index = index

.

Regards,

Vivekananthan.S