cancel
Showing results for 
Search instead for 
Did you mean: 

Control Not shifting to the new row added

Former Member
0 Kudos

Hi ,

I have a table element in my application.

When I click on the button ADD a new row gets added to my Table but the control is not getting shifted to the newly added row.

i.e. the lead selection remains at the old line.

How to acheive this

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

After you have appended new row, get the number of rows in table .

Now use Set_lead_selection_index method of if_wd_context_node to set the index to new row.

Sample code for your reference :

data lv_count type I.
lv_count = lo_nd->get_element_count( ).
lo_nd->set_lead_selection_index( lv_count ).

Edited by: Saurav Mago on Dec 31, 2009 1:31 PM

Former Member
0 Kudos

HI Sovrav ,

Thanks for the reply

Could you please solve m ALV problem in my Previous Post also

Regards

Edited by: SAP LEARNER on Dec 31, 2009 10:29 AM

Answers (0)