Skip to Content
avatar image
Former Member

New CTable selection property

Hello Experts,

I have migrated to the new CTable in WD ABAP. I realise that there is no lead selection available so i used the selected elements to retrieve the selection.

Now I wonder, incase there is a selected row and i want to refresh the table and set the same selected row back as selection, i fail as i need the index of the row and then set based on index.

Could you please help?

Thanks in Advance,

Piyush

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 11, 2012 at 05:56 AM

    Hi,

    Just try to get the index before refresh and set it after refresh.

       data lv_index type i.
    CALL METHOD lo_nd_empdetails->get_lead_selection_index
      receiving
        index  = lv_index
        .

    CALL METHOD lo_nd_empdetails->set_lead_selection_index
      EXPORTING
        index  = lv_index
        .

    Add comment
    10|10000 characters needed characters exceeded