Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Refresh_table display problem

Hi Experts,

I created editable ALV  Program.

Ctrated copy button in tool bar.

user has to select the row and click on copy based on that i am identifying the row and inserting the internal table.

using cl_gui_alv_grid->get_selectd->rows.

First time i clicked on copy it is getting copied but in second time by selecting the row and clicking copy it is not coping and not showing row.

see below code .

WHEN 'COPY'.
     v_alvgd->check_changed_data( ).
     CALL METHOD v_alvgd->get_selected_rows
       IMPORTING
         et_index_rows = lv_row
         et_row_no     = lv_id.

    READ TABLE lv_id into lv_id1 INDEX 1.


*Read table lv_id into lv_id1 INDEX 1.

lv_index1 = lv_id1-ROW_ID  .

DESCRIBE TABLE i_final LINES lv_no.

   READ TABLE i_final2 into w_final2 INDEX lv_index1.
   lv_index2 = lv_index1 + lv_no.
   INSERT w_final2 INTO i_final index lv_index2.
       i_pbo = i_final.

CALL METHOD v_alvgd->refresh_table_display
     EXPORTING
       is_stable = i_re_alv
     EXCEPTIONS
       finished  = 1
       OTHERS    = 2.
   IF sy-subrc <> 0.

Please check and let me know how to resolve it <whenever you get a chance.>

Thanks & regards

Kiran

Message was edited by: Gareth Ryan - Please don't ask for anything "urgent".  People on this forum (mostly) have a day job to do, so handling your urgent issues isn't going to be an urgent problem for them.

Not what you were looking for? View more on this topic or Ask a question